Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp17588rdb; Fri, 15 Dec 2023 20:58:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGPMOEvWO1kVp6z63JgqKA8YHSwm6/B+YyFAzbGQ1Sa9Mba/c7pRmgr5kr45zdz42VpzOtr X-Received: by 2002:a17:90b:4b0e:b0:28b:4c9f:150 with SMTP id lx14-20020a17090b4b0e00b0028b4c9f0150mr496283pjb.16.1702702737649; Fri, 15 Dec 2023 20:58:57 -0800 (PST) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k12-20020a6568cc000000b0056f7f18bbfdsi13853940pgt.632.2023.12.15.20.58.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 20:58:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2080-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VA8x1ZCR; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-2080-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2080-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 12098B21977 for ; Sat, 16 Dec 2023 04:58:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B5EE1119B; Sat, 16 Dec 2023 04:58:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="VA8x1ZCR" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BAF8D10A1F for ; Sat, 16 Dec 2023 04:58:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702702722; x=1734238722; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=5UqUuQtnWvHGl+XuJdvak1NXiD05/HsTo1Ownfu2zxM=; b=VA8x1ZCRQDH0i4TWgQOp4vMHBwFmk4eK/12S467o+QJm1IOaSOdr2rtL NNd8GOISFtRLuLjJCSjvtMOfNREhiGqgk0TaYUvpKqe0LNav61gLBsUya xBIY3OF6L0gMBeMTkSgbQgSSqb/48gjoZz912zaAs9o8RSZUKooI6YQpi nLILxfSZd6kzXAx19uspwYoJ4Lqpe92UHDmp2idcxzYApEroaGzzcDG1/ t92uAfIgr1AQQB6ZIXfRg1ysnck0kqll2+Q3so8OCfmQa9Kvfe6llCMX6 euX3bBR7ZRUJkzZiF4XNqUxC8oZywqa7aV25pZsGL/Qa+q/SdBHVbZtX5 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10925"; a="2534713" X-IronPort-AV: E=Sophos;i="6.04,280,1695711600"; d="scan'208";a="2534713" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2023 20:58:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10925"; a="768223656" X-IronPort-AV: E=Sophos;i="6.04,280,1695711600"; d="scan'208";a="768223656" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga007.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 15 Dec 2023 20:58:40 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 15 Dec 2023 20:58:40 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 15 Dec 2023 20:58:39 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Fri, 15 Dec 2023 20:58:39 -0800 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.168) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 15 Dec 2023 20:58:39 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mPbzA6VUn8xfA7Zgo2lgnAxsUEoDEQyldymcso7hRt72Jf6afWw6ssd/7iaDDJrMjfUjbEPMD6D1Pz+d2h+bVn0ZzptE83/1uHHGkLXzVW6QRM+P7ElL0mIG148PS8IWFx0sGKx7KGrjhuOZJAw1gtuvKea5pHLLExSn2uWONa9nVam591NHAFoBsGTY6GtlPtfUYaE9WY+N50Gn6Ixf4svqRpykbSQJwaa7/AiyzccItWEA0+a57nkhoPLgGnACBA3edkliHbr/l/Jh0fNjHX5gIZrbW5Gnh4CBCbkVbYevw4isH69QnDcsjX/mzWUt9bk2rWuQ4Yz4COOxSuZjjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vI094OY3f5lAnte9q7DUuMRPI3av+MrZbxS8gWSnKpg=; b=S8aukZky5YjRuD7nXfwZqOEWQtLnHjG5/BxJdpNudUcyXiSh/hwieD04lkyW1CGfSDYyc5YcHDSP5CWFfYyo94eIUqt7DdgN0g+Bk5vLnZ746lLAhHHMxe4vInzn36/rgnq7BM8wZOuza4i82+ePLscumRB9AK3tyvsquNj5HOlBCP6YVz8sHHaXiI2FEZHgHbI4sXYRnJZXANZpGmoOOGIl9w8XKkFFwEr99aQnYtw9TISg21za2q/ihaoRsCC+CjFJyzrPDCob1THSFuDP0q5d7O7ThhATr+sCPpL+tOy3w4XclcLGs2OFtP+uv+iz58v0y39HDj1hoQ9Xr8rBYg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) by IA1PR11MB6147.namprd11.prod.outlook.com (2603:10b6:208:3ed::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.33; Sat, 16 Dec 2023 04:58:05 +0000 Received: from SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::6710:537d:b74:f1e5]) by SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::6710:537d:b74:f1e5%5]) with mapi id 15.20.7091.028; Sat, 16 Dec 2023 04:58:05 +0000 Message-ID: Date: Fri, 15 Dec 2023 20:58:03 -0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 05/24] x86/resctrl: Track the closid with the rmid Content-Language: en-US To: James Morse , , CC: Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , , D Scott Phillips OS , , , , , , Jamie Iles , Xin Hao , , , References: <20231215174343.13872-1-james.morse@arm.com> <20231215174343.13872-6-james.morse@arm.com> From: Reinette Chatre In-Reply-To: <20231215174343.13872-6-james.morse@arm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4PR04CA0227.namprd04.prod.outlook.com (2603:10b6:303:87::22) To SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR11MB7573:EE_|IA1PR11MB6147:EE_ X-MS-Office365-Filtering-Correlation-Id: 4e0b5cc8-0fee-40ac-5dc8-08dbfdf396c8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6cJ+jMhnPYbi9r9WxA1EOFtGOxLm/oqeEANPSoxMV5eeAY8J3gyJPy5akePJvZoZub4UeDSrV2usp0e76VUI+IreJiJP5VMjjimqugNNVRqp/kSvYrv3xqgTJbF5naFIFTNFyex7aamBCSBGy8p3aqrSDBV8Mx4AgdbCLrMCPCQBrFu+Q/WaX1bgxrY7aWPd13xBP4Ok6nDxAjIB159bqaGvJIj+y56wqScCMS8bOHG0uFypVS5mZaBuPKD63vgGLGdW+qy9t37GWsETG9akvE1knlvqsutHude1RLez610Pv+bYTKMASdbZYk0TqlxhiWqIaXXJ5uAzrFEgKMnnDks6jUU5Tdb9xWQAgty0dyZ6Jd2S2+ai96VJmhUYSaXHsO411yTKcAVKw31CvyK2W3nnTGnxL+SNbq3QJRezgG15ONeRRhCSY66taBciUXGWXTFcGrPZCW/CeB3xnPvERz2IizUFYVdJ4i57sBRxoMEmvhhtUxz4MmJMh8ianY8Y9qWZcFUdv8YZPSSx+Wp0ohKMBTp5Nj1IOJUO8vza6z5a0fUgoJ1VXSQH95CHZeNv0jYH4R1FsqzGR2jWPS6e5dSliB+ZsgGXX2ZpuFkkrBpnwZGdcshGFqM9yvBN2t4aVdDKWDPNf9/aBFT6gQGYvA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR11MB7573.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(346002)(39860400002)(136003)(376002)(366004)(230922051799003)(186009)(64100799003)(451199024)(1800799012)(478600001)(82960400001)(86362001)(31696002)(41300700001)(38100700002)(6486002)(8936002)(8676002)(4326008)(66946007)(66556008)(2616005)(66476007)(316002)(54906003)(36756003)(7416002)(2906002)(26005)(5660300002)(6506007)(44832011)(53546011)(6512007)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QWxxUVl1K09rVzh3RXBySkNucjhtM3pmQVRHTUYzaFhUZHBxTlZVVHo4VjRV?= =?utf-8?B?Q1cwVjRXV3pLVUlKOXd1dmRkb1EvMFVSTm5QS25pL2hsVUIvTmN6TVBQOGVR?= =?utf-8?B?czdhUVlVeC9zN2t6dUkwZGtBeFhTeVljMjR1M3I2VG9EZXMzMG5zTlliNHo1?= =?utf-8?B?TWFVOWtPcUJIMklLMFNBL0JERFJNU25tUFBhb1QyMDFUU3lXQ0pMR2Qybk9W?= =?utf-8?B?aERUTVB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ZsOWV0M2Nh?= =?utf-8?B?SHB4SDVKa0R6REFGU3M5S3BwMnJnbjhOT05UZXMzNit1YnhEZHJYSWx6eVY1?= =?utf-8?B?UzVUaUxvc2RjWVBaUkdoYVZUNllId1EzbUpmRHFZbCtVcmt5STFqeXk2Q1Bt?= =?utf-8?B?UWc9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 4e0b5cc8-0fee-40ac-5dc8-08dbfdf396c8 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Dec 2023 04:58:05.2900 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XMhxaqPHxv52Q1kGdNIoCBXTSYbplsV0T6h6FcIE3B2GfRleXed/ngCBvFLG1oWGq6vJtNDI+ZNRX+fwJHEbk/YLJHz1eabEGxuoog72A0U= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB6147 X-OriginatorOrg: intel.com Hi James, On 12/15/2023 9:43 AM, James Morse wrote: > x86's RMID are independent of the CLOSID. An RMID can be allocated, > used and freed without considering the CLOSID. > > MPAM's equivalent feature is PMG, which is not an independent number, > it extends the CLOSID/PARTID space. For MPAM, only PMG-bits worth of > 'RMID' can be allocated for a single CLOSID. > i.e. if there is 1 bit of PMG space, then each CLOSID can have two > monitor groups. > > To allow resctrl to disambiguate RMID values for different CLOSID, > everything in resctrl that keeps an RMID value needs to know the CLOSID > too. This will always be ignored on x86. > > Signed-off-by: James Morse > Tested-by: Shaopeng Tan > Tested-by: Peter Newman > Tested-by: Babu Moger > Reviewed-by: Shaopeng Tan > Reviewed-by: Xin Hao > --- Reviewed-by: Reinette Chatre Reinette