Skip to contentSkip to conversation

x86/kconfig: remove X86_DIRECT_GBPAGES dependency on !DEBUG_PAGEALLOC

PATCH New Vlastimil Babka 2 participants 2 messages Aug 7, 2019 – Aug 12, 2019 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/kconfig: remove X86_DIRECT_GBPAGES dependency on !DEBUG_PAGEALLOC

These days CONFIG_DEBUG_PAGEALLOC just compiles in the code that has to be enabled on boot time, or with an extra config option, and only then are the large page based direct mappings disabled.

Therefore remove the config dependency, allowing 1GB direct mappings with debug_pagealloc compiled in but not enabled.

---
 arch/x86/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/Kconfig +1 -1
index 222855cc0158..58eae28c3dd6 100644
@@ -1503,7 +1503,7 @@ config X86_5LEVEL
 
 config X86_DIRECT_GBPAGES
 	def_bool y
-	depends on X86_64 && !DEBUG_PAGEALLOC
+	depends on X86_64
 	---help---
 	  Certain kernel features effectively disable kernel
 	  linear 1 GB mappings (even if the CPU otherwise
Signature · 1 line
2.22.0
#1 lore raw

[tip:x86/mm] x86/kconfig: Remove X86_DIRECT_GBPAGES dependency on !DEBUG_PAGEALLOC

x86/kconfig: Remove X86_DIRECT_GBPAGES dependency on !DEBUG_PAGEALLOC
Commit-ID:  2e1da13fba4cb529c2c8c1d9f657690d1e853d7d
Gitweb:     https://git.kernel.org/tip/2e1da13fba4cb529c2c8c1d9f657690d1e853d7d
Author:     Vlastimil Babka <[email protected]>
AuthorDate: Wed, 7 Aug 2019 15:02:58 +0200
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Mon, 12 Aug 2019 14:52:30 +0200

x86/kconfig: Remove X86_DIRECT_GBPAGES dependency on !DEBUG_PAGEALLOC

These days CONFIG_DEBUG_PAGEALLOC just compiles in the code that has to be enabled on boot time, or with an extra config option, and only then are the large page based direct mappings disabled.

Therefore remove the config dependency, allowing 1GB direct mappings with debug_pagealloc compiled in but not enabled.

---
 arch/x86/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/Kconfig +1 -1
index 222855cc0158..58eae28c3dd6 100644
@@ -1503,7 +1503,7 @@ config X86_5LEVEL
 
 config X86_DIRECT_GBPAGES
 	def_bool y
-	depends on X86_64 && !DEBUG_PAGEALLOC
+	depends on X86_64
 	---help---
 	  Certain kernel features effectively disable kernel
 	  linear 1 GB mappings (even if the CPU otherwise