Skip to content

Commit 9595303

Browse files
rchatreKAGA-KOKO
authored andcommitted
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: 0dd2d74 ("x86/intel_rdt: Show bitmask of shareable resource with other executing units" Signed-off-by: Reinette Chatre <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Fenghua Yu <[email protected]> Acked-by: Vikas Shivappa <[email protected]> Acked-by: Tony Luck <[email protected]> Link: https://lkml.kernel.org/r/815747bddc820ca221a8924edaf4d1a7324547e4.1508490116.git.reinette.chatre@intel.com
1 parent 3916a41 commit 9595303

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/kernel/cpu/intel_rdt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ static void rdt_get_cdp_l3_config(int type)
267267
r->num_closid = r_l3->num_closid / 2;
268268
r->cache.cbm_len = r_l3->cache.cbm_len;
269269
r->default_ctrl = r_l3->default_ctrl;
270+
r->cache.shareable_bits = r_l3->cache.shareable_bits;
270271
r->data_width = (r->cache.cbm_len + 3) / 4;
271272
r->alloc_capable = true;
272273
/*

0 commit comments

Comments
 (0)