mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: tip-bot for Reinette Chatre <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
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
Subject: [tip:x86/cache] x86/intel_rdt: Initialize bitmask of shareable resource if CDP enabled
Date: Sat, 21 Oct 2017 08:18:52 -0700	[thread overview]
Message-ID: <tip-95953034fb24c16ad0047a98b16427e5935830c4@git.kernel.org> (raw)
In-Reply-To: <815747bddc820ca221a8924edaf4d1a7324547e4.1508490116.git.reinette.chatre@intel.com>

Commit-ID:  95953034fb24c16ad0047a98b16427e5935830c4
Gitweb:     https://git.kernel.org/tip/95953034fb24c16ad0047a98b16427e5935830c4
Author:     Reinette Chatre <reinette.chatre@intel.com>
AuthorDate: Fri, 20 Oct 2017 02:16:57 -0700
Committer:  Thomas Gleixner <tglx@linutronix.de>
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 <reinette.chatre@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Fenghua Yu <fenghua.yu@intel.com>
Acked-by: Vikas Shivappa <vikas.shivappa@linux.intel.com>
Acked-by: Tony Luck <tony.luck@intel.com>
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;
 	/*

  reply	other threads:[~2017-10-21 15:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-20  9:16 [PATCH 0/3] x86/intel_rdt: Locking and initialization fixes Reinette Chatre
2017-10-20  9:16 ` [PATCH 1/3] x86/intel_rdt: Initialize bitmask of shareable resource if CDP enabled Reinette Chatre
2017-10-21 15:18   ` tip-bot for Reinette Chatre [this message]
2017-10-20  9:16 ` [PATCH 2/3] x86/intel_rdt: Fix potential deadlock during resctrl unmount Reinette Chatre
2017-10-20 18:35   ` Yu, Fenghua
2017-10-21 15:19   ` [tip:x86/cache] " tip-bot for Reinette Chatre
2017-10-20  9:16 ` [PATCH 3/3] x86/intel_rdt: Fix potential deadlock during resctrl mount Reinette Chatre
2017-10-20 18:41   ` Yu, Fenghua
2017-10-21 15:19   ` [tip:x86/cache] " tip-bot for Reinette Chatre

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-95953034fb24c16ad0047a98b16427e5935830c4@git.kernel.org \
    --to=tipbot@zytor.com \
    --cc=fenghua.yu@intel.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=reinette.chatre@intel.com \
    --cc=tglx@linutronix.de \
    --cc=tony.luck@intel.com \
    --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