aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikas Shivappa <[email protected]>2017-08-09 11:46:33 -0700
committerThomas Gleixner <[email protected]>2017-08-14 11:47:46 +0200
commiteda61c265f3656be8345fdf0334b3a77829437fc (patch)
treed84279caa545545f9b64bd40bfafc3abb916da43
parent0dd2d7494cd818d06a2ae1cd840cd62124a2d25e (diff)
x86/intel_rdt/cqm: Clear the default RMID during hotcpu
The user configured per cpu default RMID is not cleared during cpu hotplug. This may lead to incorrect RMID values after a cpu goes offline and again comes back online. Clear the per cpu default RMID during cpu offline and online handling. Reported-by: Prakyha Sai Praneeth <[email protected]> Signed-off-by: Vikas Shivappa <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected]
-rw-r--r--arch/x86/kernel/cpu/intel_rdt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/intel_rdt.c b/arch/x86/kernel/cpu/intel_rdt.c
index da4f3898d517..4b9edb2617a5 100644
--- a/arch/x86/kernel/cpu/intel_rdt.c
+++ b/arch/x86/kernel/cpu/intel_rdt.c
@@ -551,6 +551,7 @@ static void clear_closid_rmid(int cpu)
struct intel_pqr_state *state = this_cpu_ptr(&pqr_state);
per_cpu(rdt_cpu_default.closid, cpu) = 0;
+ per_cpu(rdt_cpu_default.rmid, cpu) = 0;
state->closid = 0;
state->rmid = 0;
wrmsr(IA32_PQR_ASSOC, 0, 0);