gpu: ion: Add flag for forcing contiguous allocations
Previously, a parameter was added to secure heaps to only allow secure allocations. Some clients still require non-secure contiguous allocations even though the SMMU is supported. Add support for those clients to force contiguous allocations to go through. Change-Id: I0d18d8a9ed3ab267b55c84c4ad160f8cec2c2b32 Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
This commit is contained in:
committed by
Stephen Boyd
parent
2599837db3
commit
7229a452a3
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
*
|
||||
* Copyright (c) 2012, Code Aurora Forum. All rights reserved.
|
||||
* Copyright (c) 2012-2013, Code Aurora Forum. All rights reserved.
|
||||
*
|
||||
* This software is licensed under the terms of the GNU General Public
|
||||
* License version 2, as published by the Free Software Foundation, and
|
||||
@@ -72,6 +72,13 @@ enum cp_mem_usage {
|
||||
*/
|
||||
#define ION_SECURE (1 << ION_HEAP_ID_RESERVED)
|
||||
|
||||
/**
|
||||
* Flag for clients to force contiguous memort allocation
|
||||
*
|
||||
* Use of this flag is carefully monitored!
|
||||
*/
|
||||
#define ION_FORCE_CONTIGUOUS (1 << 30)
|
||||
|
||||
/**
|
||||
* Macro should be used with ion_heap_ids defined above.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user