Received: by 10.223.185.116 with SMTP id b49csp4093235wrg; Tue, 6 Mar 2018 09:40:37 -0800 (PST) X-Google-Smtp-Source: AG47ELtL6e9Z61RF+ALjqBSCNiwS/dd2E12C3DTid5buCpxseiPIOOCzlhQsgwTlCOSgDN01MtdX X-Received: by 10.98.19.21 with SMTP id b21mr19567847pfj.236.1520358037445; Tue, 06 Mar 2018 09:40:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520358037; cv=none; d=google.com; s=arc-20160816; b=TW/4j3oOGW4KDm0YeXghe3S5gNNz8iJcGkxDiKjWQtwzijyCc5q8dAOukjLC/PCEUF Xa6dQycXHxzvKvmRibDIRL9EJszSDlP1R6HWr/RzVKox5pxLA4EFJFoTIGSZm0W61bBl P4Kjibk0GDIBFLp6FpP2hI5+fEeft8Dx5+2FEvS+iINnjx6wku7T1rng03g0uJfbZgH8 NjrilhCHMBsy/7BamvNg0fpF0hNpD67jE79mGknNU9M9i9SAcQku2RiLevoLeejhY0CK MlU/CS3HXELP+DspjcRuSDHYlGWWrS5F0L8FgNNKRugJ5aoAkR9Cvs+haD04Jq+3vhL7 s67w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:to:subject:cc :arc-authentication-results; bh=XscGi4x+LNpVcKosCc31zEvnjA1lnq1QVcOwNNgjJao=; b=rg9vLm9R3w7alBNByvNGeXChXjNOch9d7Ogi3KrUL0RZLlh1WxRkz0a2kXLKf5GLx3 w7AoeD3OyIjP40tB3AxUJ1HXh59UD/1N4aEAi2NettK6C4XTIqrkc8eFJRqXJa8tthxu f/pVd/HXw+VlKzbuuPeeXCKD0Ow1Q/u1iaj0/36fgNQ2s2EYEe0b9PwXACNjMHbn07SX eVbv0QoJnXE8pCwqKh8gW6VcA2tXNfqVznZn8OREfW63paW+pytUEeV68J9mbkJqmlBc eEnDp2cN7l79gjdPBZAO0BJqfzd+U2dsMjCSN9qK99r+DqIHaVHDcMIVyiCr1luto1u0 LCYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61-v6si11476023plr.136.2018.03.06.09.40.22; Tue, 06 Mar 2018 09:40:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753852AbeCFRjc (ORCPT + 99 others); Tue, 6 Mar 2018 12:39:32 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:42086 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750782AbeCFRja (ORCPT ); Tue, 6 Mar 2018 12:39:30 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6544414; Tue, 6 Mar 2018 09:39:30 -0800 (PST) Received: from [10.1.210.28] (e107155-lin.cambridge.arm.com [10.1.210.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 699E63F24A; Tue, 6 Mar 2018 09:39:26 -0800 (PST) Cc: Sudeep Holla , linux-arm-kernel@lists.infradead.org, lorenzo.pieralisi@arm.com, hanjun.guo@linaro.org, rjw@rjwysocki.net, will.deacon@arm.com, catalin.marinas@arm.com, gregkh@linuxfoundation.org, mark.rutland@arm.com, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, wangxiongfeng2@huawei.com, vkilari@codeaurora.org, ahs3@redhat.com, dietmar.eggemann@arm.com, morten.rasmussen@arm.com, palmer@sifive.com, lenb@kernel.org, john.garry@huawei.com, austinwc@codeaurora.org, tnowicki@caviumnetworks.com Subject: Re: [PATCH v7 05/13] ACPI/PPTT: Add Processor Properties Topology Table parsing To: Jeremy Linton , linux-acpi@vger.kernel.org References: <20180228220619.6992-1-jeremy.linton@arm.com> <20180228220619.6992-6-jeremy.linton@arm.com> From: Sudeep Holla Organization: ARM Message-ID: <56b96eaa-4c9d-7661-1ed0-df34c9c1e636@arm.com> Date: Tue, 6 Mar 2018 17:39:24 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180228220619.6992-6-jeremy.linton@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/02/18 22:06, Jeremy Linton wrote: > ACPI 6.2 adds a new table, which describes how processing units > are related to each other in tree like fashion. Caches are > also sprinkled throughout the tree and describe the properties > of the caches in relation to other caches and processing units. > > Add the code to parse the cache hierarchy and report the total > number of levels of cache for a given core using > acpi_find_last_cache_level() as well as fill out the individual > cores cache information with cache_setup_acpi() once the > cpu_cacheinfo structure has been populated by the arch specific > code. > > An additional patch later in the set adds the ability to report > peers in the topology using find_acpi_cpu_topology() > to report a unique ID for each processing unit at a given level > in the tree. These unique id's can then be used to match related > processing units which exist as threads, COD (clusters > on die), within a given package, etc. > > The more I look at the ACPI table parsing code, I get more questions every time :). So I just skimmed through it this time. Not sure why ACPI_PTR_* is not used elsewhere in drivers/acpi/tables.c Anyways for cacheinfo part of this file: Acked-by: Sudeep Holla -- Regards, Sudeep