From: Mark Salter <msal...@redhat.com>

arm64: use common CONFIG_MAX_ZONEORDER for arm kernel

Now that RHEL9 is using 4K pagesize, MAX_ZONEORDER is defaulting
to 11. Fedora uses an out of tree patch to default to 13 when
building for server class machines. RHEL9 should also be using 13,
so make the MAX_ZONEORDER config and the out of tree patch common
between RHEL9 and Fedora.

Signed-off-by: Mark Salter <msal...@redhat.com>

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index blahblah..blahblah 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -1155,7 +1155,7 @@ config XEN
 config FORCE_MAX_ZONEORDER
        int
        default "14" if ARM64_64K_PAGES
-       default "13" if (ARCH_THUNDER && !ARM64_64K_PAGES && !RHEL_DIFFERENCES)
+       default "13" if (ARCH_THUNDER && !ARM64_64K_PAGES)
        default "12" if ARM64_16K_PAGES
        default "11"
        help
diff --git 
a/redhat/configs/common/generic/arm/aarch64/CONFIG_FORCE_MAX_ZONEORDER 
b/redhat/configs/common/generic/arm/aarch64/CONFIG_FORCE_MAX_ZONEORDER
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/common/generic/arm/aarch64/CONFIG_FORCE_MAX_ZONEORDER
@@ -0,0 +1,3 @@
+# This relies on an out of tree patch to arch/arm64/Kconfig
+# Otherwise, we would be stuck with a default of 11
+CONFIG_FORCE_MAX_ZONEORDER=13
diff --git 
a/redhat/configs/fedora/generic/arm/aarch64/CONFIG_FORCE_MAX_ZONEORDER 
b/redhat/configs/fedora/generic/arm/aarch64/CONFIG_FORCE_MAX_ZONEORDER
deleted file mode 100644
index blahblah..blahblah 0
--- a/redhat/configs/fedora/generic/arm/aarch64/CONFIG_FORCE_MAX_ZONEORDER
+++ /dev/null
@@ -1,5 +0,0 @@
-# We technically want this to be 13 for Fedora with 4K pages but that's only
-# an option with an out of tree patch. Keep this 11 for compatibility until
-# we figure out what we want here.
-# process_configs_known_broken
-CONFIG_FORCE_MAX_ZONEORDER=13

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1331
_______________________________________________
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to