Received: by 10.192.165.148 with SMTP id m20csp1034440imm; Wed, 25 Apr 2018 11:29:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx48JAdfzDUk+3MDftWLc9NRjF+oOTXB7/X7PPjmeV1WhxqHyERU2Nn44F5TjEZ3IAer5qLTn X-Received: by 2002:a17:902:7201:: with SMTP id ba1-v6mr29418717plb.283.1524680955382; Wed, 25 Apr 2018 11:29:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524680955; cv=none; d=google.com; s=arc-20160816; b=pzYkfHU/J+Se5sZUivBQEYtlpoczcMh01taxFEcaG82H5p5k1Ocn9vtGaX8pyPDAZk EyXUXs+bPxyoSxSO32OX+aoC5VfEgWd9QNBIzApt8cKpCu+ZtdW6Z6JJRJEGAgDzV3uc 0zbrarjAZUQKMBGeqYUOa7bhL7HA1dyusYfjFynRGM5syIX8NIsXtdN18aTkUHmPUeFE S2r2Hm6BErkdfO4oh2Ov30bkLHa1TKsmVdz1CNe/wkEv9KB6I+ePzrU7HxwJrQ005MLR Em6m8IRulEJE1bHhDAljNc2xmaaLtRmIOZjqnj+wh+6tqXX/bbcM/5DB7gsBBZo5rMI2 8s5A== 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=xQE2eD6Hou66GbOmI5dxlo1AENlmpxdL5KKQhm7m/U8=; b=yOWKb4eff/7AcOQZuKnDKrlBX9YJ9j89X/g9fVwTagUNP1I1q7ekWdGjdYrddfIFwI DtMgt0rn3w4OFIZT39xAqCuLEWCLuzDHvpg7I3eNZSOmPrHVVe4GIYZPSPiUkg3BMg2j +P6jXzzxD/WktybnURIozvWPVI7L9nyYXP9rprkSBm+8D6/LLJ3UT3J8l9YAGdxCSTW6 ucVRiwFnvRtiltvl1T0wUUf3B/jCoBj3d3dAHN3sU5ymmMGrPzQVKwdMUK+p7GCDDISP mbU8qytloj3Xv9XlKAokVH3EOxyhYkDjdfAzAZDQK42ogJGq3+krzUnpE6QKBgv8MOeA korw== 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 p20si16508806pfi.345.2018.04.25.11.29.01; Wed, 25 Apr 2018 11:29: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 S932124AbeDYSMj (ORCPT + 99 others); Wed, 25 Apr 2018 14:12:39 -0400 Received: from mga02.intel.com ([134.134.136.20]:41705 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755758AbeDYSM3 (ORCPT ); Wed, 25 Apr 2018 14:12:29 -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:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,327,1520924400"; d="scan'208";a="35243610" Received: from rchatre-s.jf.intel.com ([10.54.70.76]) by fmsmga008.fm.intel.com with ESMTP; 25 Apr 2018 11:12:27 -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 02/39] x86/intel_rdt: Introduce RDT resource group mode Date: Wed, 25 Apr 2018 03:09:38 -0700 Message-Id: <880692e9b0cc1b7a3edc2d7902448fc943a7ce18.1524649902.git.reinette.chatre@intel.com> 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 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 --- 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 3fd7a70ee04a..ecc32eb6a91e 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 { }; /** + * 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 * @parent: parent rdtgrp -- 2.13.6