* [PATCH v3 0/2] kconfig: Remove the architecture specific config for AutoFDO and Propeller
@ 2026-05-27 21:45 xur
2026-05-27 21:45 ` [PATCH v3 1/2] kconfig: Remove the architecture specific config for AutoFDO xur
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: xur @ 2026-05-27 21:45 UTC (permalink / raw)
To: Yabin Cui, Will Deacon, Han Shen, Thomas Gleixner, Ingo Molnar,
Borislav Petkov, Dave Hansen, H. Peter Anvin, Kees Cook,
Nathan Chancellor, Nicolas Schier, Linus Walleij, Arnd Bergmann,
Mathieu Desnoyers, Rong Xu, Miguel Ojeda, Peter Zijlstra,
Jinjie Ruan, Lukas Bulwahn, linux-kernel, Juergen Gross,
Helge Deller, Ryan Roberts, Marc Zyngier, Ard Biesheuvel,
Vincent Donnefort, Alice Ryhl
Cc: x86, linux-arm-kernel
From: Rong Xu <xur@google.com>
Resend this patch:
ChangeLog:
V3: (1) updated the base;
(2) changed vmlinux.lds.S for arm64 to avoid the warnings
from .llvm_bb_addr_map.
Rong Xu (2):
kconfig: Remove the architecture specific config for AutoFDO
kconfig: Remove the architecture specific config for Propeller
arch/Kconfig | 8 --------
arch/arm64/kernel/vmlinux.lds.S | 3 +++
arch/x86/Kconfig | 2 --
3 files changed, 3 insertions(+), 10 deletions(-)
base-commit: 2c31897a17e55a6da529b4e797e98c6febc60fd2
--
2.54.0.794.g4f17f83d09-goog
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v3 1/2] kconfig: Remove the architecture specific config for AutoFDO
2026-05-27 21:45 [PATCH v3 0/2] kconfig: Remove the architecture specific config for AutoFDO and Propeller xur
@ 2026-05-27 21:45 ` xur
2026-05-27 21:45 ` [PATCH v3 2/2] kconfig: Remove the architecture specific config for Propeller xur
2026-05-29 16:32 ` [PATCH v3 0/2] kconfig: Remove the architecture specific config for AutoFDO and Propeller Will Deacon
2 siblings, 0 replies; 4+ messages in thread
From: xur @ 2026-05-27 21:45 UTC (permalink / raw)
To: Yabin Cui, Will Deacon, Han Shen, Thomas Gleixner, Ingo Molnar,
Borislav Petkov, Dave Hansen, H. Peter Anvin, Kees Cook,
Nathan Chancellor, Nicolas Schier, Linus Walleij, Arnd Bergmann,
Mathieu Desnoyers, Rong Xu, Miguel Ojeda, Peter Zijlstra,
Jinjie Ruan, Lukas Bulwahn, linux-kernel, Juergen Gross,
Helge Deller, Ryan Roberts, Marc Zyngier, Ard Biesheuvel,
Vincent Donnefort, Alice Ryhl
Cc: x86, linux-arm-kernel
From: Rong Xu <xur@google.com>
The CONFIG_AUTOFDO_CLANG option currently depends on
ARCH_SUPPORTS_AUTOFDO_CLANG, but this dependency seems unnecessary.
Remove ARCH_SUPPORTS_AUTOFDO_CLANG and allow users to control AutoFDO
builds solely through CONFIG_AUTOFDO_CLANG. This simplifies the kconfig
and avoids potential confusion.
Signed-off-by: Rong Xu <xur@google.com>
Suggested-by: Will Deacon <will@kernel.org>
Tested-by: Yabin Cui <yabinc@google.com>
Reviewed-by: Kees Cook <kees@kernel.org>
---
arch/Kconfig | 4 ----
arch/x86/Kconfig | 1 -
2 files changed, 5 deletions(-)
diff --git a/arch/Kconfig b/arch/Kconfig
index e86880045158..e510c585ea84 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -863,12 +863,8 @@ config LTO_CLANG_THIN
If unsure, say Y.
endchoice
-config ARCH_SUPPORTS_AUTOFDO_CLANG
- bool
-
config AUTOFDO_CLANG
bool "Enable Clang's AutoFDO build (EXPERIMENTAL)"
- depends on ARCH_SUPPORTS_AUTOFDO_CLANG
depends on CC_IS_CLANG && CLANG_VERSION >= 170000
help
This option enables Clang’s AutoFDO build. When
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index f3f7cb01d69d..10bf3984102e 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -130,7 +130,6 @@ config X86
select ARCH_SUPPORTS_LTO_CLANG
select ARCH_SUPPORTS_LTO_CLANG_THIN
select ARCH_SUPPORTS_RT
- select ARCH_SUPPORTS_AUTOFDO_CLANG
select ARCH_SUPPORTS_PROPELLER_CLANG if X86_64
select ARCH_USE_BUILTIN_BSWAP
select ARCH_USE_CMPXCHG_LOCKREF if X86_CX8
--
2.54.0.794.g4f17f83d09-goog
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v3 2/2] kconfig: Remove the architecture specific config for Propeller
2026-05-27 21:45 [PATCH v3 0/2] kconfig: Remove the architecture specific config for AutoFDO and Propeller xur
2026-05-27 21:45 ` [PATCH v3 1/2] kconfig: Remove the architecture specific config for AutoFDO xur
@ 2026-05-27 21:45 ` xur
2026-05-29 16:32 ` [PATCH v3 0/2] kconfig: Remove the architecture specific config for AutoFDO and Propeller Will Deacon
2 siblings, 0 replies; 4+ messages in thread
From: xur @ 2026-05-27 21:45 UTC (permalink / raw)
To: Yabin Cui, Will Deacon, Han Shen, Thomas Gleixner, Ingo Molnar,
Borislav Petkov, Dave Hansen, H. Peter Anvin, Kees Cook,
Nathan Chancellor, Nicolas Schier, Linus Walleij, Arnd Bergmann,
Mathieu Desnoyers, Rong Xu, Miguel Ojeda, Peter Zijlstra,
Jinjie Ruan, Lukas Bulwahn, linux-kernel, Juergen Gross,
Helge Deller, Ryan Roberts, Marc Zyngier, Ard Biesheuvel,
Vincent Donnefort, Alice Ryhl
Cc: x86, linux-arm-kernel
From: Rong Xu <xur@google.com>
The CONFIG_PROPELLER_CLANG option currently depends on
ARCH_SUPPORTS_PROPELLER_CLANG, but this dependency seems unnecessary.
Remove ARCH_SUPPORTS_PROPELLER_CLANG and allow users to control
Propeller builds solely through CONFIG_PROPELLER_CLANG. This simplifies
the kconfig and avoids potential confusion.
For arm64, change vmlinux.lds.S to ensure the .llvm_bb_addr_map is
explicitly placed within its own section.
Signed-off-by: Rong Xu <xur@google.com>
Suggested-by: Will Deacon <will@kernel.org>
Tested-by: Yabin Cui <yabinc@google.com>
Reviewed-by: Kees Cook <kees@kernel.org>
---
arch/Kconfig | 4 ----
arch/arm64/kernel/vmlinux.lds.S | 3 +++
arch/x86/Kconfig | 1 -
3 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/arch/Kconfig b/arch/Kconfig
index e510c585ea84..e4eaca9c917c 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -879,12 +879,8 @@ config AUTOFDO_CLANG
If unsure, say N.
-config ARCH_SUPPORTS_PROPELLER_CLANG
- bool
-
config PROPELLER_CLANG
bool "Enable Clang's Propeller build"
- depends on ARCH_SUPPORTS_PROPELLER_CLANG
depends on CC_IS_CLANG && CLANG_VERSION >= 190000
help
This option enables Clang’s Propeller build. When the Propeller
diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S
index e1ac876200a3..44a42e7c66cf 100644
--- a/arch/arm64/kernel/vmlinux.lds.S
+++ b/arch/arm64/kernel/vmlinux.lds.S
@@ -368,6 +368,9 @@ SECTIONS
STABS_DEBUG
DWARF_DEBUG
+#ifdef CONFIG_PROPELLER_CLANG
+ .llvm_bb_addr_map : { *(.llvm_bb_addr_map) }
+#endif
MODINFO
ELF_DETAILS
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 10bf3984102e..b875d2f27e48 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -130,7 +130,6 @@ config X86
select ARCH_SUPPORTS_LTO_CLANG
select ARCH_SUPPORTS_LTO_CLANG_THIN
select ARCH_SUPPORTS_RT
- select ARCH_SUPPORTS_PROPELLER_CLANG if X86_64
select ARCH_USE_BUILTIN_BSWAP
select ARCH_USE_CMPXCHG_LOCKREF if X86_CX8
select ARCH_USE_MEMTEST
--
2.54.0.794.g4f17f83d09-goog
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v3 0/2] kconfig: Remove the architecture specific config for AutoFDO and Propeller
2026-05-27 21:45 [PATCH v3 0/2] kconfig: Remove the architecture specific config for AutoFDO and Propeller xur
2026-05-27 21:45 ` [PATCH v3 1/2] kconfig: Remove the architecture specific config for AutoFDO xur
2026-05-27 21:45 ` [PATCH v3 2/2] kconfig: Remove the architecture specific config for Propeller xur
@ 2026-05-29 16:32 ` Will Deacon
2 siblings, 0 replies; 4+ messages in thread
From: Will Deacon @ 2026-05-29 16:32 UTC (permalink / raw)
To: xur
Cc: Yabin Cui, Han Shen, Thomas Gleixner, Ingo Molnar,
Borislav Petkov, Dave Hansen, H. Peter Anvin, Kees Cook,
Nathan Chancellor, Nicolas Schier, Linus Walleij, Arnd Bergmann,
Mathieu Desnoyers, Miguel Ojeda, Peter Zijlstra, Jinjie Ruan,
Lukas Bulwahn, linux-kernel, Juergen Gross, Helge Deller,
Ryan Roberts, Marc Zyngier, Ard Biesheuvel, Vincent Donnefort,
Alice Ryhl, x86, linux-arm-kernel
On Wed, May 27, 2026 at 02:45:06PM -0700, xur@google.com wrote:
> From: Rong Xu <xur@google.com>
>
> Resend this patch:
>
> ChangeLog:
> V3: (1) updated the base;
> (2) changed vmlinux.lds.S for arm64 to avoid the warnings
> from .llvm_bb_addr_map.
>
> Rong Xu (2):
> kconfig: Remove the architecture specific config for AutoFDO
> kconfig: Remove the architecture specific config for Propeller
>
> arch/Kconfig | 8 --------
> arch/arm64/kernel/vmlinux.lds.S | 3 +++
> arch/x86/Kconfig | 2 --
> 3 files changed, 3 insertions(+), 10 deletions(-)
For the series:
Acked-by: Will Deacon <will@kernel.org>
Will
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-05-29 16:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-27 21:45 [PATCH v3 0/2] kconfig: Remove the architecture specific config for AutoFDO and Propeller xur
2026-05-27 21:45 ` [PATCH v3 1/2] kconfig: Remove the architecture specific config for AutoFDO xur
2026-05-27 21:45 ` [PATCH v3 2/2] kconfig: Remove the architecture specific config for Propeller xur
2026-05-29 16:32 ` [PATCH v3 0/2] kconfig: Remove the architecture specific config for AutoFDO and Propeller Will Deacon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox