Received: by 10.192.165.148 with SMTP id m20csp1035669imm; Wed, 25 Apr 2018 11:30:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx490/+mgVnJiWGJCi/o4iBNREAqBiPz/59/PToJR0JJ2/fVdTe/qmfzWW1OBSwxQMeupSk6G X-Received: by 10.98.220.138 with SMTP id c10mr25939296pfl.183.1524681030426; Wed, 25 Apr 2018 11:30:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524681030; cv=none; d=google.com; s=arc-20160816; b=RPFy9Oyf0XiKUCljN13QIRb+8i9p6mdwZZDE+cr+K59W5ddZWetZIRAAdJHTPK+wfx RSkOUNZ2u2z7caO6pMdjFDvduVxM90Yo15k86/pmtqgCh3A0N8sibNIcVbe2iv2IjNRW 7naVPY419KojjRX2RzpOGCfXibVNMZRVtedoGxA1/Mkadi3XyDE8CwUcOk52GAheRF83 osJcVnZbkw/WNwAuxV80X5OhNYv+3BpSXo8CHdlZEpo+xBLgv7hOjbOwHpjMpr+WE7hO /eYkfQIsSNC2STsEtIGvnALD1fILIvxIAKxxBQrNLdb6SQC+V2eQLu8sUm4V4WuMHYRh umBg== 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=80uKXZwUBPCIwyrJS7Q+4qwUkykK0nz9qrelpngwigY=; b=ms11RF9Ly0XOK5aTEDezt1teArFxnBg0b+tgoFlOH0sHFO2/8k0YnyxSLa0brsIH0X lbp/E7K7/5lV5x2zO0oXKaNhGoNtjMuS9Ukw1+8NAL/4WXilH54ypFnSOH6+bkLtm9Cu 66NG8HGgsWUzaFhfvby+d5WszCaU+a6CNoqXQ7K+il1slrwv0zfWWCYECGiiVuH+f6si ECUzvVEw9vQRvC+Lob0nCeWdaRsbAl0XVWFDxMF2ZjI/Xc3HmyPjMV/9wmmtLXxqE6Ih aUtFlBEkywRgCzKjcqkbhoJiRR8s0fGOtTX8ci90Hzuy9evNJcaiRqMInpZ2YUch9Ywq +Hvg== 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 a92-v6si16368639pla.291.2018.04.25.11.30.16; Wed, 25 Apr 2018 11:30:30 -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 S1756270AbeDYS2H (ORCPT + 99 others); Wed, 25 Apr 2018 14:28:07 -0400 Received: from mga02.intel.com ([134.134.136.20]:41709 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755954AbeDYSMf (ORCPT ); Wed, 25 Apr 2018 14:12:35 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Apr 2018 11:12:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,327,1520924400"; d="scan'208";a="35243644" Received: from rchatre-s.jf.intel.com ([10.54.70.76]) by fmsmga008.fm.intel.com with ESMTP; 25 Apr 2018 11:12:33 -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 V3 08/39] x86/intel_rdt: Introduce new "exclusive" mode Date: Wed, 25 Apr 2018 03:09:44 -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 cc6e41ad9522..3fb6645de840 100644 --- a/arch/x86/kernel/cpu/intel_rdt.h +++ b/arch/x86/kernel/cpu/intel_rdt.h @@ -82,6 +82,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 @@ -90,6 +91,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 d66283f83ece..9afcb667df3a 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