Received: by 10.192.165.148 with SMTP id m20csp363507imm; Wed, 2 May 2018 01:24:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqXOR9wbXfyeqB6fDxHk3Sb19nMjZKqmD9zxxxOFRwehs3qcfmL5aiA3PvHh8zLQ4j1FOR5 X-Received: by 2002:a17:902:b949:: with SMTP id h9-v6mr18935736pls.146.1525249495642; Wed, 02 May 2018 01:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525249495; cv=none; d=google.com; s=arc-20160816; b=bXAo+Y6yVnPpeq1eChrXrzq828kUZL3zhYlU6rUefvtL7/nHjmVeU26VojNU8/S8Gh zVmsqlgSFhrXTGQ3lOGJ7Wq/J6ILuz7zHkTU2db85yQv4H8uClxYFRp+nGlLT4b88xZk ngs2IyIKX+pQbd4m6anHs0HbNFaqgpH1lG1/G5j9nlj8kZaqfYbCcLErQ1E70MSfKYsL BfKjZcVw5q74JT1Z+KwERa0TB02kxnQ9kio55tSwT/E9sPnIWtO2fjJLwc3/jr2qVanb RBSEoxcus22d6l0dthHcWoeMJvGHQ9cAaRZwI2iFFiOVWcGheRa219i4+Bjc9gH1CT/j WVOg== 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=YB4k2kQ7dqgXWvo2sQvH4wpdLxwjjbqOmTVHYxIe0zw=; b=TNARIwds8hYtY7SAFQDwEQnSKq1rbFfH7Jy8y5+OmXJmWPLNHhcCeyJ6LWObUAzgSY dHG3Mdnyo5Z6ZG6jdulV5uxn9OZcIPS+NUYW//mtcMITP2ycxuGaa498kNQAlveRArMM 6F8s0+aMSybRFdSA8be27naz4Ld2E/MBeOOKJK89xEzhE2VrbcIP2qjrgMgwkVPYXyTY WSZn1mYQVVDayC0N8PwZybE8m1nwOP/n6Neli0egG/bLA4deCKGW/waJVoYsj3dmS6jR QIlc16Nvj+MYZ1PucLllyrBjDXfqTQC5ZKek1H0p1Z3WjyD5b5Pd92vwIhy61gx8o/Kr 5snQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=dJMZxHfV; 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 w10si11236142pfg.174.2018.05.02.01.24.41; Wed, 02 May 2018 01:24:55 -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=dJMZxHfV; 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 S1751294AbeEBIYR (ORCPT + 99 others); Wed, 2 May 2018 04:24:17 -0400 Received: from mail-ot0-f179.google.com ([74.125.82.179]:40578 "EHLO mail-ot0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751019AbeEBIYP (ORCPT ); Wed, 2 May 2018 04:24:15 -0400 Received: by mail-ot0-f179.google.com with SMTP id n1-v6so15644091otf.7; Wed, 02 May 2018 01:24:14 -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=YB4k2kQ7dqgXWvo2sQvH4wpdLxwjjbqOmTVHYxIe0zw=; b=dJMZxHfVh5ZxDxc4ijxNoGD4ogXhMIiEIHJ+oHgKMcwnt1RahmUNA1PGCQqQ5eVw6N 96iH045ALHOReubEH8/1At+hRReEkiCiGW64qa6QGeNxmd//bD0RyWzMv5qDZkW3UmNn XRJJVMD8Y1vrTxBMuDPYcZobPPX33WNqMPsCao5sJ+FHyF6Zpm+UN9+KG+l9yjV/qYT/ jqMOu6gy+p2X1gChpN5zEDs+t0JrZNpAtfrTNnUxBxXT/OYO6bUYohercSwNhhSMWt+4 Li3+JnenLUal/8alm2IF7zrbNoCO6Dl+BtpJlE/uweuU/LSCpeSaenWbKvEMIy+JKA0r jRqQ== 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=YB4k2kQ7dqgXWvo2sQvH4wpdLxwjjbqOmTVHYxIe0zw=; b=CUrOyZXZQ/AyXghhGmiPtCctvTuWGgRBSCP214EUrZYcmVxxjmqQ6vrSSrEXIs5FjB YwgyeNDXxsPYL2lfjeSUtJ8rShtgSr+WslWrr3MvkprwwPQicbhFh175aT+nCvRdQyrQ 7dTDo/VY4ILN78YfoSLVL2YNZnhD9dgEvlnoXP/8Yn3wl1ickrJJ9F5fMABwKk66zu/R t96vMl3ZsH5ymDIspDeec0D+DJqCADB1WPpQKZ0/M2IfYea8CzsiAK5B+BzISOsKyh+s NwyDKIWk1aJzPuA+OMtuouBU53auOnwHlnph6sSjh2G33+WUOAxsF6uhlUFD1PjYbaj5 0a6A== X-Gm-Message-State: ALQs6tCiXtA0UFUPsTts+ezV9jPGHtlFuxZzohYsPtOA7hje2oInAEjp XA0730Ajfklieq4JDEB2ZSsiBdqbslbiTp8r/mg= X-Received: by 2002:a9d:9d6:: with SMTP id 22-v6mr12476985otz.291.1525249454582; Wed, 02 May 2018 01:24:14 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1468:0:0:0:0:0 with HTTP; Wed, 2 May 2018 01:24:14 -0700 (PDT) In-Reply-To: References: <20180425233121.13270-1-jeremy.linton@arm.com> <20180425233121.13270-12-jeremy.linton@arm.com> From: "Rafael J. Wysocki" Date: Wed, 2 May 2018 10:24:14 +0200 X-Google-Sender-Auth: eDUwdnTEj72kYdBEr3yfvl6xZWY Message-ID: Subject: Re: [PATCH v8 11/13] arm64: topology: enable ACPI/PPTT based CPU topology To: Sudeep Holla Cc: Jeremy Linton , 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 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 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.