x86/intel_rdt: Add two new resources for L2 Code and Data Prioritization (CDP)
authorFenghua Yu <fenghua.yu@intel.com>
Wed, 20 Dec 2017 22:57:22 +0000 (14:57 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 18 Jan 2018 08:33:31 +0000 (09:33 +0100)
commitdef10853930a82456ab862a3a8292a3a16c386e7
tree439170b06fc84cdb4656091b30a72b25d1d344d4
parenta511e7935378ef1f321456a90beae2a2632d3d83
x86/intel_rdt: Add two new resources for L2 Code and Data Prioritization (CDP)

L2 data and L2 code are added as new resources in rdt_resources_all[]
and data in the resources are configured.

When L2 CDP is enabled, the schemata will have the two resources in
this format:
L2DATA:l2id0=xxxx;l2id1=xxxx;....
L2CODE:l2id0=xxxx;l2id1=xxxx;....

xxxx represent CBM (Cache Bit Mask) values in the schemata, similar to all
others (L2 CAT/L3 CAT/L3 CDP).

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: "Ravi V Shankar" <ravi.v.shankar@intel.com>
Cc: "Tony Luck" <tony.luck@intel.com>
Cc: Vikas" <vikas.shivappa@intel.com>
Cc: Sai Praneeth" <sai.praneeth.prakhya@intel.com>
Cc: Reinette" <reinette.chatre@intel.com>
Link: https://lkml.kernel.org/r/1513810644-78015-5-git-send-email-fenghua.yu@intel.com
arch/x86/kernel/cpu/intel_rdt.c
arch/x86/kernel/cpu/intel_rdt.h