From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (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 6F3655695 for ; Tue, 6 Jan 2026 12:41:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767703266; cv=none; b=KmfKO/Gp2qvUnmNNAKnt1HHWyEy2Fp/YFqNtDe8Hh6ESZnHglB8RnjShggcv7I4oEYJCf2lPuSnpLkL6rfvZsR6H3SvJdZyR8nXVwaeJbCV9Ii53LzPPt0VNLlfZW6pHK7XOrhvZXv4XWGGQ7OYP+809EG5G3HlfK7tO+nt+dwY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767703266; c=relaxed/simple; bh=St6eHYDMzcArnRW9TLtuYEzxhVnK8h95Nv9t2HSaBIk=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=oXfZ92rmZ0hTbj5Me4i6hwmpBJJaClvZBLmEaWQ2i96clJYkAPop3qYHWCdUj+NwGPGgSIF9ZbOe5vNvMNWR4vBJwKygWaYkYMwYle90jSCNu6Odb31RNulKgmmA8o1KfQMNPyQotRifSrMjQo+76DwdX0KU7uudIV9gA5MbNnc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.224.83]) by frasgout.his.huawei.com (SkyGuard) with ESMTPS id 4dlrPM6DFRzHnH53; Tue, 6 Jan 2026 20:40:55 +0800 (CST) Received: from dubpeml100005.china.huawei.com (unknown [7.214.146.113]) by mail.maildlp.com (Postfix) with ESMTPS id 0C97C40086; Tue, 6 Jan 2026 20:41:00 +0800 (CST) Received: from localhost (10.48.155.65) by dubpeml100005.china.huawei.com (7.214.146.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.36; Tue, 6 Jan 2026 12:40:58 +0000 Date: Tue, 6 Jan 2026 12:40:56 +0000 From: Jonathan Cameron To: Ben Horgan CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v2 27/45] arm_mpam: resctrl: Add support for csu counters Message-ID: <20260106124056.00002d3d@huawei.com> In-Reply-To: <20251219181147.3404071-28-ben.horgan@arm.com> References: <20251219181147.3404071-1-ben.horgan@arm.com> <20251219181147.3404071-28-ben.horgan@arm.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml500009.china.huawei.com (7.191.174.84) To dubpeml100005.china.huawei.com (7.214.146.113) On Fri, 19 Dec 2025 18:11:29 +0000 Ben Horgan wrote: > From: James Morse > > resctrl exposes a counter via a file named llc_occupancy. This isn't really > a counter as its value goes up and down, this is a snapshot of the cache > storage usage monitor. > > Add some picking code to find a cache as close as possible to the L3 that > supports the CSU monitor. > > If there is an L3, but it doesn't have any controls, force the L3 resource > to exist. The existing topology_matches_l3() and > mpam_resctrl_domain_hdr_init() code will ensure this looks like the L3, > even if the class belongs to a later cache. > > Signed-off-by: James Morse > Signed-off-by: Ben Horgan Reviewed-by: Jonathan Cameron