Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1985129imm; Tue, 22 May 2018 12:39:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq6gYIIwCDtknzVDee0O/7ondMbooyJI4PuRoitwu27zBt4RotE2ojFacuq4p3ZIUUz8B33 X-Received: by 2002:a63:ba51:: with SMTP id l17-v6mr10673545pgu.295.1527017986241; Tue, 22 May 2018 12:39:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527017986; cv=none; d=google.com; s=arc-20160816; b=J6rS6mrRsK5LO1gLlwqBtQTNmUS12lTQ+34AmR95zsGZJziKY3g6VscnhbAymBEayM 5XcYCD/r75RygSflOtHCF/KPqHj/fo8yRmdtGhMLoj4LgubTYyxIOPDfvb2MXBQFoeW4 dXQ0xVHPTSH84+aZPHT2yxm4lNmVmighDPf9MSdmhARo0UoGGGhCpf73cmmS3x82EZrf UTVzV0TvNmakuXqvLeQ4jEiJI0k0X+oQfatO61rzsT7OFc/D9D0pZgCrpBfxWffQafFY 3ZGqN3bDMgkRgoQOLXxba7/e3R7CvnMxGf5aLBiOQfOhLrCgxrCzk/ZQcLANjVNr4rj3 V6bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=4+BzwB1QeQozhI828FRGBytiLDZRNMMALnWA/zORgd8=; b=jviFedcICLl5h0cxl3dKU3s9NcBKrg2qGetqKVPpJpWBSznsOCIcirdLo8RzNMqiBl 8eZx1snUi36aocIckXG8pG5Zj5MxegXDSJlnrf07SN1a0jaA5NwMWFa+wmEGEvl9L5hS JDm23Q8sPoOmyNL+huQZ7Gemb+A04Ra365GMSxGjL9R4vHaCRLr1mKOJIOjUnpEmTG6o Pv2I6Sayd9VBSTdnJ1DFq3NNYgmZbi14ym80VBe/NFMg421k9/Ils+kQQJ/66AOlzBBz boRHU7+6jzjL6zYt6aOwhO0BoWE6F3b6FpobaCjFIzjl/ZSuhkmYvj9/OQP2t0zld/sC 9FmA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w135-v6si17009005pff.340.2018.05.22.12.39.24; Tue, 22 May 2018 12:39:46 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752940AbeEVTiB (ORCPT + 99 others); Tue, 22 May 2018 15:38:01 -0400 Received: from mga07.intel.com ([134.134.136.100]:16708 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751946AbeEVTcD (ORCPT ); Tue, 22 May 2018 15:32:03 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 May 2018 12:32:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,430,1520924400"; d="scan'208";a="226406358" Received: from rchatre-s.jf.intel.com ([10.54.70.76]) by orsmga005.jf.intel.com with ESMTP; 22 May 2018 12:31:59 -0700 From: Reinette Chatre To: tglx@linutronix.de, fenghua.yu@intel.com, tony.luck@intel.com, vikas.shivappa@linux.intel.com Cc: gavin.hindman@intel.com, jithu.joseph@intel.com, dave.hansen@intel.com, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org, Reinette Chatre Subject: [PATCH V4 08/38] x86/intel_rdt: Introduce new "exclusive" mode Date: Tue, 22 May 2018 04:28:56 -0700 Message-Id: X-Mailer: git-send-email 2.13.6 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 5f3915c2e599..399bb94e865b 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 b2008c697ce0..739b1ecc2b80 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", }; /** -- 2.13.6