x86/resctrl: Detect and configure Slow Memory Bandwidth Allocation
authorBabu Moger <babu.moger@amd.com>
Fri, 13 Jan 2023 15:20:32 +0000 (09:20 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 23 Jan 2023 16:38:44 +0000 (17:38 +0100)
commit5b6fac3fa44bafee12e0c3d1c5cbae6d058e9c98
treeb95060b2a01f615a87aaae98082578d56c27d7e2
parenta76f65c89f928b87c49d88b7fd60cb4d7203ffff
x86/resctrl: Detect and configure Slow Memory Bandwidth Allocation

The QoS slow memory configuration details are available via
CPUID_Fn80000020_EDX_x02. Detect the available details and
initialize the rest to defaults.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/r/20230113152039.770054-7-babu.moger@amd.com
arch/x86/include/asm/msr-index.h
arch/x86/kernel/cpu/resctrl/core.c
arch/x86/kernel/cpu/resctrl/ctrlmondata.c
arch/x86/kernel/cpu/resctrl/rdtgroup.c