Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp119124imm; Tue, 19 Jun 2018 17:17:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIUbkNu2bbgfuHmkWJYjDqZQj/gmduytAdLAoCR+C7Il3akXcGmuyv8HsDW0YbL3GFRxTTu X-Received: by 2002:a17:902:3381:: with SMTP id b1-v6mr21549102plc.248.1529453877796; Tue, 19 Jun 2018 17:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529453877; cv=none; d=google.com; s=arc-20160816; b=JNIsv127iQ3GboLSli72R62RCUs0tI2hpWSvEMeREBBpVGqjQ8g01cjEaQCFV7vESC nmGq5gK6vq5GdJwKel3Nr52zJxSEj3LzN7KY4hvEI5MXRi0Heg42Z889QS+MMKbBJypE JMTGmwLJgtuhwzK1b32+OdLeoIGOI37YOweOvZxFrfPHGaa32O755mHP02APU3pU9KC5 wyFMlkhZ1kF0H8HWgkf1+oEcxaDqYXBrJwr8yt/+HC59Fjx9gkk23auBG3egNHax8hBN pYLfRtsMynRMeL4/Mv8ZzoXBZnb8+QwFzRX7q4iKE2HuEynUjkqnBvl4uripjMOzuJsK XGjw== 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=9g9OnzBXXpqUDqax2WETCwI4zPXdPm2Qx5EVIernrds=; b=PPNmCClu+A3fWxJyFTnMmcGIgkUiJSwphgse1/+IbyMYs/Zc/GXeiJtboEjlN6xk9X YYQMjGVsDNPP81TWTtR56UO1H0JKB+2/TT1P8kRDdNFXrsM4rJ3e/ToJRwpEIt/wa/J6 U5i9mqZwY74ADePlU7SdHvrfs4RD14i7O45Ffma6ESvv4QE6Socz757tS2dzAaWJovXz fQLpdkYGmfYkgplCksxGO/hSi0QTP7+N6e8XNkx4PqQ/IkiF9gdC5ADr+wkKtUxGwZxH fyM3wXVodR8u6w0muywkSiIbGBcTzvpHpuhuBQZX60TN5TSdNkqKM1vGkYlyVfC3/+sQ eYoQ== 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 12-v6si899740plb.511.2018.06.19.17.17.44; Tue, 19 Jun 2018 17:17:57 -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 S1753989AbeFTAQ4 (ORCPT + 99 others); Tue, 19 Jun 2018 20:16:56 -0400 Received: from terminus.zytor.com ([198.137.202.136]:34799 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751955AbeFTAQz (ORCPT ); Tue, 19 Jun 2018 20:16:55 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w5K0GpGp3296646 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 19 Jun 2018 17:16:51 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w5K0GowM3296643; Tue, 19 Jun 2018 17:16:50 -0700 Date: Tue, 19 Jun 2018 17:16:50 -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: reinette.chatre@intel.com, tglx@linutronix.de, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@kernel.org Reply-To: hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@kernel.org, reinette.chatre@intel.com, tglx@linutronix.de 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: bc61c3ef346945e87fa6312748fd1665c16200b3 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, T_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: bc61c3ef346945e87fa6312748fd1665c16200b3 Gitweb: https://git.kernel.org/tip/bc61c3ef346945e87fa6312748fd1665c16200b3 Author: Reinette Chatre AuthorDate: Tue, 29 May 2018 05:57:33 -0700 Committer: Thomas Gleixner CommitDate: Wed, 20 Jun 2018 00:56:29 +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/cea76188c5b30cffaf89ad5c7efd66a3e7f105d4.1527593970.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 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 e59c8751293b..43b532bea735 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", }; /**