Received: by 10.192.165.148 with SMTP id m20csp5018814imm; Tue, 1 May 2018 07:48:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp6X9KrE2m5F/YYdlqbBuM4WqQKdzIhbFkW5Lz5yg2lvVZ4i4A8UqeCs8QOf1Qo5kwH/zwF X-Received: by 10.98.150.150 with SMTP id s22mr15470828pfk.191.1525186098654; Tue, 01 May 2018 07:48:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525186098; cv=none; d=google.com; s=arc-20160816; b=PTu1cShD+U2qJmGIXV+MX6LCw5KTJcsB9QRXtE/pbx+YrXYrAagwK6DWJ0KTv2MaGl VCeO7O3gSrbVgFU9spY4Rgm18WIB2bHpqh+VMsUQSlPmsVoJBH6/5RjJFn90XX/lROUp zn+rbLVSl/aCKK5oVofxbqlHvr4StcqXA6XL3bcaUEOiY1N81NfRoOJk2wcsBJjlv04j bj472BK3eHSVEjyuJ1gwaema/ULu3ahwiqKm7eupYxl4D8l7FhdIzfPGe2jnKt0biYt6 5HdX59Zwd7aHl5QF9try+Thwa07/DGVNLcJrjQdG0MSk5GxuLI0uuylQAXYC5qgL8S0W A/sQ== 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=TLPBJbbTX2RGW/g4PAfA75QFGwfgMxhxL0Cb3r4jCt8=; b=hyNh0mw4xtCd2YPIJB88BvivH/mc3OUu5axnOCHDhEVIx9vbKFgacDuYOR8V9LUxsH 0ONYYeZbAqdAm8O5uEEuMtwqoHDsl9PI7LFkZoNOXoxmHhR2kfg4uFp8YNEHcn8cTZn+ Dd6PVWDIs6r60qeqMJkICXYbZUM42ac10KyyQF2haXQ71o0mFojpoHIENE7EnczfMKY2 3PWh406sgHXUGi37H7bD7iedek5aZuiELBrOHD7Z7c0QmjLW5cLh1a6mpNsgIhR6YHyM Si03dPIeAGEaD6JXa/Jh/EejJaijU9NdZ0F/SIfiWKA+IxpLmZGXmeXxUrX5xJcHdgMS YF4A== 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 o1-v6si9444864pld.424.2018.05.01.07.48.04; Tue, 01 May 2018 07:48:18 -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 S1755955AbeEAOqm (ORCPT + 99 others); Tue, 1 May 2018 10:46:42 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:48020 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755305AbeEAOqa (ORCPT ); Tue, 1 May 2018 10:46:30 -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 892251435; Tue, 1 May 2018 07:46:30 -0700 (PDT) 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 501673F25D; Tue, 1 May 2018 07:46:24 -0700 (PDT) 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, jhugo@qti.qualcomm.com, timur@qti.qualcomm.com, ard.biesheuvel@linaro.org Subject: Re: [PATCH v8 11/13] arm64: topology: enable ACPI/PPTT based CPU topology To: Jeremy Linton , linux-acpi@vger.kernel.org References: <20180425233121.13270-1-jeremy.linton@arm.com> <20180425233121.13270-12-jeremy.linton@arm.com> From: Sudeep Holla Organization: ARM Message-ID: Date: Tue, 1 May 2018 15:46:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180425233121.13270-12-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 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, but I am fine either way. -- Regards, Sudeep