From nobody Mon Apr 6 03:09:17 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 07C6BECAAA1 for ; Sun, 11 Sep 2022 08:47:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229760AbiIKIrz (ORCPT ); Sun, 11 Sep 2022 04:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229965AbiIKIrs (ORCPT ); Sun, 11 Sep 2022 04:47:48 -0400 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C7EB326D5 for ; Sun, 11 Sep 2022 01:47:45 -0700 (PDT) Received: (wp-smtpd smtp.tlen.pl 7264 invoked from network); 11 Sep 2022 10:47:42 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1662886062; bh=xMO31db5QByxeHy3dEPk7AqhTc7ZGedQ1wSzgYZM5tY=; h=From:To:Cc:Subject; b=RhbSFudB/a6d3gWRrQ5nfCuJ1E3Q77hIYwMHSLrWV+gibMCzw0tPYs6TPtijm5QfG BO9GWtQolrZH9jhsqU0yCbNeT1SLA0UJ7gn23wvJ6uT0Y1F4xMq6ml7ZDbxRVYHoMp Ul0f+7mOlCQcxZVRpJmPWwPsxPWfxGIlJ/rA+TUw= Received: from aafh243.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.137.243]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 11 Sep 2022 10:47:42 +0200 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 , Randy Dunlap Subject: [PATCH v2 01/10] x86/Kconfig: enable X86_X2APIC by default and improve help text Date: Sun, 11 Sep 2022 10:47:02 +0200 Message-Id: <20220911084711.13694-2-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220911084711.13694-1-mat.jonczyk@o2.pl> References: <20220911084711.13694-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: 956a311e2ea846f6bb889a890c480a94 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000002 [QRGG] 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 Intel 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 Cc: Randy Dunlap --- v2: language fixes by Mr Randy Dunlap, change option name --- arch/x86/Kconfig | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index f9920f1341c8..28133b5d3f12 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -440,15 +440,27 @@ config X86_FEATURE_NAMES If in doubt, say Y. =20 config X86_X2APIC - bool "Support x2apic" + bool "x2APIC interrupt controller architecture support" 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 + than 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 can 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 Mon Apr 6 03:09:17 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 BAE2FC6FA83 for ; Sun, 11 Sep 2022 08:47:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229979AbiIKIru (ORCPT ); Sun, 11 Sep 2022 04:47:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbiIKIrs (ORCPT ); Sun, 11 Sep 2022 04:47:48 -0400 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5177C3206E for ; Sun, 11 Sep 2022 01:47:47 -0700 (PDT) Received: (wp-smtpd smtp.tlen.pl 12976 invoked from network); 11 Sep 2022 10:47:44 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1662886064; bh=LG1nA/NbcwJ6Bmnos7szIV25H+uEv8jBm87oL1DXQ20=; h=From:To:Cc:Subject; b=bDFTJ9H7RIPdNrmWKFKmg8lEjO5k554CvwJ1y2D13E+i1MbCOGEOLo3mGMFiv62g7 6Q6Oe3xeuERZFwMnI1Zd8WbdFTZtqzfOwadOsg7DszfJlpP6lXBAlwXoSgRYm+FnEX y63HRx7d/aITpiawwtsdNfRE6o/4Ef+aNqnW8oiA= Received: from aafh243.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.137.243]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 11 Sep 2022 10:47:44 +0200 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 v2 02/10] x86/apic: fix panic message when x2APIC is not supported Date: Sun, 11 Sep 2022 10:47:03 +0200 Message-Id: <20220911084711.13694-3-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220911084711.13694-1-mat.jonczyk@o2.pl> References: <20220911084711.13694-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: b23c894c89c5d3368c5a99d8a5418887 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [cdMU] 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 --- v2: add a newline at the end of the text 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 6d303d1d276c..206a2693a27a 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -1902,7 +1902,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.\n"); } early_initcall(validate_x2apic); =20 --=20 2.25.1 From nobody Mon Apr 6 03:09:17 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 DDC40ECAAA1 for ; Sun, 11 Sep 2022 08:48:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230027AbiIKIsD (ORCPT ); Sun, 11 Sep 2022 04:48:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229974AbiIKIrt (ORCPT ); Sun, 11 Sep 2022 04:47:49 -0400 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBC8A3206E for ; Sun, 11 Sep 2022 01:47:48 -0700 (PDT) Received: (wp-smtpd smtp.tlen.pl 16400 invoked from network); 11 Sep 2022 10:47:46 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1662886066; bh=vIU+pYyiZqffoa9XSPfAbtCZ4n9Cipl0lCAjnwdsgs8=; h=From:To:Cc:Subject; b=XtMTJNOrLLmaoh3u2S2l7mRmcRrnh5zBe0eSqTo5/WHeqIHKaObBg919BI9cLHoGa glzUVoAwI0Kw2DvP1DE7JOimXvu/pVhL204lME2zxqeJYfYEZBJeXWr45F9qLW7a8E XYR9MWDHuAWDaf1MYUCwl31t7vMai6n2AQU6ZYvk= Received: from aafh243.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.137.243]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 11 Sep 2022 10:47:46 +0200 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 v2 03/10] x86/Kconfig: always enable ARCH_SPARSEMEM_ENABLE Date: Sun, 11 Sep 2022 10:47:04 +0200 Message-Id: <20220911084711.13694-4-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220911084711.13694-1-mat.jonczyk@o2.pl> References: <20220911084711.13694-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: 8cba2fd5504c7f8c4ec837be5678c50e X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [oeME] 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 28133b5d3f12..70bf4df73fa2 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -1625,7 +1625,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 Mon Apr 6 03:09:17 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 39317C6FA89 for ; Sun, 11 Sep 2022 08:48:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230056AbiIKIsK (ORCPT ); Sun, 11 Sep 2022 04:48:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229988AbiIKIrv (ORCPT ); Sun, 11 Sep 2022 04:47:51 -0400 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3757B326EF for ; Sun, 11 Sep 2022 01:47:49 -0700 (PDT) Received: (wp-smtpd smtp.tlen.pl 19897 invoked from network); 11 Sep 2022 10:47:47 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1662886067; bh=ytVUabcF3vmy7D2bxgeIeTy4DuPXfvw1Pn6BnaoFuVk=; h=From:To:Cc:Subject; b=scdnoTTOmj6GWOZurAL+1+y7veg9A2l480GexiEOWJwH8Cyp88j/2FVMl/hRohyVY T1Onp1nXD5fNQ9Bh8KyaZEjrhTFsxuUHgee+O4K2yC757wVfEOdUtnZHuRHNYz29vx PtN+8bYAEZAfLD821T6xL/ryJ75ThZmSYUa2PotQ= Received: from aafh243.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.137.243]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 11 Sep 2022 10:47:47 +0200 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 v2 04/10] x86/Kconfig: drop X86_32_NON_STANDARD Date: Sun, 11 Sep 2022 10:47:05 +0200 Message-Id: <20220911084711.13694-5-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220911084711.13694-1-mat.jonczyk@o2.pl> References: <20220911084711.13694-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: 7632475a2feec6673217b18624fa99e5 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [0XO0] 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 70bf4df73fa2..28f0c32fc65a 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -706,18 +706,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(): @@ -729,7 +717,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 @@ -1077,7 +1066,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 @@ -1102,7 +1091,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 Mon Apr 6 03:09:17 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 9C77FC6FA83 for ; Sun, 11 Sep 2022 08:48:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230045AbiIKIsO (ORCPT ); Sun, 11 Sep 2022 04:48:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229997AbiIKIrx (ORCPT ); Sun, 11 Sep 2022 04:47:53 -0400 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DAF332A89 for ; Sun, 11 Sep 2022 01:47:51 -0700 (PDT) Received: (wp-smtpd smtp.tlen.pl 23566 invoked from network); 11 Sep 2022 10:47:48 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1662886068; bh=4B44hVCIwBDDIJlt2GEX1V1Y9tCngkDcNQ/p4zW1j8E=; h=From:To:Cc:Subject; b=FWM1/DbWx8e/+onvDZ8Rtr7RpK6Fyzzu7K0PQAoKFM0QJa9fgvcQPvsAh+rYbwRJu B8KaBts9eFAZ7RXYE3JdPiGW8PkEDNqnnSma4s4tqOUs7KgnqCD1sCzw5yihNr1zxN QtS+BWomw5UX6LiWJo33NhegldCrUbXiyEuL9h4w= Received: from aafh243.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.137.243]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 11 Sep 2022 10:47:48 +0200 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 v2 05/10] x86/Kconfig: move all X86_EXTENDED_PLATFORM options together Date: Sun, 11 Sep 2022 10:47:06 +0200 Message-Id: <20220911084711.13694-6-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220911084711.13694-1-mat.jonczyk@o2.pl> References: <20220911084711.13694-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: c75b25129d92ad3f73d4b296c2dd2913 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [oXNE] 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 28f0c32fc65a..5a0bde075cae 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -642,6 +642,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 @@ -695,17 +720,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(): @@ -715,20 +729,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 Mon Apr 6 03:09:17 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 1A2DDECAAA1 for ; Sun, 11 Sep 2022 08:48:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230102AbiIKIsV (ORCPT ); Sun, 11 Sep 2022 04:48:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229999AbiIKIrx (ORCPT ); Sun, 11 Sep 2022 04:47:53 -0400 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D84E432A94 for ; Sun, 11 Sep 2022 01:47:52 -0700 (PDT) Received: (wp-smtpd smtp.tlen.pl 26810 invoked from network); 11 Sep 2022 10:47:50 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1662886070; bh=k3EahYcub+EJllvtFBGiEfyX5Qgy1Bs09Fk9domEcdg=; h=From:To:Cc:Subject; b=f46Y/YF7O7S7czbkLwb1qW2QwPjBGgrPMOS8ObhCT5fjZdH7GdRtzQpQmrNecarwr j3ogDgchV7QlSYiaoCOu+Dnv0d/0AN7wr73MUS/bHc1woXm5M6883BNY30/mF/rzy2 hqmLoX4muCPsfUBM2vXXIzdhtaxaetk3LbD/CljQ= Received: from aafh243.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.137.243]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 11 Sep 2022 10:47:50 +0200 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 v2 06/10] x86/Kconfig: update lists in X86_EXTENDED_PLATFORM Date: Sun, 11 Sep 2022 10:47:07 +0200 Message-Id: <20220911084711.13694-7-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220911084711.13694-1-mat.jonczyk@o2.pl> References: <20220911084711.13694-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: c0564d9aee1cf4fe327c74be756e07af X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [ofP0] 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" --- v2: update entries' order,=20 Goldfish is now "mostly Android emualator" arch/x86/Kconfig | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 5a0bde075cae..31c2c574c67d 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -512,12 +512,12 @@ config X86_EXTENDED_PLATFORM =20 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 + Goldfish (mostly Android emulator) + Intel CE media processor (CE4100) SoC + Intel MID (Mobile Internet Device) + Intel Quark RDC R-321x SoC - SGI 320/540 (Visual Workstation) STA2X11-based (e.g. Northville) - Moorestown MID devices =20 If you have one of these systems, or if you want to build a generic distribution kernel, say Y here - otherwise say N. @@ -537,6 +537,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 Mon Apr 6 03:09:17 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 52512C6FA83 for ; Sun, 11 Sep 2022 08:48:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230112AbiIKIsZ (ORCPT ); Sun, 11 Sep 2022 04:48:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229903AbiIKIrz (ORCPT ); Sun, 11 Sep 2022 04:47:55 -0400 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9255E326EF for ; Sun, 11 Sep 2022 01:47:53 -0700 (PDT) Received: (wp-smtpd smtp.tlen.pl 30425 invoked from network); 11 Sep 2022 10:47:51 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1662886071; bh=vUGG4h11dmwbPg9Po6mR8WRcjsY0PHAOs81BBUqS6tM=; h=From:To:Cc:Subject; b=n1xTeLn5RnuDf6FOLlLYzf0W1G8+ab/5Zeh4g6x/Eh/0cc9KHq53x96FJuOupdV3z PVeshC0bIS0G39y1qdw19tG6p0qG1VXM68j/Lqi3QfiQaK6Ivd+mKM+yMFF1bzB/Nb K+wa6a6hUiiBdBKgQqoN3RIqaXWBtpwlLMWSbkD4= Received: from aafh243.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.137.243]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 11 Sep 2022 10:47:51 +0200 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 v2 07/10] x86/Kconfig: document CONFIG_PCI_MMCONFIG Date: Sun, 11 Sep 2022 10:47:08 +0200 Message-Id: <20220911084711.13694-8-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220911084711.13694-1-mat.jonczyk@o2.pl> References: <20220911084711.13694-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: c60b6b189b5153b31458cc8e16b615a9 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [gROE] 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 31c2c574c67d..fdfe8b7e895a 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2712,6 +2712,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 Mon Apr 6 03:09:17 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 43639C6FA83 for ; Sun, 11 Sep 2022 08:48:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230061AbiIKIse (ORCPT ); Sun, 11 Sep 2022 04:48:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230013AbiIKIr6 (ORCPT ); Sun, 11 Sep 2022 04:47:58 -0400 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C894832A8A for ; Sun, 11 Sep 2022 01:47:55 -0700 (PDT) Received: (wp-smtpd smtp.tlen.pl 33916 invoked from network); 11 Sep 2022 10:47:52 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1662886072; bh=cRz0HbGLs7FSStcgbrNdUbSH64ygwZ0Op1wX151XXck=; h=From:To:Cc:Subject; b=l0xQefst3EiOCTDZ22Lzyb17t1bnRaZ7hkAiN6HmGCc8uao6oAMIGJw9e7q7jXhfh iNtQUVijemJzzuSNgSjoY+UQ+4PkvCm55MIVHKWeEOiUnx1yn/oPVKhT6ka9QAzCgG bTWHZ4XxrPwJLHgjhn+9QFA7s9TrSn4E4NIqa/MU= Received: from aafh243.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.137.243]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 11 Sep 2022 10:47:52 +0200 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" , Bjorn Helgaas Subject: [PATCH v2 08/10] x86/Kconfig: make CONFIG_PCI_CNB20LE_QUIRK depend on X86_32 Date: Sun, 11 Sep 2022 10:47:09 +0200 Message-Id: <20220911084711.13694-9-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220911084711.13694-1-mat.jonczyk@o2.pl> References: <20220911084711.13694-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: 59c754a3d27abd7d35107f6069d1709c X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [EeN0] Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I was unable to find a good description of the ServerWorks CNB20LE chipset. However, it was probably exclusively used with the Pentium III processor (this CPU model was used in all references to it that I found where the CPU model was provided: dmesgs in [1] and [2]; [3] page 2; [4]-[7]). As is widely known, the Pentium III processor did not support the 64-bit mode, support for which was introduced by Intel a couple of years later. So it is safe to assume that no systems with the CNB20LE chipset have amd64 and the CONFIG_PCI_CNB20LE_QUIRK may now depend on X86_32. Additionally, I have determined that most computers with the CNB20LE chipset did have ACPI support and this driver was inactive on them. I have submitted a patch to remove this driver, but it was met with resistance [8]. [1] Jim Studt, Re: Problem with ServerWorks CNB20LE and lost interrupts Linux Kernel Mailing List, https://lkml.org/lkml/2002/1/11/111 [2] RedHat 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 [4] "Hardware for Linux", Probe #d6b5151873 of Intel STL2-bd A28808-302 Desktop Computer (STL2) https://linux-hardware.org/?probe=3Dd6b5151873 [5] "Hardware for Linux", Probe #0b5d843f10 of Compaq ProLiant DL380 https://linux-hardware.org/?probe=3D0b5d843f10 [6] Ubuntu Forums, Dell Poweredge 2400 - Adaptec SCSI Bus AIC-7880 https://ubuntuforums.org/showthread.php?t=3D1689552 [7] Ira W. Snyder, "BISECTED: 2.6.35 (and -git) fail to boot: APIC problems" https://lkml.org/lkml/2010/8/13/220 [8] Bjorn Helgaas, "Re: [PATCH] x86/pci: drop ServerWorks / Broadcom CNB20LE PCI host bridge driver" https://lore.kernel.org/lkml/20220318165535.GA840063@bhelgaas/T/ 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 Cc: Bjorn Helgaas --- v2: make CONFIG_PCI_CNB20LE_QUIRK depend on X86_32 (previously only help text and description were changed) upgrade short description. arch/x86/Kconfig | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index fdfe8b7e895a..31f778b0cd0b 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2739,13 +2739,21 @@ config MMCONF_FAM10H depends on X86_64 && PCI_MMCONFIG && ACPI =20 config PCI_CNB20LE_QUIRK - bool "Read CNB20LE Host Bridge Windows" if EXPERT - depends on PCI + bool "Read PCI host bridge windows from the CNB20LE chipset" if EXPERT + depends on X86_32 && 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 + most probably only 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 Mon Apr 6 03:09:17 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 BD940C6FA89 for ; Sun, 11 Sep 2022 08:48:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230151AbiIKIsi (ORCPT ); Sun, 11 Sep 2022 04:48:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230032AbiIKIsA (ORCPT ); Sun, 11 Sep 2022 04:48:00 -0400 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5958A32A89 for ; Sun, 11 Sep 2022 01:47:56 -0700 (PDT) Received: (wp-smtpd smtp.tlen.pl 38540 invoked from network); 11 Sep 2022 10:47:54 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1662886074; bh=zTGL6yt8YAH2AxgKZxN+HtlBpnR7VOF2iiAevzJvzQY=; h=From:To:Cc:Subject; b=tDkKCJa1OfCHJMtIbsycFd7rSAYWJoUO7G6cNvXRA4U2XdxiRyJU7Ba4GZFFFCmyW jwBZ0+EIVzHK8WyJeDjmVes0sYKkYIxqHB4hC179r/HgeANKr9UR0prAqm7vmQQ158 W2HpWxW1rGn0JM2k/YHGVS9tjZfZ6L7HR1azfW1s= Received: from aafh243.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.137.243]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 11 Sep 2022 10:47:54 +0200 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 v2 09/10] x86/Kconfig: document release year of glibc 2.3.3 Date: Sun, 11 Sep 2022 10:47:10 +0200 Message-Id: <20220911084711.13694-10-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220911084711.13694-1-mat.jonczyk@o2.pl> References: <20220911084711.13694-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: 2167ce314221207ad3dca84bf1b65b5b X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [8cNE] 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 --- v2: shorten prompt. arch/x86/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 31f778b0cd0b..4612c356da4c 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2278,7 +2278,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 "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 Mon Apr 6 03:09:17 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 85BE8C6FA83 for ; Sun, 11 Sep 2022 08:48:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230162AbiIKIsn (ORCPT ); Sun, 11 Sep 2022 04:48:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230044AbiIKIsC (ORCPT ); Sun, 11 Sep 2022 04:48:02 -0400 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 881BA32AB9 for ; Sun, 11 Sep 2022 01:47:58 -0700 (PDT) Received: (wp-smtpd smtp.tlen.pl 1431 invoked from network); 11 Sep 2022 10:47:55 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1662886075; bh=EEWcK86o8siWHIRVvCobtyOrQ5S49tGsbSTHibxrknY=; h=From:To:Cc:Subject; b=a766HbVdIybswzOWh0FriZsWUZ7LhlkO89osBxZxSDEHs1ar6Il+JCf+SD44mffxU PUBmPAa+sSF1YgB8KdryjchX2OyOy4H6uInsZSeGhyq8faXkFe+uZT0XyUTJtVf97c ju3QQ6wSAVe2g/9qLvKV6ooym0sjlPBzyGCW60nk= Received: from aafh243.neoplus.adsl.tpnet.pl (HELO localhost.localdomain) (mat.jonczyk@o2.pl@[83.4.137.243]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 11 Sep 2022 10:47:55 +0200 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 v2 10/10] x86/Kconfig: remove CONFIG_ISA_BUS Date: Sun, 11 Sep 2022 10:47:11 +0200 Message-Id: <20220911084711.13694-11-mat.jonczyk@o2.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220911084711.13694-1-mat.jonczyk@o2.pl> References: <20220911084711.13694-1-mat.jonczyk@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: 709a00b38453fef752ad8eb2bfa52bbe X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [sVPk] 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 provide 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 --- v2: add "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 4612c356da4c..c8218d310d55 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2759,17 +2759,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 80521bd28d0f..e32245c013b0 100644 --- a/drivers/iio/dac/Kconfig +++ b/drivers/iio/dac/Kconfig @@ -275,7 +275,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