From: tip-bot for Vikas Shivappa <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com,
vikas.shivappa@linux.intel.com, mingo@kernel.org,
sai.praneeth.prakhya@intel.com, tglx@linutronix.de
Subject: [tip:x86/cache] x86/intel_rdt/cqm: Clear the default RMID during hotcpu
Date: Mon, 14 Aug 2017 02:52:18 -0700 [thread overview]
Message-ID: <tip-eda61c265f3656be8345fdf0334b3a77829437fc@git.kernel.org> (raw)
In-Reply-To: <1502304395-7166-2-git-send-email-vikas.shivappa@linux.intel.com>
Commit-ID: eda61c265f3656be8345fdf0334b3a77829437fc
Gitweb: http://git.kernel.org/tip/eda61c265f3656be8345fdf0334b3a77829437fc
Author: Vikas Shivappa <vikas.shivappa@linux.intel.com>
AuthorDate: Wed, 9 Aug 2017 11:46:33 -0700
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Mon, 14 Aug 2017 11:47:46 +0200
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 <sai.praneeth.prakhya@intel.com>
Signed-off-by: Vikas Shivappa <vikas.shivappa@linux.intel.com>
Signed-off-by: Thomas 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
---
arch/x86/kernel/cpu/intel_rdt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/kernel/cpu/intel_rdt.c b/arch/x86/kernel/cpu/intel_rdt.c
index da4f389..4b9edb2 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);
next prev parent reply other threads:[~2017-08-14 9:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-09 18:46 [PATCH 0/3 V3] Cqm3 based on resctrl fs with MBM support Vikas Shivappa
2017-08-09 18:46 ` [PATCH 1/3] x86/intel_rdt/cqm: Add fix to clear the default RMID during hotcpu Vikas Shivappa
2017-08-14 9:52 ` tip-bot for Vikas Shivappa [this message]
2017-08-09 18:46 ` [PATCH 2/3] x86/intel_rdt: Modify the intel_pqr_state for better performance Vikas Shivappa
2017-08-14 9:52 ` [tip:x86/cache] " tip-bot for Vikas Shivappa
2017-08-09 18:46 ` [PATCH 3/3] x86/intel_rdt/cqm: Improve limbo list processing Vikas Shivappa
2017-08-14 9:45 ` Thomas Gleixner
2017-08-14 19:16 ` Shivappa Vikas
2017-08-14 21:17 ` Shivappa Vikas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-eda61c265f3656be8345fdf0334b3a77829437fc@git.kernel.org \
--to=tipbot@zytor.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=sai.praneeth.prakhya@intel.com \
--cc=tglx@linutronix.de \
--cc=vikas.shivappa@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome