From nobody Tue Jun 23 18:21:25 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CF19C433F5 for ; Mon, 28 Feb 2022 21:28:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230354AbiB1V3d (ORCPT ); Mon, 28 Feb 2022 16:29:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbiB1V33 (ORCPT ); Mon, 28 Feb 2022 16:29:29 -0500 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C7C212F16A for ; Mon, 28 Feb 2022 13:28:49 -0800 (PST) Received: (wp-smtpd smtp.tlen.pl 37613 invoked from network); 28 Feb 2022 22:28:46 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1646083727; bh=wOQap3kjDZao23By2HQk+Vp02aERr8ev+5YsvdfIw8Q=; h=From:To:Cc:Subject; b=agmSIsTUenZsM6HowvVcDC2Lp46N29wbdkkmxxfQT5ueVdtKPo0QwmFXmK4EglvCz CPfafTcGRhS42+uWaUFrFa/eCnJgmDxMfVQcx6vPNHWOUaTtya5gkq4W6X+fa+0ooj OyVCsGibUrfoWgf25wVEK1ejnMNMuoCr13OhdABY= Received: from aafa139.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.130.139]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 28 Feb 2022 22:28:46 +0100 From: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Yinghai Lu Subject: [PATCH 01/10] x86/Kconfig: enable X86_X2APIC by default and improve help text Date: Mon, 28 Feb 2022 22:28:17 +0100 Message-Id: <20220228212826.27080-2-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220228212826.27080-1-mat.jonczyk@o2.pl> References: <20220228212826.27080-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: 37a90506aca53024aafda06b8c982270 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000001 [AUJy] Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As many current platforms (most modern Intel CPUs and QEMU) have x2APIC present, enable CONFIG_X86_X2APIC by default as it gives performance and functionality benefits. Additionally, if the BIOS has already switched APIC to x2APIC mode, but CONFIG_X86_X2APIC is disabled, the kernel will panic in arch/x86/kernel/apic/apic.c . Also improve the help text, which was confusing and really did not describe what the feature is about. Help text references and discussion: Both Intel [1] and AMD [3] spell the name as "x2APIC", not "x2apic". "It allows faster access to the local APIC" [2], chapter 2.1, page 15: "More efficient MSR interface to access APIC registers." "x2APIC was introduced in Intel CPUs around 2008": I was unable to find specific information which Intel CPUs support x2APIC. Wikipedia claims it was "introduced with the Nehalem microarchitecture in November 2008", but I was not able to confirm this independently. At least some Nehalem CPUs do not support x2APIC [1]. The documentation [2] is dated June 2008. Linux kernel also introduced x2APIC support in 2008, so the year seems to be right. "and in AMD EPYC CPUs in 2019": [3], page 15: "AMD introduced an x2APIC in our EPYC 7002 Series processors for the first time." "It is also frequently emulated in virtual machines, even when the host CPU does not support it." [1] "If this configuration option is disabled, the kernel will not boot on some platforms that have x2APIC enabled." According to some BIOS documentation [4], the x2APIC may be "disabled", "enabled", or "force enabled" on this system. I think that "enabled" means "made available to the operating system, but not already turned on" and "force enabled" means "already switched to x2APIC mode when the OS boots". Only in the latter mode a kernel without CONFIG_X86_X2APIC will panic in validate_x2apic() in arch/x86/kernel/apic/apic.c . QEMU 4.2.1 and my HP laptop (bought in 2019) use the "enabled" mode and the kernel does not panic. [1] "Re: [Qemu-devel] [Question] why x2apic's set by default without host s= up" https://lists.gnu.org/archive/html/qemu-devel/2013-07/msg03527.html [2] Intel=C2=AE 64 Architecture x2APIC Specification, ( https://www.naic.edu/~phil/software/intel/318148.pdf ) [3] Workload Tuning Guide for AMD EPYC =E2=84=A2 7002 Series Processor Based Servers Application Note, https://developer.amd.com/wp-content/resources/56745_0.80.pdf [4] UEFI System Utilities and Shell Command Mobile Help for HPE ProLiant Gen10, ProLiant Gen10 Plus Servers and HPE Synergy: Enabling or disabling Processor x2APIC Support https://techlibrary.hpe.com/docs/iss/proliant-gen10-uefi/s_enable_d= isable_x2APIC_support.html Signed-off-by: Mateusz Jo=C5=84czyk Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: x86@kernel.org Cc: "H. Peter Anvin" Cc: Yinghai Lu --- arch/x86/Kconfig | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 9f5bd41bf660..64d760a2b81a 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -437,15 +437,27 @@ config X86_FEATURE_NAMES If in doubt, say Y. =20 config X86_X2APIC - bool "Support x2apic" + bool "Support CPUs with x2APIC interrupt controllers" depends on X86_LOCAL_APIC && X86_64 && (IRQ_REMAP || HYPERVISOR_GUEST) + default y help - This enables x2apic support on CPUs that have this feature. + x2APIC is an interrupt controller architecture, a component of which + (the local APIC) is present in the CPU. It allows faster access to + the local APIC and supports a larger number of CPUs in the system + then the predecessors. =20 - This allows 32-bit apic IDs (so it can support very large systems), - and accesses the local apic via MSRs not via mmio. + x2APIC was introduced in Intel CPUs around 2008 and in AMD EPYC CPUs + in 2019, but it can be disabled by the BIOS. It is also frequently + emulated in virtual machines, even when the host CPU does not support + it. Support in the CPU be checked by executing + cat /proc/cpuinfo | grep x2apic =20 - If you don't know what to do here, say N. + If this configuration option is disabled, the kernel will not boot on + some platforms that have x2APIC enabled. + + Say N if you know that your platform does not have x2APIC. + + Otherwise, say Y. =20 config X86_MPPARSE bool "Enable MPS table" if ACPI --=20 2.25.1 From nobody Tue Jun 23 18:21:25 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C33A5C433F5 for ; Mon, 28 Feb 2022 21:29:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230365AbiB1V3k (ORCPT ); Mon, 28 Feb 2022 16:29:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230355AbiB1V3d (ORCPT ); Mon, 28 Feb 2022 16:29:33 -0500 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C97EA12F156 for ; Mon, 28 Feb 2022 13:28:53 -0800 (PST) Received: (wp-smtpd smtp.tlen.pl 39461 invoked from network); 28 Feb 2022 22:28:50 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1646083731; bh=j3DZPtWMuHI+dM3XWLQum0gNhB5TRsSDDVt7Byh+LvQ=; h=From:To:Cc:Subject; b=MH7UzumJcHFJcKkZZShU18DAidxlXBGZwrQ7mvuQasvxv+Asj633EsrCyEFzS0ueU aUOd+FTJfaYeeiyJTsxkFDYs/i5jdGxQXI8jLE/SsrurRmNGGpdnKDKbuU1/X2pgYi oMAp7NcBIkZLZ3c91mtK6Yi63WyXJGDfUXQuXwqM= Received: from aafa139.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.130.139]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 28 Feb 2022 22:28:50 +0100 From: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Johan Hovold , "Maciej W. Rozycki" , Yinghai Lu Subject: [PATCH 02/10] x86/apic: fix panic message when x2APIC is not supported Date: Mon, 28 Feb 2022 22:28:18 +0100 Message-Id: <20220228212826.27080-3-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220228212826.27080-1-mat.jonczyk@o2.pl> References: <20220228212826.27080-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: 32f4cd5e4a7dd40bb4d6feced50fbcb8 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [gaMk] Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The correct course of action is to enable x2APIC support in the kernel, not to disable it in the BIOS (which may be impossible). x2APIC has performance and functionality benefits, so it is best to use it if it is available on the platform. Signed-off-by: Mateusz Jo=C5=84czyk Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: x86@kernel.org Cc: "H. Peter Anvin" Cc: Johan Hovold Cc: "Maciej W. Rozycki" Cc: Yinghai Lu --- arch/x86/kernel/apic/apic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index b70344bf6600..840511aadbca 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -1899,7 +1899,7 @@ static int __init validate_x2apic(void) /* * Checkme: Can we simply turn off x2apic here instead of panic? */ - panic("BIOS has enabled x2apic but kernel doesn't support x2apic, please = disable x2apic in BIOS.\n"); + panic("Kernel does not support x2APIC, please recompile with CONFIG_X86_X= 2APIC or disable x2APIC in BIOS"); } early_initcall(validate_x2apic); =20 --=20 2.25.1 From nobody Tue Jun 23 18:21:25 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F0ABC433EF for ; Mon, 28 Feb 2022 21:29:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230372AbiB1V3m (ORCPT ); Mon, 28 Feb 2022 16:29:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230356AbiB1V3h (ORCPT ); Mon, 28 Feb 2022 16:29:37 -0500 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CB7B12F177 for ; Mon, 28 Feb 2022 13:28:56 -0800 (PST) Received: (wp-smtpd smtp.tlen.pl 40675 invoked from network); 28 Feb 2022 22:28:53 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1646083734; bh=Avryt45+8M17xhEl09lOmqkhM7PC9jo6k3MZepXUpfo=; h=From:To:Cc:Subject; b=olqmbWi2qe/HOGpZZ+kST3X2Ez5HQFkhBn4NNUzNv6B8DOiq6jENGpKhglEvLEATK J/E2C2Ge/rytb0IivgMNvhKI3Vjoei/BMCMTP8XTMg4snEYG267HaMThJOwGVc9AXL IuvAmXpZV5jKl+gXdhk5vdKg3oeJ9DxkdGH4jKwU= Received: from aafa139.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.130.139]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 28 Feb 2022 22:28:53 +0100 From: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Kees Cook Subject: [PATCH 03/10] x86/Kconfig: always enable ARCH_SPARSEMEM_ENABLE Date: Mon, 28 Feb 2022 22:28:19 +0100 Message-Id: <20220228212826.27080-4-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220228212826.27080-1-mat.jonczyk@o2.pl> References: <20220228212826.27080-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: a95f45f7b50b5ce6961c91475245914c X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [ESMU] Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It appears that (X86_64 || X86_32) is always true on x86. This logical OR directive was introduced in commit 6ea3038648da ("arch/x86: remove depends on CONFIG_EXPERIMENTAL") probably by a trivial mistake. Fixes: 6ea3038648da ("arch/x86: remove depends on CONFIG_EXPERIMENTAL") Signed-off-by: Mateusz Jo=C5=84czyk Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: x86@kernel.org Cc: "H. Peter Anvin" Cc: Kees Cook --- arch/x86/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 64d760a2b81a..727fd3998022 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -1641,7 +1641,6 @@ config ARCH_FLATMEM_ENABLE =20 config ARCH_SPARSEMEM_ENABLE def_bool y - depends on X86_64 || NUMA || X86_32 || X86_32_NON_STANDARD select SPARSEMEM_STATIC if X86_32 select SPARSEMEM_VMEMMAP_ENABLE if X86_64 =20 --=20 2.25.1 From nobody Tue Jun 23 18:21:25 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD356C433F5 for ; Mon, 28 Feb 2022 21:29:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230380AbiB1V3p (ORCPT ); Mon, 28 Feb 2022 16:29:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230366AbiB1V3k (ORCPT ); Mon, 28 Feb 2022 16:29:40 -0500 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EC5C12F417 for ; Mon, 28 Feb 2022 13:28:59 -0800 (PST) Received: (wp-smtpd smtp.tlen.pl 1081 invoked from network); 28 Feb 2022 22:28:56 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1646083736; bh=g7R9U2bwvy9Lkf04ixIH6Wouxa60Zi+IJmWsYAWT3Oc=; h=From:To:Cc:Subject; b=R1drsAblz0IAgEgHGcCl12WZxGhsoysEwDMXBTG0A/Tv3C0QH9f4FMVVN0g7nQkBV xYUlkqJBw3GFAM8OWElbepBwPt2RCqJDHrvIk3CNpcUK4fbUJ9YidOcqmJMwA5jkDX C5iBJUVJCFBzIybqx6EtHinPHfJ1PfNMZHSwXdQ8= Received: from aafa139.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.130.139]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 28 Feb 2022 22:28:56 +0100 From: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Subject: [PATCH 04/10] x86/Kconfig: drop X86_32_NON_STANDARD Date: Mon, 28 Feb 2022 22:28:20 +0100 Message-Id: <20220228212826.27080-5-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220228212826.27080-1-mat.jonczyk@o2.pl> References: <20220228212826.27080-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: 6fa34dc277ded7db64b1dfbd32d837cf X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [QaME] Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch drops the "Support non-standard 32-bit SMP architectures" configuration option. Currently, the only such an architecture is STA2X11, so this option is useless. STA2X11 could now be selected independently. The dependency of X86_BIGSMP on X86_32_NON_STANDARD was dropped in 2009, in commit 26f7ef14a76b ("x86: don't treat bigsmp as non-standard") but the help text for X86_32_NON_STANDARD was not updated since. CONFIG_X86_32_NON_STANDARD was used only in arch/x86/Kconfig, so it could be dropped easily. X86_32_NON_STANDARD depended on SMP, so (!SMP && !X86_32_NON_STANDARD) =3D=3D !SMP and (SMP || X86_32_NON_STANDARD) =3D=3D SMP Signed-off-by: Mateusz Jo=C5=84czyk Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: x86@kernel.org Cc: "H. Peter Anvin" --- arch/x86/Kconfig | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 727fd3998022..61b58e24dc00 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -724,18 +724,6 @@ config X86_RDC321X as R-8610-(G). If you don't have one of these chips, you should say N here. =20 -config X86_32_NON_STANDARD - bool "Support non-standard 32-bit SMP architectures" - depends on X86_32 && SMP - depends on X86_EXTENDED_PLATFORM - help - This option compiles in the bigsmp and STA2X11 default - subarchitectures. It is intended for a generic binary - kernel. If you select them all, kernel will probe it one by - one and will fallback to default. - -# Alphabetically sorted list of Non standard 32 bit platforms - config X86_SUPPORTS_MEMORY_FAILURE def_bool y # MCE code calls memory_failure(): @@ -747,7 +735,8 @@ config X86_SUPPORTS_MEMORY_FAILURE =20 config STA2X11 bool "STA2X11 Companion Chip Support" - depends on X86_32_NON_STANDARD && PCI + depends on X86_32 && SMP + depends on X86_EXTENDED_PLATFORM && PCI select SWIOTLB select MFD_STA2X11 select GPIOLIB @@ -1074,7 +1063,7 @@ config UP_LATE_INIT config X86_UP_APIC bool "Local APIC support on uniprocessors" if !PCI_MSI default PCI_MSI - depends on X86_32 && !SMP && !X86_32_NON_STANDARD + depends on X86_32 && !SMP help A local APIC (Advanced Programmable Interrupt Controller) is an integrated interrupt controller in the CPU. If you have a single-CPU @@ -1099,7 +1088,7 @@ config X86_UP_IOAPIC =20 config X86_LOCAL_APIC def_bool y - depends on X86_64 || SMP || X86_32_NON_STANDARD || X86_UP_APIC || PCI_MSI + depends on X86_64 || SMP || X86_UP_APIC || PCI_MSI select IRQ_DOMAIN_HIERARCHY select PCI_MSI_IRQ_DOMAIN if PCI_MSI =20 --=20 2.25.1 From nobody Tue Jun 23 18:21:25 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0BDD7C433F5 for ; Mon, 28 Feb 2022 21:29:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230351AbiB1V3v (ORCPT ); Mon, 28 Feb 2022 16:29:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230382AbiB1V3r (ORCPT ); Mon, 28 Feb 2022 16:29:47 -0500 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C2F212F409 for ; Mon, 28 Feb 2022 13:29:02 -0800 (PST) Received: (wp-smtpd smtp.tlen.pl 2501 invoked from network); 28 Feb 2022 22:28:59 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1646083739; bh=YNNGLaDHY0yLpX1FddEi74iLAD77BQ319H+72sbUt9c=; h=From:To:Cc:Subject; b=FvZxC9MTAubvkejLqa3JSDOGy9YLFRl08SSv1izntIcMLwbIz32NEaA5fE7RznLZ1 l1c4tzFElS3HbIMqM5f9gbpRUF3ngMCV79TflV5l3u0MMND8KSjEiTzoZYjBpjRCHr mT53DUSLtVvQla25XFzMT/Ix/AgbIgnYpx6M0Hjs= Received: from aafa139.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.130.139]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 28 Feb 2022 22:28:59 +0100 From: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Subject: [PATCH 05/10] x86/Kconfig: move all X86_EXTENDED_PLATFORM options together Date: Mon, 28 Feb 2022 22:28:21 +0100 Message-Id: <20220228212826.27080-6-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220228212826.27080-1-mat.jonczyk@o2.pl> References: <20220228212826.27080-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: 635705451f8bc0b712419d58eda3cc15 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [gUP0] Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org so that these options will be displayed together in menuconfig etc. Signed-off-by: Mateusz Jo=C5=84czyk Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: x86@kernel.org Cc: "H. Peter Anvin" --- arch/x86/Kconfig | 50 ++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 61b58e24dc00..ddbc407976fb 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -660,6 +660,31 @@ config X86_INTEL_QUARK Say Y here if you have a Quark based system such as the Arduino compatible Intel Galileo. =20 +config X86_RDC321X + bool "RDC R-321x SoC" + depends on X86_32 + depends on X86_EXTENDED_PLATFORM + select M486 + select X86_REBOOTFIXUPS + help + This option is needed for RDC R-321x system-on-chip, also known + as R-8610-(G). + If you don't have one of these chips, you should say N here. + +config STA2X11 + bool "STA2X11 Companion Chip Support" + depends on X86_32 && SMP + depends on X86_EXTENDED_PLATFORM && PCI + select SWIOTLB + select MFD_STA2X11 + select GPIOLIB + help + This adds support for boards based on the STA2X11 IO-Hub, + a.k.a. "ConneXt". The chip is used in place of the standard + PC chipset, so all "standard" peripherals are missing. If this + option is selected the kernel will still be able to boot on + standard PC machines. + config X86_INTEL_LPSS bool "Intel Low Power Subsystem Support" depends on X86 && ACPI && PCI @@ -713,17 +738,6 @@ config IOSF_MBI_DEBUG =20 If you don't require the option or are in doubt, say N. =20 -config X86_RDC321X - bool "RDC R-321x SoC" - depends on X86_32 - depends on X86_EXTENDED_PLATFORM - select M486 - select X86_REBOOTFIXUPS - help - This option is needed for RDC R-321x system-on-chip, also known - as R-8610-(G). - If you don't have one of these chips, you should say N here. - config X86_SUPPORTS_MEMORY_FAILURE def_bool y # MCE code calls memory_failure(): @@ -733,20 +747,6 @@ config X86_SUPPORTS_MEMORY_FAILURE depends on X86_64 || !SPARSEMEM select ARCH_SUPPORTS_MEMORY_FAILURE =20 -config STA2X11 - bool "STA2X11 Companion Chip Support" - depends on X86_32 && SMP - depends on X86_EXTENDED_PLATFORM && PCI - select SWIOTLB - select MFD_STA2X11 - select GPIOLIB - help - This adds support for boards based on the STA2X11 IO-Hub, - a.k.a. "ConneXt". The chip is used in place of the standard - PC chipset, so all "standard" peripherals are missing. If this - option is selected the kernel will still be able to boot on - standard PC machines. - config X86_32_IRIS tristate "Eurobraille/Iris poweroff module" depends on X86_32 --=20 2.25.1 From nobody Tue Jun 23 18:21:25 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98907C4332F for ; Mon, 28 Feb 2022 21:29:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230392AbiB1V3y (ORCPT ); Mon, 28 Feb 2022 16:29:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230396AbiB1V3r (ORCPT ); Mon, 28 Feb 2022 16:29:47 -0500 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E4A612F42B for ; Mon, 28 Feb 2022 13:29:05 -0800 (PST) Received: (wp-smtpd smtp.tlen.pl 4072 invoked from network); 28 Feb 2022 22:29:02 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1646083742; bh=82YkAaHefw8RC/W/P/fBEOpchQI4TmJnPVOoO9+19ZE=; h=From:To:Cc:Subject; b=f3lAuDM6zg6H1QIwcQ8WYDO3CLlbaoFbCEJb92bkJCYCf2gFLNI2YJpYOPdvUdpoi UQAy2Vj+lMhSsBBFwH5ZinTx93VIwq6mSZTsfKgUTwa2ti5ZIVbLA+2vdhTjawBPzw dAO+Xg2OY77A0XTaN9LEdPuJSItAMiwGPZtIketE= Received: from aafa139.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.130.139]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 28 Feb 2022 22:29:02 +0100 From: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Subject: [PATCH 06/10] x86/Kconfig: update lists in X86_EXTENDED_PLATFORM Date: Mon, 28 Feb 2022 22:28:22 +0100 Message-Id: <20220228212826.27080-7-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220228212826.27080-1-mat.jonczyk@o2.pl> References: <20220228212826.27080-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: b5f071594dccfa5aaa7a33fdbc68e972 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [AYME] Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The order of the entries matches the order they appear in Kconfig. In 2011, AMD Elan was moved to Kconfig.cpu and the dependency on X86_EXTENDED_PLATFORM was dropped in commit ce9c99af8d4b ("x86, cpu: Move AMD Elan Kconfig under "Processor fami= ly"") Support for Moorestown MID devices was removed in 2012 in commit 1a8359e411eb ("x86/mid: Remove Intel Moorestown") SGI 320/540 (Visual Workstation) was removed in 2014 in commit c5f9ee3d665a ("x86, platforms: Remove SGI Visual Workstation") Signed-off-by: Mateusz Jo=C5=84czyk Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: x86@kernel.org Cc: "H. Peter Anvin" --- arch/x86/Kconfig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index ddbc407976fb..c55a837a00ab 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -531,11 +531,11 @@ config X86_EXTENDED_PLATFORM If you enable this option then you'll be able to select support for the following (non-PC) 32 bit x86 platforms: Goldfish (Android emulator) - AMD Elan RDC R-321x SoC - SGI 320/540 (Visual Workstation) STA2X11-based (e.g. Northville) - Moorestown MID devices + Intel CE media processor (CE4100) SoC + Intel MID (Mobile Internet Device) + Intel Quark =20 If you have one of these systems, or if you want to build a generic distribution kernel, say Y here - otherwise say N. @@ -555,6 +555,8 @@ config X86_EXTENDED_PLATFORM Numascale NumaChip ScaleMP vSMP SGI Ultraviolet + Goldfish (mostly Android emulator) + Intel MID (Mobile Internet Device) =20 If you have one of these systems, or if you want to build a generic distribution kernel, say Y here - otherwise say N. --=20 2.25.1 From nobody Tue Jun 23 18:21:25 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E15DC433EF for ; Mon, 28 Feb 2022 21:29:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230424AbiB1V35 (ORCPT ); Mon, 28 Feb 2022 16:29:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230413AbiB1V3u (ORCPT ); Mon, 28 Feb 2022 16:29:50 -0500 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB02112F409 for ; Mon, 28 Feb 2022 13:29:09 -0800 (PST) Received: (wp-smtpd smtp.tlen.pl 6006 invoked from network); 28 Feb 2022 22:29:05 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1646083746; bh=R47dyKXhZrNyWcaemDPWHPDh8RGtge9AC+8p1bH68C8=; h=From:To:Cc:Subject; b=O81dfkknIQLl4uFEAPyeeveVT720KcbY/1fWYAPXRhlTS+jq/gq5uChYssCRdF7nD vOmmaDqXKCVd+Gb5iOytNEyJjSu8AKIizSlPq31XtYzi8Iyn7gkkZrjOqM1XYaLcLz 5ArdYboVfbfVWbKCNAiD9BpWSEnFCjFiNooQWJ/E= Received: from aafa139.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.130.139]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 28 Feb 2022 22:29:05 +0100 From: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Jan Kiszka Subject: [PATCH 07/10] x86/Kconfig: add help text to CONFIG_PCI_MMCONFIG Date: Mon, 28 Feb 2022 22:28:23 +0100 Message-Id: <20220228212826.27080-8-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220228212826.27080-1-mat.jonczyk@o2.pl> References: <20220228212826.27080-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: c422f2b36ff4682aedc7c1c31297ae52 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [gSM0] Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This configuration option had no help text, so add it. CONFIG_EXPERT is enabled on some distribution kernels, so people using a distribution kernel's configuration as a starting point will see this option. Signed-off-by: Mateusz Jo=C5=84czyk Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: x86@kernel.org Cc: "H. Peter Anvin" Cc: Jan Kiszka --- I would like someone to confirm that PCI Express is required for MMCONFIG support. --- arch/x86/Kconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index c55a837a00ab..27d21ef518b0 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2645,6 +2645,19 @@ config PCI_MMCONFIG default y depends on PCI && (ACPI || JAILHOUSE_GUEST) depends on X86_64 || (PCI_GOANY || PCI_GOMMCONFIG) + help + Add support for accessing the PCI configuration space as a memory + mapped area. It is the recommended method if the system supports + this (it must have PCI Express and ACPI for it to be available). + + In the unlikely case that enabling this configuration option causes + problems, the mechanism can be switched off with the 'pci=3Dnommconf' + command line parameter. + + Say 'n' only if you are sure that your platform does not support this + access method or you have problems caused by it. + + Say 'y' otherwise. =20 config PCI_OLPC def_bool y --=20 2.25.1 From nobody Tue Jun 23 18:21:25 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A665C433EF for ; Mon, 28 Feb 2022 21:29:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230386AbiB1VaF (ORCPT ); Mon, 28 Feb 2022 16:30:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230385AbiB1V3y (ORCPT ); Mon, 28 Feb 2022 16:29:54 -0500 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B5FF12F42F for ; Mon, 28 Feb 2022 13:29:13 -0800 (PST) Received: (wp-smtpd smtp.tlen.pl 8954 invoked from network); 28 Feb 2022 22:29:10 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1646083750; bh=du3D/0ryZsshRSGV4ThK5CGxk2r42FFE6m4FeX7u3TM=; h=From:To:Cc:Subject; b=qpH1KamWRo8AAuFau8XL53lR6wbbs5/wxaVX+VAmdBsmojPFDGp2WbBTJkrP7qgjt jXsCGfU6PTXHRFxbaBng6QskCT58ayPbzcd3uEHvAS00VUrNGI+e0ojdqKY4vCxXiA 0TFENDUiTYm7oOdYRVUyXdoe51i9LYxNkoajJ5NU= Received: from aafa139.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.130.139]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 28 Feb 2022 22:29:10 +0100 From: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , "Ira W . Snyder" Subject: [PATCH 08/10] x86/Kconfig: improve CONFIG_PCI_CNB20LE_QUIRK doc Date: Mon, 28 Feb 2022 22:28:24 +0100 Message-Id: <20220228212826.27080-9-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220228212826.27080-1-mat.jonczyk@o2.pl> References: <20220228212826.27080-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: f7072062548be6cafb15c4836830e774 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [UaMk] Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I was unable to find a specification of this chipset. There is a bug report in Red Hat from 2010 [2]. From dmesg from there it looks ServerWorks CNB20LE was a chipset (controlling the PCI root bridge and peripherals) and it was working with Pentium III. There was also a LKML thread from 2002 [1]. There was also some research paper from CERN listing some server configured with it with a dual Pentium III setup. [3] [1] Zwane Mwaikambo, Re: Problem with ServerWorks CNB20LE and lost interrup= ts https://lkml.org/lkml/2002/1/11/71 [2] Bug 665109 - e100 problems on old Compaq Proliant DL320 https://bugzilla.redhat.com/show_bug.cgi?id=3D665109 [3] R. Hughes-Jones, S. Dallison, G. Fairey, Performance Measurements on Gigabit Ethernet NICs and Server Quality Motherboards, http://datatag.web.cern.ch/papers/pfldnet2003-rhj.doc Signed-off-by: Mateusz Jo=C5=84czyk Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: x86@kernel.org Cc: "H. Peter Anvin" Cc: Ira W. Snyder --- arch/x86/Kconfig | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 27d21ef518b0..212f2b9a9d91 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2672,13 +2672,21 @@ config MMCONF_FAM10H depends on X86_64 && PCI_MMCONFIG && ACPI =20 config PCI_CNB20LE_QUIRK - bool "Read CNB20LE Host Bridge Windows" if EXPERT + bool "Support PCI hotplug with the CNB20LE chipset" if EXPERT depends on PCI help Read the PCI windows out of the CNB20LE host bridge. This allows PCI hotplug to work on systems with the CNB20LE chipset which do not have ACPI. =20 + The ServerWorks (later Broadcom) CNB20LE was a chipset designed + probably for Pentium III. + + To find out if you have such a chipset, search for a PCI device with + 1166:0009 PCI IDs, for example by executing + lspci -nn | grep '1166:0009' + The code is inactive if there is none. + There's no public spec for this chipset, and this functionality is known to be incomplete. =20 --=20 2.25.1 From nobody Tue Jun 23 18:21:25 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0C00FC433F5 for ; Mon, 28 Feb 2022 21:29:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230434AbiB1VaK (ORCPT ); Mon, 28 Feb 2022 16:30:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230417AbiB1VaD (ORCPT ); Mon, 28 Feb 2022 16:30:03 -0500 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B034D1301B4 for ; Mon, 28 Feb 2022 13:29:16 -0800 (PST) Received: (wp-smtpd smtp.tlen.pl 11162 invoked from network); 28 Feb 2022 22:29:13 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1646083754; bh=uHM1atmCvK4Fmy0UNZS/gdXQr4k1Ol3xhC0yE+o+Tnw=; h=From:To:Cc:Subject; b=HjSOWe0sDAdaqAbF4LLAgBI9bAWgqCsRkhDKD0O9dWXWRAGhaCMw8Af8C3JNgjL4k o1GcmMq3bdfTSB2DduboYqkbTfs/3MYc2o1YScqfdjE8gMrcDE0F7N1cEUup6qbzhe 27T6MFQfKLIudP+9JEC/n+qvsN2QvkWaSb13+1pA= Received: from aafa139.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.130.139]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 28 Feb 2022 22:29:13 +0100 From: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Andy Lutomirski Subject: [PATCH 09/10] x86/Kconfig: document year of release of glibc 2.3.3 Date: Mon, 28 Feb 2022 22:28:25 +0100 Message-Id: <20220228212826.27080-10-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220228212826.27080-1-mat.jonczyk@o2.pl> References: <20220228212826.27080-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: 3631deacfb3f231ae089ed4bb01bbe4e X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [EcM0] Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I wonder how many people were checking their glibc version when considering whether to enable this option. Signed-off-by: Mateusz Jo=C5=84czyk Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: x86@kernel.org Cc: "H. Peter Anvin" Cc: Andy Lutomirski --- arch/x86/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 212f2b9a9d91..19acc5954083 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2283,7 +2283,7 @@ config DEBUG_HOTPLUG_CPU0 =20 config COMPAT_VDSO def_bool n - prompt "Disable the 32-bit vDSO (needed for glibc 2.3.3)" + prompt "Enable workaround for glibc 2.3.2 / 2.3.3 (released in year 2003/= 2004)" depends on COMPAT_32 help Certain buggy versions of glibc will crash if they are --=20 2.25.1 From nobody Tue Jun 23 18:21:25 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4420C433EF for ; Mon, 28 Feb 2022 21:29:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230406AbiB1VaW (ORCPT ); Mon, 28 Feb 2022 16:30:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230452AbiB1VaH (ORCPT ); Mon, 28 Feb 2022 16:30:07 -0500 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0706312F417 for ; Mon, 28 Feb 2022 13:29:23 -0800 (PST) Received: (wp-smtpd smtp.tlen.pl 12678 invoked from network); 28 Feb 2022 22:29:16 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1646083757; bh=PqHq5RLokscG01DgvFScD36Q/NKZorQ7FHKxxDyaayA=; h=From:To:Cc:Subject; b=DzAnRLwqvzR0i4K0o+BTWxp/WhdrP01m5dtHfSOjfXPYJEduOtAmuqmalrKqH2iJO hckawo/Rq1hpVYypUsKuUAcWIZOKMbiRRny5N2EIqULo+LJH6xPWfvBUil8vM7i5+/ fGPy2kWMrDacCt1r6IV7Nfpm8kuEz7AfBdTkAvao= Received: from aafa139.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.130.139]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 28 Feb 2022 22:29:16 +0100 From: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: =?UTF-8?q?Mateusz=20Jo=C5=84czyk?= , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , William Breathitt Gray Subject: [PATCH 10/10] x86/Kconfig: remove CONFIG_ISA_BUS Date: Mon, 28 Feb 2022 22:28:26 +0100 Message-Id: <20220228212826.27080-11-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220228212826.27080-1-mat.jonczyk@o2.pl> References: <20220228212826.27080-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: dd651263a85712607a5c6fb4bad9a767 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [sQM0] Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CONFIG_ISA_BUS was used only as a dependency for a single Industrial IO driver: CONFIG_CIO_DAC ("Measurement Computing CIO-DAC IIO driver"). At least grepping the kernel source for "ISA_BUS" did not find any other meaningful results. There are more configuration options that select CONFIG_ISA_BUS_API, but did not depend on CONFIG_ISA_BUS. Most of these are for Industrial IO and GPIO drivers. Signed-off-by: Mateusz Jo=C5=84czyk Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: x86@kernel.org Cc: "H. Peter Anvin" Cc: William Breathitt Gray Acked-by: William Breathitt Gray --- arch/x86/Kconfig | 11 ----------- drivers/iio/dac/Kconfig | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 19acc5954083..2de46adfbde2 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2692,17 +2692,6 @@ config PCI_CNB20LE_QUIRK =20 You should say N unless you know you need this. =20 -config ISA_BUS - bool "ISA bus support on modern systems" if EXPERT - help - Expose ISA bus device drivers and options available for selection and - configuration. Enable this option if your target machine has an ISA - bus. ISA is an older system, displaced by PCI and newer bus - architectures -- if your target machine is modern, it probably does - not have an ISA bus. - - If unsure, say N. - # x86_64 have no ISA slots, but can have ISA-style DMA. config ISA_DMA_API bool "ISA-style DMA support" if (X86_64 && EXPERT) diff --git a/drivers/iio/dac/Kconfig b/drivers/iio/dac/Kconfig index bfcf7568de32..fe0f2a93055d 100644 --- a/drivers/iio/dac/Kconfig +++ b/drivers/iio/dac/Kconfig @@ -264,7 +264,7 @@ config AD8801 =20 config CIO_DAC tristate "Measurement Computing CIO-DAC IIO driver" - depends on X86 && (ISA_BUS || PC104) + depends on X86 select ISA_BUS_API help Say yes here to build support for the Measurement Computing CIO-DAC --=20 2.25.1