[PATCH v3 00/11] x86/msr: Drop 32-bit variants of *_on_cpu() MSR functions

Juergen Gross posted 11 patches an hour ago
arch/x86/events/intel/ds.c                   | 11 +--
arch/x86/include/asm/msr.h                   | 28 +-----
arch/x86/kernel/cpu/mce/amd.c                |  6 +-
arch/x86/kernel/cpu/mce/inject.c             |  8 +-
arch/x86/kernel/msr.c                        |  8 +-
arch/x86/lib/msr-smp.c                       | 89 +++-----------------
drivers/cpufreq/amd-pstate.c                 |  2 +-
drivers/cpufreq/amd_freq_sensitivity.c       |  6 +-
drivers/cpufreq/p4-clockmod.c                | 32 +++----
drivers/cpufreq/speedstep-centrino.c         | 27 +++---
drivers/hwmon/coretemp.c                     | 44 +++++-----
drivers/hwmon/via-cputemp.c                  | 16 ++--
drivers/thermal/intel/intel_tcc.c            | 43 +++++-----
drivers/thermal/intel/x86_pkg_temp_thermal.c | 25 +++---
14 files changed, 128 insertions(+), 217 deletions(-)
[PATCH v3 00/11] x86/msr: Drop 32-bit variants of *_on_cpu() MSR functions
Posted by Juergen Gross an hour ago
Drop the variants using 2 32-bit values instead of a single 64-bit one
of the *_on_cpu() MSR access functions.

Changes in V2:
- patches 1+2 split out from other patch
- keep the *q() variants instead of those without suffix

Changes in V3:
- V3 patch 7 split out from V2 patch 7

Juergen Gross (11):
  x86/msr: Switch rdmsrl_on_cpu() users to rdmsrq_on_cpu()
  x86/msr: Remove rdmsrl_on_cpu()
  x86/msr: Switch rdmsr_on_cpu() users to rdmsrq_on_cpu()
  x86/msr: Remove rdmsr_on_cpu()
  x86/msr: Switch wrmsr_on_cpu() users to wrmsrq_on_cpu()
  x86/msr: Remove wrmsr_on_cpu()
  x86/msr: Don't use rdmsr_safe_on_cpu() in rdmsrq_safe_on_cpu()
  x86/msr: Switch rdmsr_safe_on_cpu() users to rdmsrq_safe_on_cpu()
  x86/msr: Remove rdmsr_safe_on_cpu()
  x86/msr: Switch wrmsr_safe_on_cpu() users to wrmsrq_safe_on_cpu()
  x86/msr: Remove wrmsr_safe_on_cpu()

 arch/x86/events/intel/ds.c                   | 11 +--
 arch/x86/include/asm/msr.h                   | 28 +-----
 arch/x86/kernel/cpu/mce/amd.c                |  6 +-
 arch/x86/kernel/cpu/mce/inject.c             |  8 +-
 arch/x86/kernel/msr.c                        |  8 +-
 arch/x86/lib/msr-smp.c                       | 89 +++-----------------
 drivers/cpufreq/amd-pstate.c                 |  2 +-
 drivers/cpufreq/amd_freq_sensitivity.c       |  6 +-
 drivers/cpufreq/p4-clockmod.c                | 32 +++----
 drivers/cpufreq/speedstep-centrino.c         | 27 +++---
 drivers/hwmon/coretemp.c                     | 44 +++++-----
 drivers/hwmon/via-cputemp.c                  | 16 ++--
 drivers/thermal/intel/intel_tcc.c            | 43 +++++-----
 drivers/thermal/intel/x86_pkg_temp_thermal.c | 25 +++---
 14 files changed, 128 insertions(+), 217 deletions(-)

-- 
2.54.0
Re: [PATCH v3 00/11] x86/msr: Drop 32-bit variants of *_on_cpu() MSR functions
Posted by K Prateek Nayak 37 minutes ago
Hello Juergen,

On 6/8/2026 10:47 AM, Juergen Gross wrote:
> Drop the variants using 2 32-bit values instead of a single 64-bit one
> of the *_on_cpu() MSR access functions.
> 
> Changes in V2:
> - patches 1+2 split out from other patch
> - keep the *q() variants instead of those without suffix
> 
> Changes in V3:
> - V3 patch 7 split out from V2 patch 7

I've taken this series for a spin on top of tip/master and haven't
notices anything unusual on both baremetal and on an i386 QEMU
guest. Feel free to include:

Tested-by: K Prateek Nayak <kprateek.nayak@amd.com>

-- 
Thanks and Regards,
Prateek