Received: by 10.192.165.148 with SMTP id m20csp1969711imm; Thu, 3 May 2018 08:16:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZowBSXr4IRyeYeJEWyr80aANfsaV5jWLYi0kGfriHJsP0JtzmAWFyK2xAvqM27aY9incrcg X-Received: by 2002:a17:902:7c94:: with SMTP id y20-v6mr24539137pll.56.1525360568997; Thu, 03 May 2018 08:16:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525360568; cv=none; d=google.com; s=arc-20160816; b=WJqloQrcqSZFFih+rTGSkV6MlrhcnmeV6SQe6O8Dq9hR/RVQWDdxFzw6OaTY6IqH7r EzuNgV3+fkGRzb0bBaSQapu9k6brWNPQbbG/t0WemcJwwjC6nHIPLmRwptciO+f6JrJ4 AVrbhJz/d5wR5QY0dU3vXYsTdHmvsK4KbZDledremNr+gzdYb/PoysOcZ/mgCG078VDt VqP/SDFQC3/DJKrsGbaf03gu6ldG9SjK1EaTOJ0ER0l3WUoYrLSHtQzQA9XSz8mTC+rp fqWqQhSczq31JdWOmIQHlw7MaZ1e5CZTuPhDyqTGAY8ihw7VFjpp7M9boGDAu3cugqv3 V67w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=hxQcsW1CBdBoX1y0tVPKu42c26AgRl1HO4xmFUaEHYI=; b=G1t7gMmuaSVAJpa8hJjvTGwWViTR3m8SyMoYoWs4ukLCI5Zv/tw+BrmrYtNVtX3hu1 mZ2YaqMXQTe0d56t4Kd00f5634KoDN7mJ+RaAvPj9NUQfK0OhdqNPNz1/tZOafxHLOpr U0ixB9MQr5QOqvLaH/4t4GsKyssgk5Tp2s7ZjXUVeZyY+DKeNlySC6Up4DsAKsFHgqI5 dTC7DLghtD1uZ919qifTh7dli64KhC6gX8P86175w1RvGqI0vunGyGnNGBQwUC1pPoh5 CRm4Z7qq/qVpTI4jZJN1dN8axFHpJCTxkUSUV9v2Tl5eM58bfUTDMG7sFrW08X6kZvc/ fWHg== 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 u81si14220612pfg.289.2018.05.03.08.15.54; Thu, 03 May 2018 08:16:08 -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 S1751420AbeECPPX (ORCPT + 99 others); Thu, 3 May 2018 11:15:23 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:43516 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751137AbeECPPT (ORCPT ); Thu, 3 May 2018 11:15:19 -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 9B01B1435; Thu, 3 May 2018 08:15:19 -0700 (PDT) Received: from work-enc (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id ABF143F587; Thu, 3 May 2018 08:15:15 -0700 (PDT) Date: Thu, 3 May 2018 16:15:13 +0100 From: Morten Rasmussen To: Jeremy Linton Cc: linux-acpi@vger.kernel.org, Sudeep.Holla@arm.com, 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, 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 Message-ID: <20180503151513.GD28409@work-enc> References: <20180425233121.13270-1-jeremy.linton@arm.com> <20180425233121.13270-12-jeremy.linton@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180425233121.13270-12-jeremy.linton@arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 25, 2018 at 06:31:19PM -0500, 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. > > Signed-off-by: Jeremy Linton Acked-by: Morten Rasmussen