From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77F3E223710; Wed, 27 Aug 2025 17:11:45 +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=1756314707; cv=none; b=NjRH+SmiRPRP9GK2wtdX5NJCvuXrysyqc3oaR8UILBpJKN5WXugOjZVv3uY0zSItfxCiWcawqA9JwVnoRtdOQ4FU/rrKAC5oGj4qoEfi4O7vIcnJG/xSWe149pgcaGydJsnfQ/a330gs1UgYlru2wKbhGJLO3QGcNwzDOGQCxPg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756314707; c=relaxed/simple; bh=Zv4tlqmeyNrFaUpCqrhKxtlapI7AXU2/uUSIsRpFUeU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=CFVLyZLQOs6AGCZN/k84UaMCTrfVYnWpmL+jTt+wfCGmj52V3YYRDjjhcy0qfUwCCZ/lU9oSRnvwFPVKWbhF7ypIUbWOjqgXE+0TIx7M9VMJ+lPm5NaWnz1RRxCN/ICoPQCiClOeEzLz7EibVGxVK1rZm8lQ0af8HW80d+QQbHQ= 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 5932C2720; Wed, 27 Aug 2025 10:11:36 -0700 (PDT) Received: from [10.1.196.42] (eglon.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5161E3F694; Wed, 27 Aug 2025 10:11:38 -0700 (PDT) Message-ID: <9fde0d3c-52e7-4545-a273-4b37b865997c@arm.com> Date: Wed, 27 Aug 2025 18:11:38 +0100 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 02/33] drivers: base: cacheinfo: Add helper to find the cache size from cpu+level To: Krzysztof Kozlowski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, devicetree@vger.kernel.org Cc: 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, David Hildenbrand , Rex Nie , Dave Martin , Koba Ko , Shanker Donthineni , fenghuay@nvidia.com, baisheng.gao@unisoc.com, Jonathan Cameron , Rob Herring , Rohit Mathew , Rafael Wysocki , Len Brown , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , Greg Kroah-Hartman , Danilo Krummrich References: <20250822153048.2287-1-james.morse@arm.com> <20250822153048.2287-3-james.morse@arm.com> <172e9dd6-3b25-4fdf-943e-2bd559117519@kernel.org> Content-Language: en-GB From: James Morse In-Reply-To: <172e9dd6-3b25-4fdf-943e-2bd559117519@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Krzysztof, On 24/08/2025 18:25, Krzysztof Kozlowski wrote: > On 22/08/2025 17:29, James Morse wrote: >> MPAM needs to know the size of a cache associated with a particular CPU. >> The DT/ACPI agnostic way of doing this is to ask cacheinfo. >> >> Add a helper to do this. >> --- >> Changes since v1: > > You marked this as v1. Oops - that should say RFC. I'll fix all those. >> * Converted to kdoc. >> * Simplified helper to use get_cpu_cacheinfo_level(). > Please use consistent subject prefixes. Look at previous patch subject > prefix. Presumably the previous patch in my series - this is a side effect of multiple branches that were written at different times getting combined! I'll change it to 'cacheinfo:' as that seems to be the most popular recently. Thanks, James