Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1896991imm; Sat, 23 Jun 2018 05:10:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLaUQF4ystwF5nh1mTc9/PzE35dYwoN4no2tk1kyC72HGkQ6nPKAuTX1uvtINoRmQzRJTjY X-Received: by 2002:a62:1c43:: with SMTP id c64-v6mr5640254pfc.176.1529755815324; Sat, 23 Jun 2018 05:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529755815; cv=none; d=google.com; s=arc-20160816; b=s/pmzlg4omHSK5XDA02EHDom0ruPJp6lRCvouS3K8AKkwj4S15mSuVKchkkmdTxR6K ml+stDJuJ3bR8elkKsY/RzbruI1PHhQlSQ5Gd7hlX3i4y9NP0wxbjqtj6Fr35brEO0J2 7K61B3FQMcIgNcAzH+ltIB+EvgVPq9xQ3WkUENN5BaDdJni/nEQVoWxDaZ6q7xcMLJLU NBrx+YIpGEQj1O5ppnWl1nrYcIFaJ9q5rQWFDiw8nam/P05ZYsosz6vpsjlxh60aNWUA KdUBNRxW08yTGmIDR+NeIpr8qzkFkMfJQ2WxUyiEi4v51hezJov/hRTkg9B0k4EFTKP6 9JRw== 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=SoxiHDTzYmdRlvkgXmF17/t9JgTYa4724nQ0YQu8t1o=; b=cg1mA+rDD2VaDEZFMVJARr+6PFNsxhwuzKdmAp42Rc06UrwsZ/P0BHZvbufIBEZlaJ SGjq8GTA2TTvcOdQmQ9gnP1KLSYR36x4+TH3usBBEETursngDV+wKN4Y/LMnr7vhPgUs 2zFjkignEk8qesooOZEBcAfX13+1x1t8Z6RV4COIo3V9SOUqO495fair9xF+5rTcuxVv r83xUPTZut2nUUyS8lbxmEBIrAVweH76zRMyOuSJMI4f7mucWZE3H3UAMRP1A8mm7vyd lcZ7lWTN0hKvsjp5r9CYvMVWb3g5SfS8MR/5oX339iZUYs2h8HmO15G5QgkkPPpY2Tsd bljQ== 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.10.00; Sat, 23 Jun 2018 05:10:15 -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 S1751915AbeFWMIU (ORCPT + 99 others); Sat, 23 Jun 2018 08:08:20 -0400 Received: from terminus.zytor.com ([198.137.202.136]:36857 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751223AbeFWMIT (ORCPT ); Sat, 23 Jun 2018 08:08:19 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w5NC8DiD463243 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 23 Jun 2018 05:08:13 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w5NC8D7u463240; Sat, 23 Jun 2018 05:08:13 -0700 Date: Sat, 23 Jun 2018 05:08:13 -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, hpa@zytor.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, reinette.chatre@intel.com Reply-To: mingo@kernel.org, hpa@zytor.com, tglx@linutronix.de, reinette.chatre@intel.com, linux-kernel@vger.kernel.org In-Reply-To: <87e88275597fbfa03ea9d41c1186bf012c831c01.1529706536.git.reinette.chatre@intel.com> References: <87e88275597fbfa03ea9d41c1186bf012c831c01.1529706536.git.reinette.chatre@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cache] x86/intel_rdt: Introduce RDT resource group mode Git-Commit-ID: eb956a636f90bd0297309a7eae6db388ae5bfc43 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: eb956a636f90bd0297309a7eae6db388ae5bfc43 Gitweb: https://git.kernel.org/tip/eb956a636f90bd0297309a7eae6db388ae5bfc43 Author: Reinette Chatre AuthorDate: Fri, 22 Jun 2018 15:41:54 -0700 Committer: Thomas Gleixner CommitDate: Sat, 23 Jun 2018 13:03:40 +0200 x86/intel_rdt: Introduce RDT resource group mode At this time there are no constraints on how bitmasks represented by schemata can be associated with closids represented by resource groups. A bitmask of one class of service can without any objections overlap with the bitmask of another class of service. The concept of "mode" is introduced in preparation for support of control over whether cache regions can be shared between classes of service. At this time the only mode reflects the current cache allocations where all can potentially be shared. 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/87e88275597fbfa03ea9d41c1186bf012c831c01.1529706536.git.reinette.chatre@intel.com --- arch/x86/kernel/cpu/intel_rdt.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86/kernel/cpu/intel_rdt.h index be152b3b2543..fef254e85da4 100644 --- a/arch/x86/kernel/cpu/intel_rdt.h +++ b/arch/x86/kernel/cpu/intel_rdt.h @@ -80,6 +80,22 @@ enum rdt_group_type { RDT_NUM_GROUP, }; +/** + * enum rdtgrp_mode - Mode of a RDT resource group + * @RDT_MODE_SHAREABLE: This resource group allows sharing of its allocations + * + * The mode of a resource group enables control over the allowed overlap + * between allocations associated with different resource groups (classes + * of service). User is able to modify the mode of a resource group by + * writing to the "mode" resctrl file associated with the resource group. + */ +enum rdtgrp_mode { + RDT_MODE_SHAREABLE = 0, + + /* Must be last */ + RDT_NUM_MODES, +}; + /** * struct mongroup - store mon group's data in resctrl fs. * @mon_data_kn kernlfs node for the mon_data directory