x86/resctrl: Add code to setup monitoring at L3 or NODE scope.
When Sub-NUMA cluster is enabled (snc_ways > 1) use the RDT_RESOURCE_NODE instead of RDT_RESOURCE_L3 for all monitoring operations. The mon_scale and num_rmid values from CPUID(0xf,0x1),(EBX,ECX) must be scaled down by the number of Sub-NUMA Clusters. A subsequent change will detect sub-NUMA cluster mode and set "snc_ways". For now set to one (meaning each L3 cache spans one node). Signed-off-by:Tony Luck <tony.luck@intel.com> Signed-off-by:
James Morse <james.morse@arm.com> Reviewed-by:
Peter Newman <peternewman@google.com>
Loading
Please register or sign in to comment