* Time to drop wrmsrl()/rdmsrl()?
@ 2025-12-15 8:27 Xin Li
2025-12-15 20:15 ` Sean Christopherson
0 siblings, 1 reply; 2+ messages in thread
From: Xin Li @ 2025-12-15 8:27 UTC (permalink / raw)
To: Ingo Molnar; +Cc: LKML, ML X86, Sean Christopherson, Chao Gao
Hi Ingo,
Keeping them around only causes churn now, so probably it is time to drop
them?
https://lore.kernel.org/lkml/aK8fmMGH0rB2LuA9@google.com/
https://lore.kernel.org/lkml/aR0vK3z1owwM8X8H@intel.com/
I think all of their uses were changed to wrmsrq()/rdmsrq(), but they are
coming back, and with the latest Linux 6.19-rc1 tag, I get:
$git grep -w rdmsrl
arch/x86/events/amd/uncore.c: rdmsrl(hwc->event_base, new);
arch/x86/include/asm/msr.h:#define rdmsrl(msr, val) rdmsrq(msr, val)
arch/x86/kernel/cpu/resctrl/monitor.c: rdmsrl(MSR_IA32_QM_CTR, msr_val);
drivers/hv/mshv_vtl_main.c: rdmsrl(reg_table[i].msr_addr, *reg64);
drivers/idle/intel_idle.c: rdmsrl(MSR_PKG_CST_CONFIG_CONTROL, msr_val);
drivers/idle/intel_idle.c: rdmsrl(MSR_PKG_CST_CONFIG_CONTROL, msr_val);
Thanks!
Xin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Time to drop wrmsrl()/rdmsrl()?
2025-12-15 8:27 Time to drop wrmsrl()/rdmsrl()? Xin Li
@ 2025-12-15 20:15 ` Sean Christopherson
0 siblings, 0 replies; 2+ messages in thread
From: Sean Christopherson @ 2025-12-15 20:15 UTC (permalink / raw)
To: Xin Li; +Cc: Ingo Molnar, LKML, ML X86, Chao Gao
On Mon, Dec 15, 2025, Xin Li wrote:
> Hi Ingo,
>
> Keeping them around only causes churn now, so probably it is time to drop
> them?
+1, IMO keeping the old APIs is doing far more harm than good at this point.
> https://lore.kernel.org/lkml/aK8fmMGH0rB2LuA9@google.com/
>
> https://lore.kernel.org/lkml/aR0vK3z1owwM8X8H@intel.com/
>
>
> I think all of their uses were changed to wrmsrq()/rdmsrq(), but they are
> coming back, and with the latest Linux 6.19-rc1 tag, I get:
>
> $git grep -w rdmsrl
> arch/x86/events/amd/uncore.c: rdmsrl(hwc->event_base, new);
> arch/x86/include/asm/msr.h:#define rdmsrl(msr, val) rdmsrq(msr, val)
> arch/x86/kernel/cpu/resctrl/monitor.c: rdmsrl(MSR_IA32_QM_CTR, msr_val);
> drivers/hv/mshv_vtl_main.c: rdmsrl(reg_table[i].msr_addr, *reg64);
> drivers/idle/intel_idle.c: rdmsrl(MSR_PKG_CST_CONFIG_CONTROL, msr_val);
> drivers/idle/intel_idle.c: rdmsrl(MSR_PKG_CST_CONFIG_CONTROL, msr_val);
>
>
> Thanks!
> Xin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-15 20:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-15 8:27 Time to drop wrmsrl()/rdmsrl()? Xin Li
2025-12-15 20:15 ` Sean Christopherson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox