]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5edcc50a0ce89743af03ead2c46fdc40eb281109
tree72288e2501e3010113c871b76428c915877192ba
parent006db7ca2312b0477cb153b8ed827b941fd7e4fc
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