Received: by 10.192.165.148 with SMTP id m20csp1579940imm; Thu, 3 May 2018 01:42:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoh1Rp2kv39PVHLVNVhCmrDxWo3SYy6+yumeGbIvZcAURBqOld0o/pyUJIHIC60V5rHR8I7 X-Received: by 10.98.64.130 with SMTP id f2mr22281078pfd.83.1525336960306; Thu, 03 May 2018 01:42:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525336960; cv=none; d=google.com; s=arc-20160816; b=WR0/zP2OCTPHGWTDWjhZ6qgdBnMukUrS9pMiKalDC2tDENNCs4Xlz8aZV3LFEJxQM4 wt6AVzKaGCD2RS0XKV+qXFJPXBgqhPpeJB38ilob7F+n+muHjhWNYA51yZzJR3ZaiXef KPoJQg80vfWh2pqvixOUFqTQ2FYF0aHMRi6yIUDotJgk7qj1aZF/tP0tRtqNR5Y2+lDd XMdmHRoru0JZHm2hrCCrUi0XQLVfoon4Pji+758pxBleqS3QoLHPTx89zgtws6BMvnHc AxrahYt1pzQbY3RvvK+bPZEDCjtuPG22nJST72adERK4WE5CYd1FWBBHZl5YtL1Al21G ufvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=a910oCrvk/1P+yfZ1kqOsXUrxfQE+hXR7cfc825rAyo=; b=AYztUm6jbohtQ4AEL/ltewcTuRic7axEmsTMD81J1NPZxy+I0IoZJWkqf34IENZcAk Q9Zof02Eg0JV4qX3g7h5BgwHB2HmRNHEX7lifIjc85oMF746enx63sYngW+r9nuMXyLL gvHu1pWJyfdTRtEK2hi51IPYf4EtqlciZA7gN1plMSjKEMmibOeDRFKRN6e2LMRL/nSI 5W71l0ER7IoQzy9O1M68HHkWCyWPey9pA71StKflvYL82QOSPLt3bJVpLj+D/QcFXJwe G9NCX+2JbAl2sw0wAsT3GNsg7SdSC5fnYpCvay1dZZFvOMU3MlVzPiVJd/aIKZPF56GN ZFiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ncnDeoaH; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r74si13338382pfe.168.2018.05.03.01.42.25; Thu, 03 May 2018 01:42:40 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ncnDeoaH; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751411AbeECIls (ORCPT + 99 others); Thu, 3 May 2018 04:41:48 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:37356 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751132AbeECIlo (ORCPT ); Thu, 3 May 2018 04:41:44 -0400 Received: by mail-ot0-f196.google.com with SMTP id 77-v6so19724610otd.4; Thu, 03 May 2018 01:41:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=a910oCrvk/1P+yfZ1kqOsXUrxfQE+hXR7cfc825rAyo=; b=ncnDeoaHsvugrKllX+778v1/IrKZUCrsozfcS/vdgaam9JkyTStkykkxAArx7Hnm7j 1GBLf8BGWQp2MkQIhcZlZXt+hun0yyEQmJtYa7P1AhWO+69yxsmYV5sP3ADhgCkjwEZl xpDJAl45qTH3vkTtbZaBFKheM8Xuk+SAbPABR4Enx3OjQQh8C5xlS1NfAS5o867AagPH 8BYVeihpoK2I0HkhzZ+NDQcvH7pg7Tb1/mDgyLFpX8RFXRhZ+Agy/ks6IUfIhYU3ot9l leyb1IB3tUKdWC9CmYhUsr5Yjb45v1RKUFkvvu5PTON3/B5u0SuRykCKilEbMz608R1k xHsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=a910oCrvk/1P+yfZ1kqOsXUrxfQE+hXR7cfc825rAyo=; b=bLpli6pCLdRoJeV5gu8Zbyt0LRvbEsc7LjdiuhqLvbCClVK8HWG2RtumLE2290P7kZ +Jk62K7hrY/xnqPP+iqQ1HDPdEBRrQ9e44fBxFW4p1M48wVe+L6gFmRBPTX8dit6wlW+ CKbiCbxFBiNxIHzOXt2B89pi+UwXAVj+eRa3t4a4i678O/Ziap9hFO7WfmDTrsSju2KI JvlKJPd2FcCixdAsh/U+oUQWBsbXQ9qFa3RP7hBwKc4dWWJ4+zcfzQx/rsV0wXquUBuk xcb55vmWzP5SORbYRU4eW+ZzJWy674AtJClFiN6Hl/wBeScwTLxdK9+VYGGpvWZrBuXB Ubjg== X-Gm-Message-State: ALQs6tAcjF4ttJ21GmTRuA4jwcJgi329gefJwuvtltmdrmIg8fUhEcQB OeunyB+cmWMZ8QQ2hbx4OyawNCd12b0Du0KNexY= X-Received: by 2002:a9d:1025:: with SMTP id h34-v6mr14577394ote.364.1525336903624; Thu, 03 May 2018 01:41:43 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1468:0:0:0:0:0 with HTTP; Thu, 3 May 2018 01:41:43 -0700 (PDT) In-Reply-To: <5078f4ac-74e7-aad3-1e0d-4de5da31d3c4@arm.com> References: <20180425233121.13270-1-jeremy.linton@arm.com> <20180425233121.13270-12-jeremy.linton@arm.com> <5078f4ac-74e7-aad3-1e0d-4de5da31d3c4@arm.com> From: "Rafael J. Wysocki" Date: Thu, 3 May 2018 10:41:43 +0200 X-Google-Sender-Auth: 8UZflTPXP8pmfYvFXDJE5Ffun4M Message-ID: Subject: Re: [PATCH v8 11/13] arm64: topology: enable ACPI/PPTT based CPU topology To: Jeremy Linton Cc: "Rafael J. Wysocki" , Sudeep Holla , ACPI Devel Maling List , Linux ARM , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 3, 2018 at 12:35 AM, Jeremy Linton wrote: > 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? I'm not actually sure. At least I can't recall any right away.