From: peng.fan@nxp.com
To: catalin.marinas@arm.com, will@kernel.org, nsaenzjulienne@suse.de
Cc: linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-imx@nxp.com,
Peng Fan <peng.fan@nxp.com>
Subject: [PATCH] arm64: mm: make CONFIG_ZONE_DMA configurable without EXPERT
Date: Tue, 10 Mar 2020 20:48:46 +0800 [thread overview]
Message-ID: <1583844526-24229-1-git-send-email-peng.fan@nxp.com> (raw)
From: Peng Fan <peng.fan@nxp.com>
commit 1a8e1cef7603 ("arm64: use both ZONE_DMA and ZONE_DMA32")
enables both ZONE_DMA and ZONE_DMA32. The lower 1GB memory
will be occupied by ZONE_DMA, this will cause CMA allocation
fail on some platforms, because CMA area could not across
different type of memory zones.
Make CONFIG_ZONE_DMA configurable without EXPERT option
could let people build non debug kernel image with
CONFIG_ZONE_DMA disabled.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
arch/arm64/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 217e12ff2115..c4ba8bf011e1 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -270,7 +270,7 @@ config GENERIC_CALIBRATE_DELAY
def_bool y
config ZONE_DMA
- bool "Support DMA zone" if EXPERT
+ bool "Support DMA zone"
default y
config ZONE_DMA32
--
2.16.4
next reply other threads:[~2020-03-10 12:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-10 12:48 peng.fan [this message]
2020-03-23 1:30 ` [PATCH] arm64: mm: make CONFIG_ZONE_DMA configurable without EXPERT Peng Fan
2020-03-24 17:41 ` Catalin Marinas
2020-03-25 0:34 ` Peng Fan
2020-03-25 10:16 ` Catalin Marinas
2020-03-25 12:30 ` Peng Fan
2020-03-27 11:17 ` Nicolas Saenz Julienne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1583844526-24229-1-git-send-email-peng.fan@nxp.com \
--to=peng.fan@nxp.com \
--cc=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nsaenzjulienne@suse.de \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).