Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753046AbdHNJxi (ORCPT ); Mon, 14 Aug 2017 05:53:38 -0400 Received: from terminus.zytor.com ([65.50.211.136]:44547 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753022AbdHNJxf (ORCPT ); Mon, 14 Aug 2017 05:53:35 -0400 Date: Mon, 14 Aug 2017 02:52:18 -0700 From: tip-bot for Vikas Shivappa Message-ID: 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 Reply-To: vikas.shivappa@linux.intel.com, mingo@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, tglx@linutronix.de, sai.praneeth.prakhya@intel.com In-Reply-To: <1502304395-7166-2-git-send-email-vikas.shivappa@linux.intel.com> References: <1502304395-7166-2-git-send-email-vikas.shivappa@linux.intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cache] x86/intel_rdt/cqm: Clear the default RMID during hotcpu Git-Commit-ID: eda61c265f3656be8345fdf0334b3a77829437fc X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1616 Lines: 42 Commit-ID: eda61c265f3656be8345fdf0334b3a77829437fc Gitweb: http://git.kernel.org/tip/eda61c265f3656be8345fdf0334b3a77829437fc Author: Vikas Shivappa AuthorDate: Wed, 9 Aug 2017 11:46:33 -0700 Committer: Thomas Gleixner 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 Signed-off-by: Vikas Shivappa Signed-off-by: Thomas Gleixner 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);