[PATCH v1 00/13] tools/x86/kcpuid: Update to x86-cpuid-db v2.0

Ahmed S. Darwish posted 13 patches 1 year, 2 months ago
LICENSES/deprecated/CC0-1.0     | 129 +++++++
MAINTAINERS                     |   2 +-
tools/arch/x86/kcpuid/cpuid.csv | 648 +++++++++++++++++++-------------
tools/arch/x86/kcpuid/kcpuid.c  | 268 +++++++++----
4 files changed, 697 insertions(+), 350 deletions(-)
create mode 100644 LICENSES/deprecated/CC0-1.0
[PATCH v1 00/13] tools/x86/kcpuid: Update to x86-cpuid-db v2.0
Posted by Ahmed S. Darwish 1 year, 2 months ago
Hi,

This series updates kcpuid's bitfields CSV file to version v2.0, as
generated by the x86-cpuid-db project.

Version 2.0 of the CSV file introduces new bitfields for leaves 0x7 and
0x0x80000001.  It also introduces new leaves for Transmeta (0x3,
0x80860000 => 0x80860007) and Centaur/Zhaoxin (0xc0000000 => 0xc0000001).

Summary:

* Patch 1 fixes spdxcheck failures by adding CC0-1.0 to LICENSES/.

* Patch 3 is a generic kcpuid error handling bugfix, with patch 2 as its
  prepraration.  Thanks to Remington Brasga for the bug report.

* Patches 4-6 are preparatory kcpuid cleanups.

* Patches 7-11 introduces rudimentary x86 vendor detection and filtering
  to kcpuid, as the CSV file will be updated with indices that are
  exclusive to certain vendors.

* Patch 12 updates the CSV file to x86-cpuid-db v2.0.

* Patch 13 puts the whole kcpuid tool under MAINTAINERS' X86 CPUID entry
  since changes to the bitfields CSV may require updates to the kcpuid
  code (as in this patch queue).  I would also like to have both myself
  and the x86-cpuid mailing list CCed for future kcpuid patches.

8<-------

Ahmed S. Darwish (13):
  LICENSES: Add Creative Commons Zero v1.0 Universal
  tools/x86/kcpuid: Reorder header includes
  tools/x86/kcpuid: Fix error handling
  tools/x86/kcpuid: Remove unused local variable
  tools/x86/kcpuid: Remove unused global variable
  tools/x86/kcpuid: Simplify usage() handling
  tools/x86/kcpuid: Prepare for more index ranges
  tools/x86/kcpuid: Extend index mask macro
  tools/x86/kcpuid: Add rudimentary vendors detection
  tools/x86/kcpuid: Scan valid cpuid ranges only
  tools/x86/kcpuid: Add Transmeta and Centaur ranges
  tools/x86/kcpuid: Update bitfields to x86-cpuid-db v2.0
  MAINTAINERS: Include kcpuid under X86 CPUID entry

 LICENSES/deprecated/CC0-1.0     | 129 +++++++
 MAINTAINERS                     |   2 +-
 tools/arch/x86/kcpuid/cpuid.csv | 648 +++++++++++++++++++-------------
 tools/arch/x86/kcpuid/kcpuid.c  | 268 +++++++++----
 4 files changed, 697 insertions(+), 350 deletions(-)
 create mode 100644 LICENSES/deprecated/CC0-1.0

base-commit: adc218676eef25575469234709c2d87185ca223a
--
2.46.2