Re: [PATCH v16 21/34] x86/resctrl: Refactor resctrl_arch_rmid_read()

From: Reinette Chatre
Date: Wed Jul 30 2025 - 16:00:57 EST


Hi Babu,

On 7/25/25 11:29 AM, Babu Moger wrote:
> resctrl_arch_rmid_read() adjusts the value obtained from MSR_IA32_QM_CTR to
> account for the overflow for MBM events and apply counter scaling for all
> the events. This logic is common to both reading an RMID and reading a
> hardware counter directly.
>
> Refactor the hardware value adjustment logic into get_corrected_val() to
> prepare for support of reading a hardware counter.
>
> Signed-off-by: Babu Moger <babu.moger@xxxxxxx>
> ---

Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>

Reinette