Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5556410yba; Mon, 13 May 2019 12:58:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwo1TQoEOd+SnhDH/Q8nm2jvSCz7ljh/idgpoZphmux41fsGbXm1xgsZZADZZ8WRbzyoBGG X-Received: by 2002:a65:6497:: with SMTP id e23mr19994698pgv.388.1557777492596; Mon, 13 May 2019 12:58:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557777492; cv=none; d=google.com; s=arc-20160816; b=d3/qMHEQQJdO2XPhRYEgmpcNJWTSa6O8ReGWWAs7fyaESc/eCyvkbAnQq5z9IXeIT/ /Ga5NigLDAITJueObT7qjU8Wtmgfb1YocMZokoBqej88Y542gHHzjAlqFpVlR1Z1C6ql AU/EaUhqL+/aAq0UpOWVPzAdtQSKTILtqNHGXDFM6OkNTDCQTwF7QiASJL7cPyVbZUt/ wK7zasrLgNbbhkhL10Yqs6eBtn8y95zV8ibNNRQmyiVgnlzqcJvxpjN/xExx49+OtSCR YoQQptA/HXVvdV5OyfeOui6gdZYyAQe1Jk2DPry5rbTPiF4792u+L9otFRbPbLf7Np0k pLHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=FS9Zs+3LWO+O30HH4l9Kk8Vdize9BSzeQBpadzl2HYA=; b=HN6larkOPJSMJLsXzQB+RJfVRTmmNEFlMC5Ge2Hi4WPXlzGgfxdDmWW0QWYCKIfKZA mTnyKJym+HB3rOtfxu5w/FsKMYCoZJQwUsY7d6B1oHBHg8U0zUsEfytUnLHnDBwpVQif UtbaB0VmLL6nvH0KFZjdy48SN0XOc8zC9BDkGREtTNsuY0US0JLwK9h4JuX7Ora6b9NM 2j8a0TcITnwWVEHF+xhiaqIqMhaxRzNBKgcqTSME4bLAR663iZ4tJeAtyeSAVRKjRfy8 Ig2LsSWEWN9J5nWP0Id+cDjJcdgN96k7ist02kCoLqOFRjN1wFquX2jg7+sBsyeEoyEI XjRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t15nWHPm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1si17453034plp.26.2019.05.13.12.57.57; Mon, 13 May 2019 12:58:12 -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=pass header.i=@linaro.org header.s=google header.b=t15nWHPm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727182AbfEMT35 (ORCPT + 99 others); Mon, 13 May 2019 15:29:57 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:35297 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727168AbfEMT35 (ORCPT ); Mon, 13 May 2019 15:29:57 -0400 Received: by mail-lf1-f65.google.com with SMTP id c17so2623474lfi.2 for ; Mon, 13 May 2019 12:29:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FS9Zs+3LWO+O30HH4l9Kk8Vdize9BSzeQBpadzl2HYA=; b=t15nWHPmFlGF4Hk/qXkWtGd6P4khoapB58QJFxrQ0ZNQUXmlHvGcZXvn8hgr3rc7X+ eE/ASRA8k1AQG0DdZLyF3FiUVQKz9AjKmneEG4iuBy5DWguCj44rHUGww8VoLC14kkpV TAmsE70nTuh+vkyVTcFflq1Ihtv15Gjs6lN28RnAdyk6YEKe1sk82sQKEFoOgzZS1j0g ppmAaYnj4FwI7sFWE7rhWAusai9maT6zhjqYzXhVMTt9rwMyhTPogRZF82iPBQdLTLL8 e41snlmZNXFO0Bqj9yPBVHA/mzxQ87IGeFK04GazkTYlofyN2rCzQMCISOTnU4Ay1zIY C4YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FS9Zs+3LWO+O30HH4l9Kk8Vdize9BSzeQBpadzl2HYA=; b=fNC4yf3q5Rni/7v6VrAGvhFry9nyX9t1LPh/O5UGSMwnDJGKa+WVgWs/rvg/VTyM1o 1TgPZE2F65yxzuiVGa+9W/HjKyEXV6BJv0datRk94X8H30Qsj51sfKlAtYs9+MyybtZT 0xNYHyV/QJVFveiG3/2NvKVbsejPtjzmweBpVndjd6CEmAbg1E5ZfNXzF2eZg8f9T5E+ c/l9zWIRgR6XmFVqU8Ulhk0utDfrLhsm1y9V5cUx01pRijNAzicckUZD7HmBOEd/k+O5 TmAuU8gYawwhvW5PKkRbxk1Sui8uM2pf8pGscpbsMzHRh4KnZkatZASgPtMEAB+7huv4 v8zg== X-Gm-Message-State: APjAAAURXQvGy0AIlnAH1+pWMC0VTPei3TCoReFO89VRKiievnUiFRiM KrRd2SYta5H95oJ+X9XCYAYc1Q== X-Received: by 2002:a19:ae14:: with SMTP id f20mr14035921lfc.49.1557775415444; Mon, 13 May 2019 12:23:35 -0700 (PDT) Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id q21sm3449365lfa.84.2019.05.13.12.23.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 12:23:34 -0700 (PDT) From: Ulf Hansson To: Sudeep Holla , Lorenzo Pieralisi , Mark Rutland , linux-arm-kernel@lists.infradead.org Cc: "Rafael J . Wysocki" , Daniel Lezcano , "Raju P . L . S . S . S . N" , Amit Kucheria , Bjorn Andersson , Stephen Boyd , Niklas Cassel , Tony Lindgren , Kevin Hilman , Lina Iyer , Viresh Kumar , Vincent Guittot , Geert Uytterhoeven , Souvik Chakravarty , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Ulf Hansson , Catalin Marinas , Will Deacon , Lina Iyer Subject: [PATCH 16/18] arm64: kernel: Respect the hierarchical CPU topology in DT for PSCI Date: Mon, 13 May 2019 21:22:58 +0200 Message-Id: <20190513192300.653-17-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190513192300.653-1-ulf.hansson@linaro.org> References: <20190513192300.653-1-ulf.hansson@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To let the PSCI driver parse for the hierarchical CPU topology in DT and thus potentially initiate the corresponding PM domain data structures, let's call psci_dt_topology_init() from the existing topology_init() subsys_initcall. Cc: Catalin Marinas Cc: Will Deacon Co-developed-by: Lina Iyer Signed-off-by: Lina Iyer Signed-off-by: Ulf Hansson --- Changes: - None. --- arch/arm64/kernel/setup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 413d566405d1..f1559223c55b 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -367,6 +367,9 @@ static int __init topology_init(void) { int i; + if (acpi_disabled) + psci_dt_topology_init(); + for_each_online_node(i) register_one_node(i); -- 2.17.1