]> git.baikalelectronics.ru Git - kernel.git/commit
x86/intel_rdt: Initialize bitmask of shareable resource if CDP enabled
authorReinette Chatre <reinette.chatre@intel.com>
Fri, 20 Oct 2017 09:16:57 +0000 (02:16 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 21 Oct 2017 15:12:21 +0000 (17:12 +0200)
commit877b06c766d86f892e10a2a27d63cb3cc6f788c8
treee77c48b6d1331a95be68c1010f9930b7b1c98ff6
parentf291c7c449878ff0638c8d6c22b7e1eff4be852a
x86/intel_rdt: Initialize bitmask of shareable resource if CDP enabled

The platform informs via CPUID.(EAX=0x10, ECX=res#):EBX[31:0] (valid res#
are only 1 for L3 and 2 for L2) which unit of the allocation may be used by
other entities in the platform. This information is valid whether CDP (Code
and Data Prioritization) is enabled or not.

Ensure that the bitmask of shareable resource is initialized when CDP is
enabled.

Fixes: 76dbbbcbfb3f ("x86/intel_rdt: Show bitmask of shareable resource with other executing units"
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Fenghua Yu <fenghua.yu@intel.com>
Acked-by: Vikas Shivappa <vikas.shivappa@linux.intel.com>
Acked-by: Tony Luck <tony.luck@intel.com>
Link: https://lkml.kernel.org/r/815747bddc820ca221a8924edaf4d1a7324547e4.1508490116.git.reinette.chatre@intel.com
arch/x86/kernel/cpu/intel_rdt.c