Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp116787imm; Tue, 19 Jun 2018 17:14:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKI6ajE/tbQxE2sAEnnnkCSl17XHlcxprmazlygBPJUyK/7gyYWXji/nm3SRsWHBRXSdCT5 X-Received: by 2002:a63:549:: with SMTP id 70-v6mr647222pgf.368.1529453681832; Tue, 19 Jun 2018 17:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529453681; cv=none; d=google.com; s=arc-20160816; b=hpUrqnQotSXmKcvU2zXpYmsQgXhWussrhqBaxiqPqmsw7VU8KLimzhDA1k+1Vb/Ujh hG75M739NAA4kr9PB6786QaQ6jjLI1JoWrrd6mVBrMbwdf7FmWqHSwvaHjoIMcDazAcL 4SPCf0OXpvHoh9yVOW7kn3S70eGs06D/MzZzxbLy2E5mmcODRhrImOMp/6Y1yJNqVdbR WUe7mmL5GnyAtbENmCUeK4KpcnFdfnyk5hJeZ2i/nyEe+M4c+8GYR2mW5xPlGLSknR6B CvbAcxYZ1MRCuVhongyqxw9FfkNqfa6VNarDQ4BVADa2gXBYR3vwpBoCARWLpoGQohpA 0b6Q== 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=Dq9uW6eu+VElPGtLhA7+2r9F3ciFCWviLleDN0PVfy4=; b=DpNPak0e0kmnBVlFXXhFIb75nVhK+c0GBtT37HNFEd1pH/BBc/V6Gii3W/yiRzivg8 maxTv3I31k27jrX53s5RIjbcUJiHzLXwec34smTmNpvqn1zTJX1bfg2RB575kGbSXaLc xOrDbr0wYScWWPrZfXyOP0kVsnLInTJeUT3XQQroD3j4mrvtYVZXnKscvsg3KCKeL9TD E90V9g2VZSjjSkIgjVwS7jDzAQxQkyMxxUSMuPdI1yk0Nyi3VK5/fwIwoNaay7m/2QUI WMo0MK6P7JTcgPtuyE7/oKQvZazgojaFEkNjNA3f5ipvu1ITMfuP+57emMQTThTSvPwU ckDw== 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 67-v6si804737pgc.64.2018.06.19.17.14.28; Tue, 19 Jun 2018 17:14:41 -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 S1753925AbeFTANj (ORCPT + 99 others); Tue, 19 Jun 2018 20:13:39 -0400 Received: from terminus.zytor.com ([198.137.202.136]:41537 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751655AbeFTANg (ORCPT ); Tue, 19 Jun 2018 20:13:36 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w5K0DV793296201 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 19 Jun 2018 17:13:31 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w5K0DVu23296198; Tue, 19 Jun 2018 17:13:31 -0700 Date: Tue, 19 Jun 2018 17:13:31 -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: linux-kernel@vger.kernel.org, mingo@kernel.org, reinette.chatre@intel.com, tglx@linutronix.de, hpa@zytor.com Reply-To: mingo@kernel.org, reinette.chatre@intel.com, linux-kernel@vger.kernel.org, hpa@zytor.com, tglx@linutronix.de In-Reply-To: References: To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cache] x86/intel_rdt: Introduce RDT resource group mode Git-Commit-ID: c4ccc8b90dfe244361db195bcac376fe1ad5f31a 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: c4ccc8b90dfe244361db195bcac376fe1ad5f31a Gitweb: https://git.kernel.org/tip/c4ccc8b90dfe244361db195bcac376fe1ad5f31a Author: Reinette Chatre AuthorDate: Tue, 29 May 2018 05:57:27 -0700 Committer: Thomas Gleixner CommitDate: Wed, 20 Jun 2018 00:56:27 +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/ccdbc11e14508ce3800ac4370e788374d3855aee.1527593970.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 39752825e376..c08eee73ecd3 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