Received: by 10.192.165.148 with SMTP id m20csp3500901imm; Mon, 30 Apr 2018 01:00:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo/5El4KbGEDByiNN8VEk+B6BeJNqcNGDG4qHcck3uYJJNZTnn/lI4I531xuXWHypRApUKO X-Received: by 10.98.82.131 with SMTP id g125mr11080784pfb.198.1525075214206; Mon, 30 Apr 2018 01:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525075214; cv=none; d=google.com; s=arc-20160816; b=QkgHUeoaCvBsU5p6Z5ynFER6Xp2+LmkpWlqgD4IOP4BEmRpGdM/h86grYt8mwTJl/7 L73GW7cneS3KThhFtrU5i86bce5Xdj2jIPqv95x6W2f6/JECykOELLHRQpFxC4siwlkr onv5Jce+lrvYYmGCKk71nI7F2LYaL+RyiBj4YO/rEOhumZRXfqIsYUSf6EBot/mA650Z IxhbzgMd9hPhtlvzY1uTHwS0uGJxxvLXHUppwDEcgse8aLWXA6e9JTa6diO3ExiFIjDs ACc8SJ/7wGwMPa8lcCf3j0E2c4pLhipBmv8FyGUzka8gEfs3SXEhugFFTRorcwL2EL7i +HkA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=qKmWyOYL+ySjovNqB0ISMr6js+7/MbUtmEJDtY+o28g=; b=IXENjmKDHYMYbwPbvSaVYu7q7HUUKyQbInnQYOelbaHbwWX/qi2bQehEACD4J7aHSY 7JMASYmRMdmmR/WsBKAD+NGQh1U1UTrbeu1jujbR8m1hfHCal7BbPMSYPGEIs/1rnxcQ MLrHC28PJl+rFFjvULekWNvlhiosOyAnHPwYsztAg2ZPwGcvfP9C+qS/h8TdwQkDWynQ TXmba76DFcI2ugYnDpCd1+uoyWuEq5v5KJLZXnWzt0tWHBXBKO1JyjSvW4RFBrnIqqQV w83xLnZVwn0r8WFEX6pW0SiGITJ9giskbT8DHdTXe5Yi1MSwAq7/tMEJwJ7sZVvLZMBA rdMA== 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 97-v6si7145027plm.548.2018.04.30.01.00.00; Mon, 30 Apr 2018 01:00:14 -0700 (PDT) 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 S1752521AbeD3H7p (ORCPT + 99 others); Mon, 30 Apr 2018 03:59:45 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:43094 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752275AbeD3H7n (ORCPT ); Mon, 30 Apr 2018 03:59:43 -0400 Received: from 79.184.254.189.ipv4.supernova.orange.pl (79.184.254.189) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83) id fa1316a8bc6ad4c2; Mon, 30 Apr 2018 09:59:41 +0200 From: "Rafael J. Wysocki" To: Jeremy Linton Cc: "Rafael J. Wysocki" , ACPI Devel Maling List , Sudeep Holla , linux-arm-kernel@lists.infradead.org, Lorenzo Pieralisi , Hanjun Guo , Will Deacon , Catalin Marinas , Greg Kroah-Hartman , Mark Rutland , Linux Kernel Mailing List , linux-riscv@lists.infradead.org, wangxiongfeng2@huawei.com, vkilari@codeaurora.org, Al Stone , Dietmar Eggemann , Morten Rasmussen , palmer@sifive.com, Len Brown , John Garry , austinwc@codeaurora.org, tnowicki@caviumnetworks.com, jhugo@qti.qualcomm.com, timur@qti.qualcomm.com, Ard Biesheuvel Subject: Re: [PATCH v8 05/13] ACPI/PPTT: Add Processor Properties Topology Table parsing Date: Mon, 30 Apr 2018 09:59:27 +0200 Message-ID: <14124257.1v74WDqhJi@aspire.rjw.lan> In-Reply-To: References: <20180425233121.13270-1-jeremy.linton@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday, April 27, 2018 6:20:44 PM CEST Jeremy Linton wrote: > Hi, > > Thanks for taking a look at this. > > On 04/27/2018 06:02 AM, Rafael J. Wysocki wrote: > > On Thu, Apr 26, 2018 at 1:31 AM, 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, within a given > >> package, etc. > >> > >> Signed-off-by: Jeremy Linton > >> Acked-by: Sudeep Holla > >> --- > >> drivers/acpi/pptt.c | 518 ++++++++++++++++++++++++++++++++++++++++++++++++++++ > >> 1 file changed, 518 insertions(+) > >> create mode 100644 drivers/acpi/pptt.c > >> > >> diff --git a/drivers/acpi/pptt.c b/drivers/acpi/pptt.c > >> new file mode 100644 > >> index 000000000000..cced71ef851a > >> --- /dev/null > >> +++ b/drivers/acpi/pptt.c > >> @@ -0,0 +1,518 @@ > >> +// SPDX-License-Identifier: GPL-2.0 > >> +/* > >> + * pptt.c - parsing of Processor Properties Topology Table > >> + * > >> + * Copyright (C) 2018, ARM > >> + * > >> + * This file implements parsing of Processor Properties Topology Table (PPTT) > >> + * which is optionally used to describe the processor and cache topology. > >> + * Due to the relative pointers used throughout the table, this doesn't > >> + * leverage the existing subtable parsing in the kernel. > >> + * > >> + * The PPTT structure is an inverted tree, with each node potentially > >> + * holding one or two inverted tree data structures describing > >> + * the caches available at that level. Each cache structure optionally > >> + * contains properties describing the cache at a given level which can be > >> + * used to override hardware probed values. > >> + */ > >> +#define pr_fmt(fmt) "ACPI PPTT: " fmt > >> + > >> +#include > >> +#include > >> +#include > >> + > >> +/** > >> + * fetch_pptt_subtable() - Find/Verify that the PPTT ref is a valid subtable > > > > The parens above are at least redundant (if not harmful). Everywhere > > else in a similar context too. > > The kerneldoc ones? I guess i'm confused the kernel doc example in > doc-guide/kernel-doc has > > * function_name() - Brief description of function. Well, OK, the parens not harmful, then, but it works without them.