Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp47274rdb; Mon, 22 Jan 2024 11:26:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IFBIAQ6KHgfOz1CRdDNzqSn+p8yo+ETh7HutGJhtBsUBDEIwt7h+X93QDfhnwPeF2vZ5235 X-Received: by 2002:a17:903:258c:b0:1d7:601f:351e with SMTP id jb12-20020a170903258c00b001d7601f351emr951212plb.62.1705951575240; Mon, 22 Jan 2024 11:26:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705951575; cv=pass; d=google.com; s=arc-20160816; b=mCrbaZKKZx83zy0Lh8K2FvpVDOLNEUXk4deaw1hNDLpYXwlon2m00CTrhajejqgBqU Rvr0yc1Lc8zNT6yj2ks9Zvl9fCS83ktEWTsYVnagYZmIguSVpv/0tPelignB8D/9Ukf1 q2xEQPnctRcBZZDYweoHUpWU9IDtRcF1WzLfXpaBwrPhcUVBKlhMzbiEhUQabfNmC/o6 bv4owUFNZwIMQv2QeEeNI1tRtfwVAg0zrpjUgvA16d2aiAhHVbNSGtX/7+6b3iGBLUBM L318dSlB0DSXRFWo1vojuPGap7CIlKNKmtMZGlvs5o8SCwo5wtOL6BHKV7GUPnkU/DK1 amLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=cUhSKqEFXZI/+AFT/a7hhPIPvpsT+563RFomFDmHQ1A=; fh=V3EXrfhtPXQ8VZs+995Yo8T+zOpBnshrD4ANVkhZrjM=; b=FVl3fBjPaV1TaUk7w7FPCq9m6yZmAZgMeg0vroD/sb9E/Y0ivcYG22Q7RhY1FoExtP XzuAnjjmbrLZLYCXL++2dk7KD8oL9J1e4EF7feCQjSLkxJ4IhotOqOqWyiDubhy0HOR8 IHl6g0yncF6lzy6miz28eMuDYFigrvrsLhI7X3Udln7h4NwVi2L8gLrMtOAQlpXAYhn8 MVNOHLJCpWWmQ1rGLjVDpGlefYr6yymawPLVJsqSyF3tMsSTqIWW4U8F7E8sQ63aWnbM gQ9v83ImJ15qmAy0B+C8m70rZUHgVTuGe7SUNMNABBqCO3oTMCBWTrLtqeq4EqqBusAO HTtw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-33893-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33893-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a19-20020a170902b59300b001d72930cd02si5181309pls.377.2024.01.22.11.26.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 11:26:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33893-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-33893-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33893-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 9BA7FB2CFEA for ; Mon, 22 Jan 2024 18:31:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 798935C919; Mon, 22 Jan 2024 18:05:33 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FBA355C07 for ; Mon, 22 Jan 2024 18:05:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705946733; cv=none; b=sDfVKaZaXmRNnuImbmjmsUGZjLYIcP37GNFc/QbLTNx9z3rNmgtqqjyhnighCW1yByebXg2+heUXzaYIxjTglMJcSTkA/UdIL9sAly4nuXC+GIW/PiKfieBzzIBKCg1ppgvXTDrGLDG9JqC2VmkYHqDwc1xVzTpmTox00l3Dyic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705946733; c=relaxed/simple; bh=j6U/22XQiL0fB5WoQZtHBz16KttxKsPw+wy5+wRs478=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oJeqho1TajVLuXnctjreeL6YuMDYYUQ3i7Q37prw+FhiPtHJPeyDsmI/PB1/MDHjXWPnSubVXtMZnIchPOsRrnhQ76b1U7yJR41miKgYTHeq9srPlH7UMM0sIsMm5uk14gEhd5KrsYOOQgPIzu8igpG59m03AH+zXO8y/M6Hdh4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 73A37FEC; Mon, 22 Jan 2024 10:06:16 -0800 (PST) Received: from [10.1.197.60] (eglon.cambridge.arm.com [10.1.197.60]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D8FA73F5A1; Mon, 22 Jan 2024 10:05:27 -0800 (PST) Message-ID: <802e84b7-ff12-19df-cb72-6cf307c7d67a@arm.com> Date: Mon, 22 Jan 2024 18:05:26 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v8 05/24] x86/resctrl: Track the closid with the rmid Content-Language: en-GB To: Reinette Chatre , x86@kernel.org, linux-kernel@vger.kernel.org Cc: Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , shameerali.kolothum.thodi@huawei.com, D Scott Phillips OS , carl@os.amperecomputing.com, lcherian@marvell.com, bobo.shaobowang@huawei.com, tan.shaopeng@fujitsu.com, baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao , peternewman@google.com, dfustini@baylibre.com, amitsinght@marvell.com References: <20231215174343.13872-1-james.morse@arm.com> <20231215174343.13872-6-james.morse@arm.com> From: James Morse In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Reinette, On 16/12/2023 04:58, Reinette Chatre wrote: > 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. > > Reviewed-by: Reinette Chatre Thanks! James