x86/resctrl: Enumerate per-thread MBA controls
authorFenghua Yu <fenghua.yu@intel.com>
Mon, 24 Aug 2020 19:11:20 +0000 (12:11 -0700)
committerBorislav Petkov <bp@suse.de>
Wed, 26 Aug 2020 15:46:12 +0000 (17:46 +0200)
commite48cb1a3fb9165009fe318e1db2fde10d303c1d3
tree72288e2501e3010113c871b76428c915877192ba
parent709c4362725abb5fa1e36fd94893a9b0d049df82
x86/resctrl: Enumerate per-thread MBA controls

Some systems support per-thread Memory Bandwidth Allocation (MBA) which
applies a throttling delay value to each hardware thread instead of to
a core. Per-thread MBA is enumerated by CPUID.

No feature flag is shown in /proc/cpuinfo. User applications need to
check a resctrl throttling mode info file to know if the feature is
supported.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Babu Moger <babu.moger@amd.com>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lkml.kernel.org/r/1598296281-127595-2-git-send-email-fenghua.yu@intel.com
arch/x86/include/asm/cpufeatures.h
arch/x86/kernel/cpu/cpuid-deps.c
arch/x86/kernel/cpu/scattered.c