Commit eda61c26 authored by Vikas Shivappa's avatar Vikas Shivappa Committed by Thomas Gleixner

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: default avatarPrakyha Sai Praneeth <sai.praneeth.prakhya@intel.com>
Signed-off-by: default avatarVikas Shivappa <vikas.shivappa@linux.intel.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: ravi.v.shankar@intel.com
Cc: tony.luck@intel.com
Cc: fenghua.yu@intel.com
Cc: peterz@infradead.org
Cc: eranian@google.com
Cc: ak@linux.intel.com
Cc: davidcc@google.com
Link: http://lkml.kernel.org/r/1502304395-7166-2-git-send-email-vikas.shivappa@linux.intel.com
parent 0dd2d749
...@@ -551,6 +551,7 @@ static void clear_closid_rmid(int cpu) ...@@ -551,6 +551,7 @@ static void clear_closid_rmid(int cpu)
struct intel_pqr_state *state = this_cpu_ptr(&pqr_state); struct intel_pqr_state *state = this_cpu_ptr(&pqr_state);
per_cpu(rdt_cpu_default.closid, cpu) = 0; per_cpu(rdt_cpu_default.closid, cpu) = 0;
per_cpu(rdt_cpu_default.rmid, cpu) = 0;
state->closid = 0; state->closid = 0;
state->rmid = 0; state->rmid = 0;
wrmsr(IA32_PQR_ASSOC, 0, 0); wrmsr(IA32_PQR_ASSOC, 0, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment