From nobody Mon Jun 8 16:28:55 2026 Received: from mail-dy1-f201.google.com (mail-dy1-f201.google.com [74.125.82.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86D5E3B5F50 for ; Wed, 27 May 2026 21:45:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779918316; cv=none; b=F+d3DpdZ22nR5/PgqDNumHE1UJE1E+dTnlVdzsqd3oIMjfozosfjXqgCms2svuUHJm8zQ4YSUthg9DDT5Uno2tUhdCz4mQLdpdLcpXTXuVycGCkq3kVAQQBaCZbUb4c2UJlbOAtYGCwFkmPyIa9k+daDoV7J5L67vtvRuQyEgP0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779918316; c=relaxed/simple; bh=CJqS0grVLWr/o1ZgwnE0tWz1Nx5GQ1vTF6tC/SXcK1s=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=KpDD8Mm4Efo0LD8zZz1JNcwiQ5+oa81HzHDieEDI/uzf3Eg9wYWyGLdzC4ChcHhNQwGa4UuHzl3/wpPF7K0wpbCC8IhtYT+ly3NAD+ZyuiLb0e0q0Z2bgkbbJozrWl49paIcWzqlX8LpIgGv0I9fgwvu1i71Dp43gGdDAb3M0eE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--xur.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=f4d/2y43; arc=none smtp.client-ip=74.125.82.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--xur.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="f4d/2y43" Received: by mail-dy1-f201.google.com with SMTP id 5a478bee46e88-2f5943ca81aso4285117eec.0 for ; Wed, 27 May 2026 14:45:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1779918314; x=1780523114; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=6mrvQD6GgPgoo9WdJOzGFB8vI+DJYjKJmIgf8+ynX7Y=; b=f4d/2y43nYdxRdoQhzV1RcCokuDnG0VaWQuEFuF6ZSUrAgZULacnS6hVygpqglJmLs rASIXEBOMOCOwo8QEzvupsR3/JoJjkV9Wv63ySpff/QTRNnSpD65t8Fxd5hTkrN7xFoQ XlD9p+Fb5Ezu0qvHO1SoUi65onkLJ2IldEXzrBn+SG7MkNOtCicNLRNjV+m8B8eDcDsD nZp4ZiNLNqInDtOiQSjPp5U+5mi/vkYc7SvVWaef4Lurm6NHi8BFwgcvL9qC1DdXltkD 9azKsKuCN1Vyefx18ZqGnC58zK7EbRkGfLwKcb67ywOqI/v54/DmoakwhpH6A1nBw/oj hI4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779918314; x=1780523114; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=6mrvQD6GgPgoo9WdJOzGFB8vI+DJYjKJmIgf8+ynX7Y=; b=TwOIhPVN8ykCGYGGNoLYmajmPMNQ7xzldp/QG8gY6vE3BjmABxEoz92UdgKS+vQ8hP yZZ+eS5UcvdBjTgeSERncc1+JpdhEs1tpMMeXRXENKxgMfWajj+C6KoWeFSVzcbVCJ9t axEJ4G2h/iASxi6AbMUi/gZCYl8l728WlgOPHnTDo1e4XbtA5DvJFCWFh8FO6H+swDtv 1J+1ShIa3bZbBpbCFC/cC8Six/zv+eyf9Y8jKBcorG9038mLE0d1PjM7FX2/3kQC8O7/ Gzkp/306zHDrjZnB6ntGJDFXrsldlg1OSe88mn9C04jjeQeZJP9TxsUgI18HEHQ7HGPh 5MfA== X-Forwarded-Encrypted: i=1; AFNElJ/85ieV5DxzwjD5OgDFXDfXReT+JnKrgCGIVe3yP/+MZKm2PQgGwDO/Jm3UIP4TFulnC3a+dnOpqUKRH/M=@vger.kernel.org X-Gm-Message-State: AOJu0Yya9lNv9aw9+VaydWjMZ4fLeWbhE5X3vA7zZRY29TPbfXVYsCg3 +MpS49HsngYQcZAnFgvxHtIZZWrhvHC/XJu/HMTAU5YRMf3e5PtUNnug2inqlMsBqFMXqw== X-Received: from dyvs21.prod.google.com ([2002:a05:693c:42d5:b0:2f7:767f:edc0]) (user=xur job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7300:6417:b0:2ed:7e1:975 with SMTP id 5a478bee46e88-3044903799bmr12307194eec.1.1779918313261; Wed, 27 May 2026 14:45:13 -0700 (PDT) Date: Wed, 27 May 2026 14:45:07 -0700 In-Reply-To: <20260527214510.3907973-1-xur@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260527214510.3907973-1-xur@google.com> X-Mailer: git-send-email 2.54.0.794.g4f17f83d09-goog Message-ID: <20260527214510.3907973-2-xur@google.com> Subject: [PATCH v3 1/2] kconfig: Remove the architecture specific config for AutoFDO From: xur@google.com 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@vger.kernel.org, Juergen Gross , Helge Deller , Ryan Roberts , Marc Zyngier , Ard Biesheuvel , Vincent Donnefort , Alice Ryhl Cc: x86@kernel.org, linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Rong Xu 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 Suggested-by: Will Deacon Tested-by: Yabin Cui Reviewed-by: Kees Cook Acked-by: Will Deacon --- 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 =20 -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 >=3D 170000 help This option enables Clang=E2=80=99s 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 --=20 2.54.0.794.g4f17f83d09-goog From nobody Mon Jun 8 16:28:55 2026 Received: from mail-dy1-f201.google.com (mail-dy1-f201.google.com [74.125.82.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 323C23C3BED for ; Wed, 27 May 2026 21:45:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779918316; cv=none; b=Kfl9qd46laJpNECFN6C0T0CsEhQSnR9cn9b/sB0LYzRY5p5N1fVoXHrS9+vHDmtKSiLz6voZPtW6Cqfbf2VGrw/255Aqq/b2j+OOJjYp29kX9LbBe5jhk7zs/puXRDS7/mCOXCGzp8NR4gbGw3p0jMDqqBMl9NKiM69SsrER20Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779918316; c=relaxed/simple; bh=m6OK7eoTorDM1cgkoknGPyOcaln7dyIq1gRebNQl+1E=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=ItBDYOJXf4YtMKSKHLGumxEzs+rCWhkU3GpZSoDgmYJ1lob83B/6SSvFEFDcIQDy0x/edKeMBQvhoAgV+WVawzR0Y7D/CYf9lGerptlYyHPTnFXrTDgM7C/es2ovpDLZ6G9WflXOU+xQ2JgiChGqu7++9VauR/s45DQxARZFgqQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--xur.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Lt1Ed3pb; arc=none smtp.client-ip=74.125.82.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--xur.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Lt1Ed3pb" Received: by mail-dy1-f201.google.com with SMTP id 5a478bee46e88-304c97ceed2so783783eec.1 for ; Wed, 27 May 2026 14:45:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1779918314; x=1780523114; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=HQ/ggcBcEh5IdD7UgK2xAanxGYnpsj//J2HtyG47oGI=; b=Lt1Ed3pbXY77zNkxNukMMHJFgsUr9Wx43jCNmkaAKz42e2Nsg7A5aS5s2xydkOntGg 0FhCax8duiBDKQIAKARZ7KVnGWbxxMRcFHef8mZTy8NdKzNU0eampm5ga+u4hXICJeOg K72L0dzN+GBOLmCbsWw0RXAjttM/Xx474GEZZnl4JimboXKvvjkxUDVjFTBi3c5LByoV LsY1EsKfZ5LccMR+tnrN+n0SrupFQ1CkzzDbry0DMMEBtcQ2IFTwa9QQ78ClCwwnVwP3 eog96ZJuXPEkRRqYRlM4markh1XQljSQZ/7kMgcM1H7rtz/j1Us1hwsS1uz+nwb38yp3 7OXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779918314; x=1780523114; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=HQ/ggcBcEh5IdD7UgK2xAanxGYnpsj//J2HtyG47oGI=; b=Y0kpF7h3/71cxk/4GEBdMEGwf+/X1MoCFJx4LpnscGWK21vylqYkeP1HZ9pdQRhBPT kSwhY1wdvIfF3LoPvusYHwNDepuUXVZ+Y+YjDCxHCcNx6ILHo/9pYR/3C7MKeYTa5gBb IPCpI3/j3tP3C+g5TOMfR3u1vr8q9/6ENsI1u4UmdYQxk3N+vnyRCpNKsvboLEwzO2W3 n7BOcPH6yKwTH81DxNXN0w/xGbmyYgG7HPCxWWAAemX7tIKUVAtHiOINw45abRt0mfmK Jz/9TLIpSZYfoFHxwMoubT3AS7i+j1j02xHMIlZZIelqsyrkxoKGqWqwMdlvNewAbDfF 8tIA== X-Forwarded-Encrypted: i=1; AFNElJ/eUU7HV4i++aTxC2difWeyPPLSHJ9JAPuEbdN7AF5v5kmAAZcH0Y7pSGWoyU9PJnH9qSVk2C7zIDG3uoM=@vger.kernel.org X-Gm-Message-State: AOJu0Yy52m9Z26tPYzr0reBDk1gwo76+/neRhq0TT4V3qa5qeWpq3uXk /rWHA7nFv3sl2eodwuqec73Q4llS1UcT8ZW4F4XIZ4TVwEDwpMoEIZCagK678Z2vq781oA== X-Received: from dycoi4.prod.google.com ([2002:a05:7301:da84:b0:2ee:de47:cde3]) (user=xur job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7300:cd99:b0:2e2:4979:ec7 with SMTP id 5a478bee46e88-3044908e3demr10854479eec.10.1779918314266; Wed, 27 May 2026 14:45:14 -0700 (PDT) Date: Wed, 27 May 2026 14:45:08 -0700 In-Reply-To: <20260527214510.3907973-1-xur@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260527214510.3907973-1-xur@google.com> X-Mailer: git-send-email 2.54.0.794.g4f17f83d09-goog Message-ID: <20260527214510.3907973-3-xur@google.com> Subject: [PATCH v3 2/2] kconfig: Remove the architecture specific config for Propeller From: xur@google.com 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@vger.kernel.org, Juergen Gross , Helge Deller , Ryan Roberts , Marc Zyngier , Ard Biesheuvel , Vincent Donnefort , Alice Ryhl Cc: x86@kernel.org, linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Rong Xu 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 Suggested-by: Will Deacon Tested-by: Yabin Cui Reviewed-by: Kees Cook Acked-by: Will Deacon --- 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 =20 If unsure, say N. =20 -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 >=3D 190000 help This option enables Clang=E2=80=99s Propeller build. When the Propeller diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.ld= s.S index e1ac876200a3..44a42e7c66cf 100644 --- a/arch/arm64/kernel/vmlinux.lds.S +++ b/arch/arm64/kernel/vmlinux.lds.S @@ -368,6 +368,9 @@ SECTIONS =20 STABS_DEBUG DWARF_DEBUG +#ifdef CONFIG_PROPELLER_CLANG + .llvm_bb_addr_map : { *(.llvm_bb_addr_map) } +#endif MODINFO ELF_DETAILS =20 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 --=20 2.54.0.794.g4f17f83d09-goog