x86/resctrl: Support CPUID enumeration of MBM counter width
authorReinette Chatre <reinette.chatre@intel.com>
Tue, 5 May 2020 22:36:17 +0000 (15:36 -0700)
committerBorislav Petkov <bp@suse.de>
Wed, 6 May 2020 16:02:41 +0000 (18:02 +0200)
commitf3d44f18b0662327c42128b9d3604489bdb6e36f
treeaeced9ad25200b4d9c91667dba119f1995cd7a8a
parent46637d4570e108d1f6721cfa2cca1d078882761a
x86/resctrl: Support CPUID enumeration of MBM counter width

The original Memory Bandwidth Monitoring (MBM) architectural
definition defines counters of up to 62 bits in the
IA32_QM_CTR MSR while the first-generation MBM implementation
uses statically defined 24 bit counters.

Expand the MBM CPUID enumeration properties to include the MBM
counter width. The previously undefined EAX output register contains,
in bits [7:0], the MBM counter width encoded as an offset from
24 bits. Enumerating this property is only specified for Intel
CPUs.

Suggested-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/afa3af2f753f6bc301fb743bc8944e749cb24afa.1588715690.git.reinette.chatre@intel.com
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/resctrl/core.c