RE: [PATCH v11 17/31] x86/resctrl: Find and enable usable telemetry events
From: Luck, Tony
Date: Mon Oct 06 2025 - 17:54:12 EST
> > I don't feel that it would be worthwhile to suppress creation of these files for
> > a "can't happen" situation. I'm not sure that doing so would be significantly
> > better from a user interface perspective. Users would get slightly more notice
> > (-ENOENT when trying to open the file). But the code would require
> > architecture calls from file system code to check which files need to be created
> > separately for each domain.
>
> I think it is sufficient to document this in the commit message to help create
> confidence in robustness in support of different scenarios. I have not encountered such
> a system but could this scenario be similar to one where a two socket system supports MBM
> but only one socket has memory populated? I do not know what reading the counter MSR will
> return in this case though.
The counting h/w is likely unaware of whether DIMMs slots are populated or not. My guess
would be that in this case the counters would read as zero forever, rather than "unavailable".
CXL supports hot-add memory. So whether a node has memory could change at runtime
on a system with CXL support.
-Tony