From fbececc25c5bbc3ec842abfdb00eb19d0e5bf666 Mon Sep 17 00:00:00 2001 From: "Isaac J. Manjarres" Date: Sat, 19 Jul 2025 01:04:05 +0000 Subject: [PATCH] ANDROID: Remove support for ZONE_DMA and ZONE_DMA32 Microdroid doesn't interact with peripherals, and therefore doesn't have requirements for DMA'able memory. Therefore, place all memory in ZONE_NORMAL. This avoids scenarios where memory is allocated specifically for allocations that must be satisfied from ZONE_DMA, such as in the coherent atomic DMA pooling code. Bug: 432329937 Change-Id: Id29dec450edbb45d539bab2cc8e77defd8ba9ca9 Signed-off-by: Isaac J. Manjarres --- arch/arm64/configs/microdroid_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/microdroid_defconfig b/arch/arm64/configs/microdroid_defconfig index d6587cae2a47..aecd28f5cc58 100644 --- a/arch/arm64/configs/microdroid_defconfig +++ b/arch/arm64/configs/microdroid_defconfig @@ -54,6 +54,8 @@ CONFIG_SHUFFLE_PAGE_ALLOCATOR=y CONFIG_DEFAULT_MMAP_MIN_ADDR=32768 CONFIG_TRANSPARENT_HUGEPAGE=y CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y +# CONFIG_ZONE_DMA is not set +# CONFIG_ZONE_DMA32 is not set CONFIG_ANON_VMA_NAME=y CONFIG_USERFAULTFD=y CONFIG_LRU_GEN=y