linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xtensa: remove ZONE_DMA
@ 2018-10-14 18:13 Christoph Hellwig
  2018-10-15 19:57 ` Max Filippov
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2018-10-14 18:13 UTC (permalink / raw)
  To: chris, jcmvbkbc; +Cc: linux-xtensa, linux-kernel

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>
---
 arch/xtensa/Kconfig   | 3 ---
 arch/xtensa/mm/init.c | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig
index 516694937b7a..9a7c654a7654 100644
--- a/arch/xtensa/Kconfig
+++ b/arch/xtensa/Kconfig
@@ -1,7 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0
-config ZONE_DMA
-	def_bool y
-
 config XTENSA
 	def_bool y
 	select ARCH_HAS_SYNC_DMA_FOR_CPU
diff --git a/arch/xtensa/mm/init.c b/arch/xtensa/mm/init.c
index 34aead7dcb48..b385e6b73065 100644
--- a/arch/xtensa/mm/init.c
+++ b/arch/xtensa/mm/init.c
@@ -71,7 +71,7 @@ void __init zones_init(void)
 {
 	/* All pages are DMA-able, so we put them all in the DMA zone. */
 	unsigned long zones_size[MAX_NR_ZONES] = {
-		[ZONE_DMA] = max_low_pfn - ARCH_PFN_OFFSET,
+		[ZONE_NORMAL] = max_low_pfn - ARCH_PFN_OFFSET,
 #ifdef CONFIG_HIGHMEM
 		[ZONE_HIGHMEM] = max_pfn - max_low_pfn,
 #endif
-- 
2.19.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] xtensa: remove ZONE_DMA
  2018-10-14 18:13 [PATCH] xtensa: remove ZONE_DMA Christoph Hellwig
@ 2018-10-15 19:57 ` Max Filippov
  0 siblings, 0 replies; 2+ messages in thread
From: Max Filippov @ 2018-10-15 19:57 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Chris Zankel, linux-xtensa, LKML

On Sun, Oct 14, 2018 at 11:13 AM Christoph Hellwig <hch@lst.de> wrote:
>
> 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>
> ---
>  arch/xtensa/Kconfig   | 3 ---
>  arch/xtensa/mm/init.c | 2 +-
>  2 files changed, 1 insertion(+), 4 deletions(-)

Applied to my xtensa tree.

-- 
Thanks.
-- Max

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-15 19:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-14 18:13 [PATCH] xtensa: remove ZONE_DMA Christoph Hellwig
2018-10-15 19:57 ` Max Filippov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).