Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3804979imm; Tue, 29 May 2018 14:07:50 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKhqXBfoLs3YXvins/N3JWHCF+6nvdu7nztddlY1P0xcxa80/AeDTZ2sepZZDY1GTzWB75R X-Received: by 2002:a17:902:8307:: with SMTP id bd7-v6mr49342plb.234.1527628070266; Tue, 29 May 2018 14:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527628070; cv=none; d=google.com; s=arc-20160816; b=lEYJBvlNIgPINvwxycbfW5g0G5A74iFWZMYb5F7cueall6F4HnTktSnnw/4VOdR1Nm VBhvUoYQQLG5OaNpXDP01PQGQY/bPtPDNqNdicscww2OvWMF0NjOOAmPsCWax1xg2rUr a7/YfciR3fsrlMs+xr+H0qEyD4WhgrVe/RtHTqbGoWSYHzMK91uOR1upivFDSZArGIIf SGfWqYYqUwbqhBn0ZAymPSZXIe8EoRY/Ufsd/2gsgjIXUR39KmnIx/LBDJOlQ/b4NuQw qPXb8S3aCUfHEFkQyRlwvo1+i/UNzyBdMVE/bNgdByaqj0GITmK++hCCM2wa3dva4zA9 rFlw== 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=TMhO+4eHiOD80vjk2j9JAuLdXws/ODVfhLRPF7QJz7QyCs4mix0OphSAnEFP7wOW5E n5jejSCidMS3gGGA3MT6rpPMBvtq0CDQR9+7YNuGv9UEX2I3u++kWmlnf4fc520XryeN NRAVpU4rhCn3ZPKQXf8gVsxnHYUe0HZm6VQbQN69PW93YxQwC1oCXioTG45BI4KgfFHo ocoTtWvU7TsrOyrmKgcL85v3o9AGUlTJo46nogC0q4caIfSIQpAZ8BTjdwcz3YJI+aHF PhRyuXCZH7W3A5raE0mn3qY2ZWqXvK8lHR95bMWnVh8JEvYXod3+hNaB4oaViW+zCNFy anUQ== 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 e24-v6si32461395pff.30.2018.05.29.14.07.36; Tue, 29 May 2018 14:07:50 -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 S967202AbeE2VFY (ORCPT + 99 others); Tue, 29 May 2018 17:05:24 -0400 Received: from mga01.intel.com ([192.55.52.88]:53965 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937135AbeE2VBC (ORCPT ); Tue, 29 May 2018 17:01:02 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 May 2018 14:00:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,457,1520924400"; d="scan'208";a="60127691" Received: from rchatre-s.jf.intel.com ([10.54.70.76]) by orsmga001.jf.intel.com with ESMTP; 29 May 2018 14:00:54 -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 V5 08/38] x86/intel_rdt: Introduce new "exclusive" mode Date: Tue, 29 May 2018 05:57:33 -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