[OS-BUILD PATCH 5/5] [redhat] configs: enable CONFIG_CMA on aarch64 in ARK as tech-preview

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: David Hildenbrand <david@xxxxxxxxxx>

[redhat] configs: enable CONFIG_CMA on aarch64 in ARK as tech-preview

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2043141
Upstream: RHEL only

Enable CONFIG_CMA on aarch64 in ARK as we already have in fedora. We did
the same change for x86-64 just recently. Move the relevant configs from
redhat/configs/fedora to redhat/configs/common.

While in tech-preview, we'll require a manual configuration of cma on
the kernel command line -- we will default to "cma=0". Once e.g., "cma=64M"
has been specified, cma_activate_area() will call mark_tech_preview("CMA"),
essentially tainting the kernel. Once no longer in tech-preview, we can
enable CMA as default by e.g., similarly defaulting to "cma=64M".

Signed-off-by: David Hildenbrand <david@xxxxxxxxxx>

diff --git a/redhat/configs/ark/generic/arm/CONFIG_CMA_SIZE_MBYTES b/redhat/configs/ark/generic/arm/CONFIG_CMA_SIZE_MBYTES
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/ark/generic/arm/CONFIG_CMA_SIZE_MBYTES
@@ -0,0 +1 @@
+CONFIG_CMA_SIZE_MBYTES=0
diff --git a/redhat/configs/fedora/generic/arm/CONFIG_CMA b/redhat/configs/common/generic/arm/CONFIG_CMA
rename from redhat/configs/fedora/generic/arm/CONFIG_CMA
rename to redhat/configs/common/generic/arm/CONFIG_CMA
index blahblah..blahblah 100644
--- a/redhat/configs/fedora/generic/arm/CONFIG_CMA
+++ b/redhat/configs/common/generic/arm/CONFIG_CMA
diff --git a/redhat/configs/fedora/generic/arm/CONFIG_CMA_ALIGNMENT b/redhat/configs/common/generic/arm/CONFIG_CMA_ALIGNMENT
rename from redhat/configs/fedora/generic/arm/CONFIG_CMA_ALIGNMENT
rename to redhat/configs/common/generic/arm/CONFIG_CMA_ALIGNMENT
index blahblah..blahblah 100644
--- a/redhat/configs/fedora/generic/arm/CONFIG_CMA_ALIGNMENT
+++ b/redhat/configs/common/generic/arm/CONFIG_CMA_ALIGNMENT
diff --git a/redhat/configs/fedora/generic/arm/CONFIG_CMA_SIZE_SEL_MAX b/redhat/configs/common/generic/arm/CONFIG_CMA_SIZE_SEL_MAX
rename from redhat/configs/fedora/generic/arm/CONFIG_CMA_SIZE_SEL_MAX
rename to redhat/configs/common/generic/arm/CONFIG_CMA_SIZE_SEL_MAX
index blahblah..blahblah 100644
--- a/redhat/configs/fedora/generic/arm/CONFIG_CMA_SIZE_SEL_MAX
+++ b/redhat/configs/common/generic/arm/CONFIG_CMA_SIZE_SEL_MAX
diff --git a/redhat/configs/fedora/generic/arm/CONFIG_CMA_SIZE_SEL_MBYTES b/redhat/configs/common/generic/arm/CONFIG_CMA_SIZE_SEL_MBYTES
rename from redhat/configs/fedora/generic/arm/CONFIG_CMA_SIZE_SEL_MBYTES
rename to redhat/configs/common/generic/arm/CONFIG_CMA_SIZE_SEL_MBYTES
index blahblah..blahblah 100644
--- a/redhat/configs/fedora/generic/arm/CONFIG_CMA_SIZE_SEL_MBYTES
+++ b/redhat/configs/common/generic/arm/CONFIG_CMA_SIZE_SEL_MBYTES
diff --git a/redhat/configs/fedora/generic/arm/CONFIG_CMA_SIZE_SEL_MIN b/redhat/configs/common/generic/arm/CONFIG_CMA_SIZE_SEL_MIN
rename from redhat/configs/fedora/generic/arm/CONFIG_CMA_SIZE_SEL_MIN
rename to redhat/configs/common/generic/arm/CONFIG_CMA_SIZE_SEL_MIN
index blahblah..blahblah 100644
--- a/redhat/configs/fedora/generic/arm/CONFIG_CMA_SIZE_SEL_MIN
+++ b/redhat/configs/common/generic/arm/CONFIG_CMA_SIZE_SEL_MIN
diff --git a/redhat/configs/fedora/generic/arm/CONFIG_CMA_SIZE_SEL_PERCENTAGE b/redhat/configs/common/generic/arm/CONFIG_CMA_SIZE_SEL_PERCENTAGE
rename from redhat/configs/fedora/generic/arm/CONFIG_CMA_SIZE_SEL_PERCENTAGE
rename to redhat/configs/common/generic/arm/CONFIG_CMA_SIZE_SEL_PERCENTAGE
index blahblah..blahblah 100644
--- a/redhat/configs/fedora/generic/arm/CONFIG_CMA_SIZE_SEL_PERCENTAGE
+++ b/redhat/configs/common/generic/arm/CONFIG_CMA_SIZE_SEL_PERCENTAGE
diff --git a/redhat/configs/fedora/generic/arm/CONFIG_DMA_CMA b/redhat/configs/common/generic/arm/CONFIG_DMA_CMA
rename from redhat/configs/fedora/generic/arm/CONFIG_DMA_CMA
rename to redhat/configs/common/generic/arm/CONFIG_DMA_CMA
index blahblah..blahblah 100644
--- a/redhat/configs/fedora/generic/arm/CONFIG_DMA_CMA
+++ b/redhat/configs/common/generic/arm/CONFIG_DMA_CMA

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1592
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux