Re: [PATCH v10 07/12] x86/resctrl: Parse ACPI CMRC table
From: Reinette Chatre
Date: Wed Nov 25 2026 - 16:13:48 EST
Hi Chenyu,
On 11/5/26 2:09 AM, Chen Yu wrote:
> The CMRC (Cache Monitoring Registers for CPU Agents Description) sub-table of
> ERDT describes the MMIO registers used to read the LLC occupancy counters of an
> ERDT domain.
>
> Reading the LLC occupancy of an RMID via MMIO, rather than via the
> IA32_QM_EVTSEL/IA32_QM_CTR MSRs, requires the following data from the CMRC
nit: "via the IA32_QM_EVTSEL/IA32_QM_CTR MSRs" -> "via MSR_IA32_QM_EVTSEL
and MSR_IA32_QM_CTR"
> sub-table:
>
> - Where the counters are: the base address and size of the domain's
> monitoring register block.
> - How the counters are laid out: the index function, clump size and clump
> stride, which locate the counter of a given RMID within that block.
> - How to interpret a counter value: the flags, which indicate whether a
> counter can report that its data is unavailable, and up_scale, which
> converts a counter value to bytes.
>
> The LLC occupancy read path needs all of this data on every read. The limbo
> handler also needs up_scale to round its occupancy threshold.
>
> Parse each CMRC sub-table, validate the data above, ioremap the monitoring
>From what I can tell the patch does not validate all data listed so "validate the
data above" seems to overstate what the patch actually does.
> register block and save a copy of the CMRC sub-table in the corresponding ERDT
> domain entry.
>
> Suggested-by: Tony Luck <tony.luck@xxxxxxxxx>
> Signed-off-by: Chen Yu <yu.c.chen@xxxxxxxxx>
> Tested-by: Hongyu Ning <hongyu.ning@xxxxxxxxxxxxxxx>
> ---
The patch looks good but I think the sashiko feedback about a 0 up_scale needs
to be addressed.
Reinette