mm/Kconfig: forcing allocators to return ZONE_DMA32 memory

Add a new config item, CONFIG_FORCE_ALLOC_FROM_DMA_ZONE, which
can be used to optionally force certain allocators to always
return memory from ZONE_DMA32.

This option helps ensure that clients who require ZONE_DMA32
memory are always using ZONE_DMA32 memory.

Change-Id: Id2d36214307789f27aa775c2bef2dab5047c4ff0
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
Signed-off-by: Liam Mark <lmark@codeaurora.org>
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
Signed-off-by: Asha Magadi Venkateshamurthy <amagad@codeaurora.org>
This commit is contained in:
Asha Magadi Venkateshamurthy
2020-09-29 21:42:54 +05:30
committed by Gerrit - the friendly Code Review server
parent e3105f1e5e
commit 07141d4081

View File

@@ -875,3 +875,13 @@ config PROCESS_RECLAIM
(addr, addr + size-bytes) of the process.
Any other value is ignored.
config FORCE_ALLOC_FROM_DMA_ZONE
bool "Force certain memory allocators to always return ZONE_DMA32 memory"
depends on ZONE_DMA32
help
Ensure certain memory allocators always return memory from ZONE_DMA32.
This option helps ensure that clients who require ZONE_DMA32 memory are
always using ZONE_DMA32 memory.
If unsure, say "n".