From: "Ahmed S. Darwish" <darwi@linutronix.de>
To: Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Andrew Cooper <andrew.cooper3@citrix.com>,
"H. Peter Anvin" <hpa@zytor.com>,
John Ogness <john.ogness@linutronix.de>,
x86@kernel.org, x86-cpuid@lists.linux.dev,
LKML <linux-kernel@vger.kernel.org>,
"Ahmed S. Darwish" <darwi@linutronix.de>
Subject: [PATCH v3 00/20] tools/x86/kcpuid: Update bitfields to x86-cpuid-db v2.3
Date: Mon, 24 Mar 2025 15:20:21 +0100 [thread overview]
Message-ID: <20250324142042.29010-1-darwi@linutronix.de> (raw)
Hi,
Update kcpuid's CSV file to latest x86-cpuid-db release. [*]
Changelog v3
------------
* Fix a rebase issue that was detected here:
https://lore.kernel.org/x86-cpuid/Z9GlyaR-oFEur1zy@lx-t490
This is now fixed at:
patch 13/20 ("tools/x86/kcpuid: Consolidate index validity checks")
* Answer HPA's review remark regarding PSN leaf 0x3:
https://lore.kernel.org/x86-cpuid/Z9qwzVuvV1p6MjRw@lx-t490
Changelog v2
------------
https://lore.kernel.org/x86-cpuid/20250312143738.458507-1-darwi@linutronix.de
* Patches 2, 4->5, 8->10, 13, 14, and 18->19 are new in v2.
* More bug fixes: patches 2, 4-5.
* More refactorings over what's already there at v1, to make the code
easier to work with. Patches 8->10, 13.
* Apply Dave Hansen review remark by avoiding explicit vendor detection
and just trying all CPUID ranges, and see if the CPU responds back with
something sensible. Patch 14.
* Apply HPA's review remark regarding Leaf 0x3 not being unique to
Transmeta. Patch 19 applies x86-cpuid-db v2.3 release, which has this
leaf removed and explains why.
* Patches 16->19, apply x86-cpuid-db v2.0 -> v2.3 changes. One release
per commit to make the kcpuid CSV diffs more sensible.
Changelog v1
------------
https://lore.kernel.org/x86-cpuid/20250306205000.227399-1-darwi@linutronix.de
This series updates kcpuid's CSV file from v1.0 to v2.2, as generated by
the x86-cpuid-db project. [*]
The new CSV adds multiple new leaves for Transmeta and Centaur/Zhaoxin.
It also introduces new bitfields at leaves 0x7, 0x80000001, 0x80000020,
and 0x80000021. More details about the CSV changes are at the actual
commit logs.
PQ Summary:
* Patch 1 is a generic kcpuid bugfix.
* Patches 2-4 are preparatory cleanups.
* Patches 5-9 add rudimentary x86 vendor detection and filtering to
kcpuid, as the CSV file is updated with indices that are exclusive to
certain CPU vendors.
* Patch 10 updates the CSV file to x86-cpuid-db v2.0.
* Patch 11 updates the CSV file to x86-cpuid-db v2.2.
Patch 10 and 11 are separated on purpose, to make the CSV commit log
diffs more sensible.
* Patch 12 puts the whole kcpuid tool under MAINTAINERS' X86 CPUID entry,
since changes to the CSV file may require updates to the kcpuid code.
This will also make myself and the x86-cpuid mailing list CCed for all
future kcpuid patches.
[*] https://gitlab.com/x86-cpuid.org/x86-cpuid-db
https://x86-cpuid.org
8<-----
Ahmed S. Darwish (20):
tools/x86/kcpuid: Fix error handling
tools/x86/kcpuid: Exit the program on invalid parameters
tools/x86/kcpuid: Simplify usage() handling
tools/x86/kcpuid: Save CPUID output in an array
tools/x86/kcpuid: Print correct CPUID output register names
tools/x86/kcpuid: Remove unused local variable
tools/x86/kcpuid: Remove unused global variable
tools/x86/kcpuid: Set function return type to void
tools/x86/kcpuid: Use C99-style for loops
tools/x86/kcpuid: Use <cpuid.h> intrinsics
tools/x86/kcpuid: Refactor CPUID range handling for future expansion
tools/x86/kcpuid: Extend CPUID index mask macro
tools/x86/kcpuid: Consolidate index validity checks
tools/x86/kcpuid: Filter valid CPUID ranges
tools/x86/kcpuid: Define Transmeta and Centaur index ranges
tools/x86/kcpuid: Update bitfields to x86-cpuid-db v2.0
tools/x86/kcpuid: Update bitfields to x86-cpuid-db v2.1
tools/x86/kcpuid: Update bitfields to x86-cpuid-db v2.2
tools/x86/kcpuid: Update bitfields to x86-cpuid-db v2.3
MAINTAINERS: Include kcpuid under X86 CPUID DATABASE
MAINTAINERS | 2 +-
tools/arch/x86/kcpuid/cpuid.csv | 791 ++++++++++++++++++--------------
tools/arch/x86/kcpuid/kcpuid.c | 375 ++++++++-------
3 files changed, 636 insertions(+), 532 deletions(-)
base-commit: 4701f33a10702d5fc577c32434eb62adde0a1ae1
--
2.48.1
next reply other threads:[~2025-03-24 14:20 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-24 14:20 Ahmed S. Darwish [this message]
2025-03-24 14:20 ` [PATCH v3 01/20] tools/x86/kcpuid: Fix error handling Ahmed S. Darwish
2025-03-25 8:55 ` Ingo Molnar
2025-03-25 9:05 ` [tip: x86/cpu] " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 02/20] tools/x86/kcpuid: Exit the program on invalid parameters Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 03/20] tools/x86/kcpuid: Simplify usage() handling Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 04/20] tools/x86/kcpuid: Save CPUID output in an array Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 05/20] tools/x86/kcpuid: Print correct CPUID output register names Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 06/20] tools/x86/kcpuid: Remove unused local variable Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 07/20] tools/x86/kcpuid: Remove unused global variable Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 08/20] tools/x86/kcpuid: Set function return type to void Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] tools/x86/kcpuid: Set parse_line() " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 09/20] tools/x86/kcpuid: Use C99-style for loops Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 10/20] tools/x86/kcpuid: Use <cpuid.h> intrinsics Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 11/20] tools/x86/kcpuid: Refactor CPUID range handling for future expansion Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 12/20] tools/x86/kcpuid: Extend CPUID index mask macro Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 13/20] tools/x86/kcpuid: Consolidate index validity checks Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 14/20] tools/x86/kcpuid: Filter valid CPUID ranges Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 15/20] tools/x86/kcpuid: Define Transmeta and Centaur index ranges Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 16/20] tools/x86/kcpuid: Update bitfields to x86-cpuid-db v2.0 Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 17/20] tools/x86/kcpuid: Update bitfields to x86-cpuid-db v2.1 Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 18/20] tools/x86/kcpuid: Update bitfields to x86-cpuid-db v2.2 Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 19/20] tools/x86/kcpuid: Update bitfields to x86-cpuid-db v2.3 Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] " tip-bot2 for Ahmed S. Darwish
2025-03-24 14:20 ` [PATCH v3 20/20] MAINTAINERS: Include kcpuid under X86 CPUID DATABASE Ahmed S. Darwish
2025-03-25 9:05 ` [tip: x86/cpu] MAINTAINERS: Include the entire kcpuid/ directory under the X86 CPUID DATABASE entry tip-bot2 for Ahmed S. Darwish
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=20250324142042.29010-1-darwi@linutronix.de \
--to=darwi@linutronix.de \
--cc=andrew.cooper3@citrix.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=john.ogness@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86-cpuid@lists.linux.dev \
--cc=x86@kernel.org \
/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®