summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/intel_rdt.h
diff options
context:
space:
mode:
authorVikas Shivappa2017-04-08 02:33:52 +0200
committerThomas Gleixner2017-04-14 16:10:07 +0200
commitab66a33b032eb5b8186aeaf648127bce829c9efd (patch)
treea1f00dae07781ba70b1de95735832abc68a1335d /arch/x86/include/asm/intel_rdt.h
parentx86/intel_rdt: Add resource specific msr update function (diff)
downloadkernel-qcow2-linux-ab66a33b032eb5b8186aeaf648127bce829c9efd.tar.gz
kernel-qcow2-linux-ab66a33b032eb5b8186aeaf648127bce829c9efd.tar.xz
kernel-qcow2-linux-ab66a33b032eb5b8186aeaf648127bce829c9efd.zip
x86/intel_rdt/mba: Memory bandwith allocation feature detect
Detect MBA feature if CPUID.(EAX=10H, ECX=0):EBX.L2[bit 3] = 1. Add supporting data structures to detect feature details which is done in later patch using CPUID with EAX=10H, ECX= 3. Signed-off-by: Vikas Shivappa <vikas.shivappa@linux.intel.com> Cc: ravi.v.shankar@intel.com Cc: tony.luck@intel.com Cc: fenghua.yu@intel.com Cc: vikas.shivappa@intel.com Link: http://lkml.kernel.org/r/1491611637-20417-4-git-send-email-vikas.shivappa@linux.intel.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/include/asm/intel_rdt.h')
-rw-r--r--arch/x86/include/asm/intel_rdt.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/include/asm/intel_rdt.h b/arch/x86/include/asm/intel_rdt.h
index 51e4a1ca9551..6295594bd673 100644
--- a/arch/x86/include/asm/intel_rdt.h
+++ b/arch/x86/include/asm/intel_rdt.h
@@ -184,6 +184,14 @@ union cpuid_0x10_1_eax {
unsigned int full;
};
+/* CPUID.(EAX=10H, ECX=ResID=3).EAX */
+union cpuid_0x10_3_eax {
+ struct {
+ unsigned int max_delay:12;
+ } split;
+ unsigned int full;
+};
+
/* CPUID.(EAX=10H, ECX=ResID).EDX */
union cpuid_0x10_x_edx {
struct {