From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932196AbdJUPVE (ORCPT ); Sat, 21 Oct 2017 11:21:04 -0400 Received: from terminus.zytor.com ([65.50.211.136]:51215 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932099AbdJUPVD (ORCPT ); Sat, 21 Oct 2017 11:21:03 -0400 Date: Sat, 21 Oct 2017 08:18:52 -0700 From: tip-bot for Reinette Chatre Message-ID: Cc: vikas.shivappa@linux.intel.com, tglx@linutronix.de, tony.luck@intel.com, fenghua.yu@intel.com, reinette.chatre@intel.com, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org Reply-To: vikas.shivappa@linux.intel.com, tony.luck@intel.com, tglx@linutronix.de, fenghua.yu@intel.com, reinette.chatre@intel.com, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <815747bddc820ca221a8924edaf4d1a7324547e4.1508490116.git.reinette.chatre@intel.com> References: <815747bddc820ca221a8924edaf4d1a7324547e4.1508490116.git.reinette.chatre@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cache] x86/intel_rdt: Initialize bitmask of shareable resource if CDP enabled Git-Commit-ID: 95953034fb24c16ad0047a98b16427e5935830c4 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 Commit-ID: 95953034fb24c16ad0047a98b16427e5935830c4 Gitweb: https://git.kernel.org/tip/95953034fb24c16ad0047a98b16427e5935830c4 Author: Reinette Chatre AuthorDate: Fri, 20 Oct 2017 02:16:57 -0700 Committer: Thomas Gleixner CommitDate: Sat, 21 Oct 2017 17:12:21 +0200 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: 0dd2d7494cd8 ("x86/intel_rdt: Show bitmask of shareable resource with other executing units" Signed-off-by: Reinette Chatre Signed-off-by: Thomas Gleixner Acked-by: Fenghua Yu Acked-by: Vikas Shivappa Acked-by: Tony Luck Link: https://lkml.kernel.org/r/815747bddc820ca221a8924edaf4d1a7324547e4.1508490116.git.reinette.chatre@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 cd5fc61..88dcf84 100644 --- a/arch/x86/kernel/cpu/intel_rdt.c +++ b/arch/x86/kernel/cpu/intel_rdt.c @@ -267,6 +267,7 @@ static void rdt_get_cdp_l3_config(int type) r->num_closid = r_l3->num_closid / 2; r->cache.cbm_len = r_l3->cache.cbm_len; r->default_ctrl = r_l3->default_ctrl; + r->cache.shareable_bits = r_l3->cache.shareable_bits; r->data_width = (r->cache.cbm_len + 3) / 4; r->alloc_capable = true; /*