Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1899173imm; Sat, 23 Jun 2018 05:12:45 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJhx9kttM4JqcBVhXHTAY/tsZOq3doSnY7RvzypzmllpSCWisSHUntzOEGJahJrFHE6cbwT X-Received: by 2002:a65:665a:: with SMTP id z26-v6mr4715945pgv.117.1529755965770; Sat, 23 Jun 2018 05:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529755965; cv=none; d=google.com; s=arc-20160816; b=wUaKaycK7tnZnZ76ArVP8zZGCoQof9bj12UqyZz8kxfiiJYPZx8QDbJZWyY2pAJAjn ZzDq3IBETS7nSyPbCdDWWjikgHFFM4NQbWY54Uv6+/6Wia/6OnKj+AXlPJy5dnmc3jrJ 16wmRE12fMU42qL+tHd40D/ger7juxaDzHpic99aAFYW9nAerWsKg+w6jcKIWiRJQron URIPDLxfPPBQp4EphxhH3yuH8lUQdvx4EllO9d9nn26avJMdBymBUO5VlmbCZcqvCcCg TOZ4/wDpas2DGsTs7lrYFKituOq3BR0qZns5bFtHNmqgbY7FBqXmtTTBLvB4JEXnH9+v cbCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=+g07zuoBRMzNo7N2T0OHzfg0mGlI9TFIUOrtqa/Ac+Q=; b=XCRn1PFXhIMDE9f8184zG5heAYNvjYuXpiQrGQTkaud2K3oClzTehiUK1ygIyrCx/u lLEpu9YFYtbGZitCf7t1Oh3GvjEvNp+yuGaRTPubpOui6h5GbJm+rvQJFKAKNhK9yNYY adp3pSOKOYDT7IRYhEfBf+ctg7l/Nr9a+MLnHrZNKrHNOZ5Hpe+1gj5lZ8ouEkIJQziS Ii515DC90kTti5vLPB8uf8YP6+b9cfqnDylGy+1GU9zI7iPBWPpiaVxqYKR21K1J4Lkh oYkZS/NM5WU2itA8QLOUO/+nM0Pc/HSXfw40jlEBWBCcHNAZDPSvelW6v49AvzWYnzvF jN8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cc1-v6si1665625plb.458.2018.06.23.05.12.31; Sat, 23 Jun 2018 05:12:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752108AbeFWMLb (ORCPT + 99 others); Sat, 23 Jun 2018 08:11:31 -0400 Received: from terminus.zytor.com ([198.137.202.136]:35713 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751442AbeFWMLa (ORCPT ); Sat, 23 Jun 2018 08:11:30 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w5NCBPA4463670 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 23 Jun 2018 05:11:25 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w5NCBPKm463667; Sat, 23 Jun 2018 05:11:25 -0700 Date: Sat, 23 Jun 2018 05:11:25 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Reinette Chatre Message-ID: Cc: mingo@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, tglx@linutronix.de, reinette.chatre@intel.com Reply-To: tglx@linutronix.de, reinette.chatre@intel.com, mingo@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org In-Reply-To: References: To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cache] x86/intel_rdt: Introduce new "exclusive" mode Git-Commit-ID: 414dd2b4732949ddc972c2592a13c799434249c6 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 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 414dd2b4732949ddc972c2592a13c799434249c6 Gitweb: https://git.kernel.org/tip/414dd2b4732949ddc972c2592a13c799434249c6 Author: Reinette Chatre AuthorDate: Fri, 22 Jun 2018 15:42:00 -0700 Committer: Thomas Gleixner CommitDate: Sat, 23 Jun 2018 13:03:42 +0200 x86/intel_rdt: Introduce new "exclusive" mode At the moment all allocations are shareable. There is no way for a user to designate that an allocation associated with a resource group cannot be shared by another. Introduce the new mode "exclusive". When a resource group is marked as such it implies that no overlap is allowed between its allocation and that of another resource group. Signed-off-by: Reinette Chatre Signed-off-by: Thomas Gleixner Cc: fenghua.yu@intel.com Cc: tony.luck@intel.com Cc: vikas.shivappa@linux.intel.com Cc: gavin.hindman@intel.com Cc: jithu.joseph@intel.com Cc: dave.hansen@intel.com Cc: hpa@zytor.com Link: https://lkml.kernel.org/r/f6d24672a4280fe3b24cd2da9b5f50214439c1af.1529706536.git.reinette.chatre@intel.com --- arch/x86/kernel/cpu/intel_rdt.h | 2 ++ arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 1 + 2 files changed, 3 insertions(+) diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86/kernel/cpu/intel_rdt.h index f2fbf4059b3f..c9033fd774d5 100644 --- a/arch/x86/kernel/cpu/intel_rdt.h +++ b/arch/x86/kernel/cpu/intel_rdt.h @@ -83,6 +83,7 @@ enum rdt_group_type { /** * enum rdtgrp_mode - Mode of a RDT resource group * @RDT_MODE_SHAREABLE: This resource group allows sharing of its allocations + * @RDT_MODE_EXCLUSIVE: No sharing of this resource group's allocations allowed * * The mode of a resource group enables control over the allowed overlap * between allocations associated with different resource groups (classes @@ -91,6 +92,7 @@ enum rdt_group_type { */ enum rdtgrp_mode { RDT_MODE_SHAREABLE = 0, + RDT_MODE_EXCLUSIVE, /* Must be last */ RDT_NUM_MODES, diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c index 80ac09cf978b..910febef55e8 100644 --- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c +++ b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c @@ -161,6 +161,7 @@ enum rdtgrp_mode rdtgroup_mode_by_closid(int closid) static const char * const rdt_mode_str[] = { [RDT_MODE_SHAREABLE] = "shareable", + [RDT_MODE_EXCLUSIVE] = "exclusive", }; /**