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 6D74845C14 for ; Tue, 5 Aug 2025 17:06:43 +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=1754413606; cv=none; b=WW6jVxXLt/ZuACxxrF+iPf1tnFJMa8oRo2weE+NPkF3fHjsOP3RqPgWvHUT9AEZO/oErXa7jqPt8nKLleE51wPiZR83kT9y/YZFjKlViLCfrZwRrdQCejEAGa1A+MvxEQf+2qors6RzplddTvIlI5IbLslukw/ixXiieE/dAH9g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754413606; c=relaxed/simple; bh=b5kmbRAuNZg97lrzvCdhz4qukIVom32WBnnKidnOwhY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tWqHk3tqRyrG79F5VkeHDceLO8W7IfZHyeXn68zFYRW31wFOGKVRAl1ZGZqeU5EXISmyDIRo3154BT1WaKVE86aMe99AawBVTGs0taIYdb0xKsqZrzdQSq+TESmdPY1jeNEz38AkT35i6+eoOmr8Xb2GKM3tAqwmwVuNa08r+p0= 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 59C84150C; Tue, 5 Aug 2025 10:06:34 -0700 (PDT) Received: from [10.1.197.43] (eglon.cambridge.arm.com [10.1.197.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B337F3F673; Tue, 5 Aug 2025 10:06:38 -0700 (PDT) Message-ID: <46248371-9a86-4653-8a06-4e1778808daa@arm.com> Date: Tue, 5 Aug 2025 18:06:37 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 07/36] ACPI / PPTT: Find cache level by cache-id To: Ben Horgan , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Rob Herring , Rohit Mathew , Shanker Donthineni , Zeng Heng , Lecopzer Chen , Carl Worth , shameerali.kolothum.thodi@huawei.com, D Scott Phillips OS , 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 , Sudeep Holla References: <20250711183648.30766-1-james.morse@arm.com> <20250711183648.30766-8-james.morse@arm.com> Content-Language: en-GB From: James Morse In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Ben, On 14/07/2025 12:42, Ben Horgan wrote: > On 7/11/25 19:36, James Morse wrote: >> The MPAM table identifies caches by id. The MPAM driver also wants to know >> the cache level to determine if the platform is of the shape that can be >> managed via resctrl. Cacheinfo has this information, but only for CPUs that >> are online. >> >> Waiting for all CPUs to come online is a problem for platforms where >> CPUs are brought online late by user-space. >> >> Add a helper that walks every possible cache, until it finds the one >> identified by cache-id, then return the level. >> >> acpi_count_levels() expects its levels parameter to be initialised to >> zero as it passes it to acpi_find_cache_level() as starting_level. >> The existing callers do this. Document it. > This paragraph is stale. You dealt with this in the previous commit. Fixed, thanks. James