Received: by 10.192.165.148 with SMTP id m20csp1167603imm; Wed, 2 May 2018 15:36:30 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpOoImdowtjVbBJwtNMU5szfv7mgyc/pbZc/Oh4p4q5HezI1piqc2P7F5ApeDycnbkPQgQV X-Received: by 2002:a63:43c6:: with SMTP id q189-v6mr17999734pga.123.1525300590133; Wed, 02 May 2018 15:36:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525300590; cv=none; d=google.com; s=arc-20160816; b=IR1DBuE2b27zt+a3BJmdcVba1qgp2zFMOVhAfZczu2lW325OAr6+935m2gaQBz7QdG yXbD2lxk236E/qfAK4gDendesRCB9oEzSroer3g16fJg4ZeOFhaZqN0BMOXTmV0NRLUp QIqoYipd7yJxOJrADpg3zD38kjj/PCEoXjp8QjNTrAJ1LZwrKjti0UgeBOzjrZA1eQjx 9sR7bDyI8DoxXguWUgz5iXQutaoH9OFkoPwlBi2hXCjRRoARaaNVo0B3DBq/8tQCfkoT N9Oczgdf76QSNZviSbosGd82a+3hPav8CgCcMq44Yg6Thj8Kvk4tKqtpS7IIX11fqnot lttQ== 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:from:references:cc:to:subject:arc-authentication-results; bh=AtgCAh0KubtLacvY9rIWyCDN/lYgwD6q/9pJSeBJFhM=; b=IUrOf1t67fXzKnZfMHAldmHFE1ypgUz+s9KU6kflobLNS8RWClbWlwxUA9E9FhP32H oFSaZ1IpdB5ZSReDEH9v8KWBc1K+WuvbbYi0luspuwoQbVBlIxVIP0AgVt/Qx2bQi8Cl vgLzqrIGpTZL9vlDmAL9z9hHRjNWE0yUie7qekbzXcASErreFy3jXEfmX/51Yy5Dg5fm EUP+iiFZLCJZ/58Cdsvd4FbeD9Zm38Cafz/PkMuA1mm5nADgbQIJ7E3ZWxDfsqZ8zDuO XhIAFJPjEA/U53BxlcuyrxPvOo80158SFjO9x4hwo5q0gIcDqsu4F+MRXEs1zVJpR0T1 r7jA== 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 i4-v6si10280683pgr.362.2018.05.02.15.36.15; Wed, 02 May 2018 15:36:30 -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 S1751618AbeEBWfy (ORCPT + 99 others); Wed, 2 May 2018 18:35:54 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:35680 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751354AbeEBWfw (ORCPT ); Wed, 2 May 2018 18:35:52 -0400 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 2F5681435; Wed, 2 May 2018 15:35:52 -0700 (PDT) Received: from [192.168.100.244] (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AC4C03F587; Wed, 2 May 2018 15:35:50 -0700 (PDT) Subject: Re: [PATCH v8 11/13] arm64: topology: enable ACPI/PPTT based CPU topology To: "Rafael J. Wysocki" , Sudeep Holla Cc: ACPI Devel Maling List , linux-arm-kernel@lists.infradead.org, Lorenzo Pieralisi , Hanjun Guo , "Rafael J. Wysocki" , 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 References: <20180425233121.13270-1-jeremy.linton@arm.com> <20180425233121.13270-12-jeremy.linton@arm.com> From: Jeremy Linton Message-ID: <5078f4ac-74e7-aad3-1e0d-4de5da31d3c4@arm.com> Date: Wed, 2 May 2018 17:35:50 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed 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 Hi, On 05/02/2018 03:24 AM, Rafael J. Wysocki wrote: > On Tue, May 1, 2018 at 4:46 PM, Sudeep Holla wrote: >> >> >> On 26/04/18 00:31, Jeremy Linton wrote: >>> Propagate the topology information from the PPTT tree to the >>> cpu_topology array. We can get the thread id and core_id by assuming >>> certain levels of the PPTT tree correspond to those concepts. >>> The package_id is flagged in the tree and can be found by calling >>> find_acpi_cpu_topology_package() which terminates >>> its search when it finds an ACPI node flagged as the physical >>> package. If the tree doesn't contain enough levels to represent >>> all of the requested levels then the root node will be returned >>> for all subsequent levels. >>> >> >> Acked-by: Sudeep Holla >> >> [..] >> >>> @@ -304,6 +345,8 @@ void __init init_cpu_topology(void) >>> * Discard anything that was parsed if we hit an error so we >>> * don't use partial information. >>> */ >>> - if (of_have_populated_dt() && parse_dt_topology()) >>> + if ((!acpi_disabled) && parse_acpi_topology()) >> >> [nit] not sure if extra () is need above, > > No, it isn't. > >> but I am fine either way. > > The redundant parens need to go away, really. > Yah, I missed this one, is there a linter everyone is using that finds these? Thanks,