From: Arnd Bergmann <arnd@kernel.org>
To: Ingo Molnar <mingo@redhat.com>
Cc: Arnd Bergmann <arnd@arndb.de>,
Richard Weinberger <richard@nod.at>,
Anton Ivanov <anton.ivanov@cambridgegreys.com>,
Johannes Berg <johannes@sipsolutions.net>,
Thomas Gleixner <tglx@kernel.org>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
"H. Peter Anvin" <hpa@zytor.com>,
Peter Zijlstra <peterz@infradead.org>,
Will Deacon <will@kernel.org>, Boqun Feng <boqun@kernel.org>,
Gary Guo <gary@garyguo.net>, Yury Norov <yury.norov@gmail.com>,
Rasmus Villemoes <linux@rasmusvillemoes.dk>,
Boris Ostrovsky <boris.ostrovsky@oracle.com>,
Alexander Usyskin <alexander.usyskin@intel.com>,
Tony Nguyen <anthony.l.nguyen@intel.com>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
x86@kernel.org, linux-kernel@vger.kernel.org,
linux-um@lists.infradead.org
Subject: [PATCH v2 0/7] x86-32 CPU configuration cleanups
Date: Thu, 5 Nov 2026 17:34:31 +0100 [thread overview]
Message-ID: <20261105163440.2381661-1-arnd@kernel.org> (raw)
From: Arnd Bergmann <arnd@arndb.de>
Hi Ingo,
Here are some follow-ups to your x86-32 CPU level changes based on
patches I did last year but rebased onto current mainline.
The first three just drop code that is no longer relevant now that Élan
is gone and all CPUs support both TSC and CX8.
The other four patches change the CPU configuration to be more like
x86-64 and other architectures where all kernels are expected to be
generic by default. I did keep the distinction between i586 and i686
class, but everything else is now just an optimization, building e.g. for
CONFIG_MATOM will still run on all other i686 class CPUs, and picking
any i586-class option will work on everything.
Changes since v1:
https://lore.kernel.org/all/20260522141959.1071595-1-arnd@kernel.org/
- rebase to 7.4-rc1
- drop ts5500 removal patch that was merged [Sean Young]
- reorder patches for cache line size [Juergen Gross]
Arnd
Arnd Bergmann (7):
x86: remove AMD Élan remnants
x86: make TSC usage unconditional
x86: make CX8 usage unconditional
x86: require minimum 64 byte cache lines
x86: remove dependencies on CONFIG_M... CPU options
x86: remove dependencies on per-CPU options
x86: simplify 32-bit instruction set selection
Documentation/virt/kvm/x86/timekeeping.rst | 1 -
arch/um/include/asm/asm-prototypes.h | 4 -
arch/x86/Kconfig.cpu | 42 ++---
arch/x86/Kconfig.cpufeatures | 14 +-
arch/x86/Makefile_32.cpu | 16 +-
arch/x86/events/msr.c | 5 -
arch/x86/include/asm/asm-prototypes.h | 4 -
arch/x86/include/asm/atomic64_32.h | 15 --
arch/x86/include/asm/bitops.h | 4 +-
arch/x86/include/asm/cmpxchg_32.h | 76 +-------
arch/x86/include/asm/debugreg.h | 10 +-
arch/x86/include/asm/percpu.h | 14 +-
arch/x86/include/asm/ptrace.h | 6 +-
arch/x86/include/asm/timex.h | 2 -
arch/x86/include/asm/tsc.h | 2 -
arch/x86/include/asm/vermagic.h | 36 +---
arch/x86/kernel/apic/apic.c | 23 +--
arch/x86/kernel/apic/io_apic.c | 22 +--
arch/x86/kernel/cpu/amd.c | 20 ---
arch/x86/kernel/cpu/centaur.c | 2 -
arch/x86/kernel/cpu/common.c | 4 +-
arch/x86/kernel/cpu/proc.c | 15 +-
arch/x86/kernel/i8253.c | 3 -
arch/x86/kernel/tsc.c | 18 +-
arch/x86/lib/Makefile | 4 -
arch/x86/lib/atomic64_386_32.S | 195 ---------------------
arch/x86/lib/cmpxchg8b_emu.S | 97 ----------
arch/x86/lib/kaslr.c | 20 +--
arch/x86/um/Kconfig | 2 +-
arch/x86/um/Makefile | 3 +-
arch/x86/xen/Kconfig | 1 -
arch/x86/xen/time.c | 2 -
drivers/misc/mei/Kconfig | 2 +-
drivers/net/ethernet/intel/igc/igc_ptp.c | 4 +-
drivers/ptp/Kconfig | 2 +-
lib/atomic64_test.c | 7 +-
tools/power/cpupower/debug/kernel/Makefile | 5 +-
37 files changed, 72 insertions(+), 630 deletions(-)
delete mode 100644 arch/x86/lib/atomic64_386_32.S
delete mode 100644 arch/x86/lib/cmpxchg8b_emu.S
--
2.53.0
Cc: Richard Weinberger <richard@nod.at>
Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Thomas Gleixner <tglx@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will@kernel.org>
Cc: Boqun Feng <boqun@kernel.org>
Cc: Gary Guo <gary@garyguo.net>
Cc: Yury Norov <yury.norov@gmail.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Alexander Usyskin <alexander.usyskin@intel.com>
Cc: Tony Nguyen <anthony.l.nguyen@intel.com>
Cc: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Cc: x86@kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-um@lists.infradead.org
next reply other threads:[~2026-11-05 16:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 16:34 Arnd Bergmann [this message]
2026-11-05 16:34 ` [PATCH 1/7] x86: remove AMD Élan remnants Arnd Bergmann
2026-11-05 16:34 ` [PATCH 2/7] x86: make TSC usage unconditional Arnd Bergmann
2026-11-05 16:34 ` [PATCH 3/7] x86: make CX8 " Arnd Bergmann
2026-11-05 22:30 ` Uros Bizjak
2026-11-05 16:34 ` [PATCH 4/7] x86: require minimum 64 byte cache lines Arnd Bergmann
2026-11-05 16:34 ` [PATCH 5/7] x86: remove dependencies on CONFIG_M... CPU options Arnd Bergmann
2026-11-05 16:34 ` [PATCH 6/7] x86: remove dependencies on per-CPU options Arnd Bergmann
2026-11-05 16:34 ` [PATCH 7/7] x86: simplify 32-bit instruction set selection Arnd Bergmann
2026-11-05 20:17 ` H. Peter Anvin
2026-11-05 22:01 ` Arnd Bergmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261105163440.2381661-1-arnd@kernel.org \
--to=arnd@kernel.org \
--cc=alexander.usyskin@intel.com \
--cc=anthony.l.nguyen@intel.com \
--cc=anton.ivanov@cambridgegreys.com \
--cc=arnd@arndb.de \
--cc=boqun@kernel.org \
--cc=boris.ostrovsky@oracle.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=gary@garyguo.net \
--cc=hpa@zytor.com \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-um@lists.infradead.org \
--cc=linux@rasmusvillemoes.dk \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=przemyslaw.kitszel@intel.com \
--cc=richard@nod.at \
--cc=tglx@kernel.org \
--cc=will@kernel.org \
--cc=x86@kernel.org \
--cc=yury.norov@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®