Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xtensa: remove ZONE_DMA

ZONE_DMA is intended for magic < 32-bit pools (usually ISA DMA), which
isn't required on xtensa. Move all the non-highmem memory into
ZONE_NORMAL instead to match other architectures.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>

authored by

Christoph Hellwig and committed by
Max Filippov
fe278d1a 35a7f35a

+1 -4
-3
arch/xtensa/Kconfig
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 - config ZONE_DMA 3 - def_bool y 4 - 5 2 config XTENSA 6 3 def_bool y 7 4 select ARCH_HAS_SG_CHAIN
+1 -1
arch/xtensa/mm/init.c
··· 71 71 { 72 72 /* All pages are DMA-able, so we put them all in the DMA zone. */ 73 73 unsigned long zones_size[MAX_NR_ZONES] = { 74 - [ZONE_DMA] = max_low_pfn - ARCH_PFN_OFFSET, 74 + [ZONE_NORMAL] = max_low_pfn - ARCH_PFN_OFFSET, 75 75 #ifdef CONFIG_HIGHMEM 76 76 [ZONE_HIGHMEM] = max_pfn - max_low_pfn, 77 77 #endif