[PATCH 0/6] x86: Correct timer overflow and add msr/cpuid commands

Simon Glass sjg at chromium.org
Wed Aug 28 03:44:23 CEST 2024


This series corrects an overflow of the timer which happens on QEMU on
newer hardware. It also adds commands to read/write CPU ID registers and
machine-status registers (MSRs).


Simon Glass (6):
  x86: Show the CPU vendor in bdinfo
  x86: Ensure the CPU identity exists for timer init
  x86: Avoid timer-clock overflow
  x86: Sync up tsc_timer with Linux
  x86: Add a cpuid command
  x86: Add msr command

 arch/x86/cpu/i386/cpu.c           | 99 +++++++++++++++++++------------
 arch/x86/cpu/x86_64/cpu.c         |  6 ++
 arch/x86/include/asm/u-boot-x86.h | 17 ++++++
 arch/x86/lib/bdinfo.c             |  7 ++-
 cmd/x86/Makefile                  |  2 +-
 cmd/x86/cpuid.c                   | 37 ++++++++++++
 cmd/x86/msr.c                     | 52 ++++++++++++++++
 doc/usage/cmd/cpuid.rst           | 68 +++++++++++++++++++++
 doc/usage/cmd/msr.rst             | 61 +++++++++++++++++++
 doc/usage/index.rst               |  2 +
 drivers/timer/tsc_timer.c         | 18 +++++-
 test/cmd/Makefile                 |  1 +
 test/cmd/cpuid.c                  | 22 +++++++
 test/cmd/msr.c                    | 38 ++++++++++++
 14 files changed, 387 insertions(+), 43 deletions(-)
 create mode 100644 cmd/x86/cpuid.c
 create mode 100644 cmd/x86/msr.c
 create mode 100644 doc/usage/cmd/cpuid.rst
 create mode 100644 doc/usage/cmd/msr.rst
 create mode 100644 test/cmd/cpuid.c
 create mode 100644 test/cmd/msr.c

-- 
2.34.1



More information about the U-Boot mailing list