From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 28435ECD983 for ; Thu, 5 Feb 2026 16:58:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:CC:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=JGQJHpWpvKdPRVfoNpw03k35feDqxB4zZmj3BBi3MB4=; b=hiJCQ2+zCcvcZPC8OwPV4tqoBI gGmncV9fydOTbVoN+MHHf+wLID4C6i+lUkSHiAd8mU5PLOvlU2UG9tgmrievZQb24XbxXiha9A8Ae Xw3jctutFwKgl8Px5OBX+YYBOxzT1BYt9aa4yEMOvz5c2y9Bs6EpoC1XKZ7aZ344JYfBxlOBSyjrD tcWM5TSBMBmFfw09Ll6lI//Gv3urzBAKBuQlBMv4z48UmZyjtyKetCno469xfc24ZWkdODpFva2Wr Nc7NsfDkAMduUPAvjhQFttSixGfFXZw1aMR6HYTPemwwlt0rPmx5xZpyT+gpcYrNBDOn1KDP63s5I k0ydP58w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vo2gn-0000000AGDk-0gZy; Thu, 05 Feb 2026 16:58:45 +0000 Received: from frasgout.his.huawei.com ([185.176.79.56]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vo2gl-0000000AGDM-2CMB for linux-arm-kernel@lists.infradead.org; Thu, 05 Feb 2026 16:58:44 +0000 Received: from mail.maildlp.com (unknown [172.18.224.83]) by frasgout.his.huawei.com (SkyGuard) with ESMTPS id 4f6Ngx3F7DzJ467X; Fri, 6 Feb 2026 00:57:49 +0800 (CST) Received: from dubpeml500005.china.huawei.com (unknown [7.214.145.207]) by mail.maildlp.com (Postfix) with ESMTPS id 61C0540569; Fri, 6 Feb 2026 00:58:40 +0800 (CST) Received: from localhost (10.48.151.164) by dubpeml500005.china.huawei.com (7.214.145.207) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 5 Feb 2026 16:58:38 +0000 Date: Thu, 5 Feb 2026 16:58:37 +0000 From: Jonathan Cameron To: Ben Horgan CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v4 28/41] arm_mpam: resctrl: Pick classes for use as mbm counters Message-ID: <20260205165837.00007a46@huawei.com> In-Reply-To: <20260203214342.584712-29-ben.horgan@arm.com> References: <20260203214342.584712-1-ben.horgan@arm.com> <20260203214342.584712-29-ben.horgan@arm.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.48.151.164] X-ClientProxiedBy: lhrpeml100012.china.huawei.com (7.191.174.184) To dubpeml500005.china.huawei.com (7.214.145.207) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260205_085843_717003_66B4E7D7 X-CRM114-Status: GOOD ( 11.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 3 Feb 2026 21:43:29 +0000 Ben Horgan wrote: > From: James Morse > > resctrl has two types of counters, NUMA-local and global. MPAM can only > count global either using MSC at the L3 cache or in the memory controllers. > When global and local equate to the same thing continue just to call it > global. > > Because the class or component backing the event may not be 'the L3', it is > necessary for mpam_resctrl_get_domain_from_cpu() to search the monitor > domains too. This matters the most for 'monitor only' systems, where 'the > L3' control domains may be empty, and the ctrl_comp pointer NULL. > > resctrl expects there to be enough monitors for every possible control and > monitor group to have one. Such a system gets called 'free running' as the > monitors can be programmed once and left running. Any other platform will > need to emulate ABMC. > > Signed-off-by: James Morse > Signed-off-by: Ben Horgan Seems fine to me. Reviewed-by: Jonathan Cameron