Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1032602imm; Wed, 20 Jun 2018 10:25:12 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKAP3TY965taXteM8W1l3H+st11quSPuhkATmt9IvuKPSq2KMg9BLg2Tap3FkY4Wj22XqsO X-Received: by 2002:a63:304:: with SMTP id 4-v6mr19140802pgd.290.1529515512720; Wed, 20 Jun 2018 10:25:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529515512; cv=none; d=google.com; s=arc-20160816; b=n7jIYeklvweiCRQOu32c1bgjDqWNR9z2KyDVrXd0S/M2KyCe81h3hi3V1TYJJ5M86Q EnTFPsOOObmc1EuWa4xX1V3Bc5n3IbJnpZBc6llvJzt4OrSLAaAgo5MBysq2jcFfRbE7 wRzQI3c3EQxhAExny4XQcnsTL4OyPy6USYdZ0C2zYnXL2knpWEDqWHmgNdgMlTnaeyC8 cse5JvpkUDrqwKw81ni+nWj1vy0mlNOMHaKSaMZzmCimJIK64qnh9MkvgkxBgy37mPuB HSJNyCXD9ZkIiSmxzFkeXiEIPrJynPwsC2WP3YCthb+7UHlE/gjRV35KSpamU+Ci1oDp MP9A== 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:arc-authentication-results; bh=A0wHhSMjy2YWUBymI+ELB3cg7YhnejdDuSmcctGS5h0=; b=jKTNAqOU5zLkmoULuzBGyBJI3FYWeV7+9Dq6Nbt6arVvw3JtggUcCh9eHywxyPlZXZ cikgmGfSSm9f4ltW6YLjkIPQcY5AWXQOuHngSOzQzRhCWZrEfUaWy4JlbguOtQRlSebm PwVmvTNdvFnk6Y4qt6keioig8OPbFtRLJbQyPIBjLL2zsGoz5YeQL5LDO+CV2JTEvVYn RRMX4FWo5Sx02KI8hHMcx+BbUyAdr96ez8utyvn4eHyDIEXivpZKcMCBegCuSv+WBD3b sNAqWK/zvpWHDTNnQ+8Kvk7gfulb+/IVR9TvzG5BsgFC6Mzi370qvmsmV4gq7YIgVpDN yktw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cc4UVhff; 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 d39-v6si2877378pla.46.2018.06.20.10.24.58; Wed, 20 Jun 2018 10:25: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=Cc4UVhff; 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 S932963AbeFTRX0 (ORCPT + 99 others); Wed, 20 Jun 2018 13:23:26 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:41993 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932937AbeFTRXW (ORCPT ); Wed, 20 Jun 2018 13:23:22 -0400 Received: by mail-lf0-f67.google.com with SMTP id z207-v6so458437lff.9 for ; Wed, 20 Jun 2018 10:23:21 -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=A0wHhSMjy2YWUBymI+ELB3cg7YhnejdDuSmcctGS5h0=; b=Cc4UVhffJoYlqO+SbXv2kjA+4gpKKMPUH7+iUg1inol2Yd6GYumCkm6L9D0jffBF9g tId+4hG1pleNCzu5HlGkbCq6Z7yj6wdpXf2Fv4FuYgUNGv1mdzBpApn7ACORNAtB01sa h+4biO8cruT23jkl70yQj5Iby7nf+htjQvVeI= 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=A0wHhSMjy2YWUBymI+ELB3cg7YhnejdDuSmcctGS5h0=; b=a+ITyPtev576Uyy/EdFZTvgVHhBF6r50JkABBgDQBF4S/RHw5pJt3dzDvwd2HVorGP HQec6CaDOLqkadXhTa09feEOCEHm/agaJG4eGJV7YFu3oFYQjCXEleRi60cuPM7zEfC/ g2FHYcEjsljeT4LI1CDQ6tkjAjrwFp36omrhagG5+xqVB+lBr3vQBCWJAjyw6VoGrBfI mKHy++ZwVvFOvjS96BJgNGCTHomscjgmsxEIJ0vSNr7ixZFCEe19p6Aew7T1Ozd9qiqc Vs+FNZpQ03VGQ2S7TDOoTEyhKjoUxPvDPN2HhPSpxBYv2q/sPNn3jdRmgeL+zvlCS3Pl yeiw== X-Gm-Message-State: APt69E3+i6syW64tE2GIU99b0kLhvIJ8eDmDAcQxLdws0fxGMqDns45c bm8FzokHxYE7SgxXtWwHLsMJYpjQ/r4= X-Received: by 2002:a19:a78a:: with SMTP id q132-v6mr5269049lfe.126.1529515400950; Wed, 20 Jun 2018 10:23:20 -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 b2-v6sm514441lji.85.2018.06.20.10.23.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jun 2018 10:23:20 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , Sudeep Holla , Lorenzo Pieralisi , Mark Rutland , linux-pm@vger.kernel.org Cc: Kevin Hilman , Lina Iyer , Lina Iyer , Ulf Hansson , Rob Herring , Daniel Lezcano , Thomas Gleixner , Vincent Guittot , Stephen Boyd , Juri Lelli , Geert Uytterhoeven , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Catalin Marinas , Will Deacon Subject: [PATCH v8 25/26] arm64: kernel: Respect the hierarchical CPU topology in DT for PSCI Date: Wed, 20 Jun 2018 19:22:25 +0200 Message-Id: <20180620172226.15012-26-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180620172226.15012-1-ulf.hansson@linaro.org> References: <20180620172226.15012-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 to parse the CPU topology in DT, as to create CPU PM domains in case the hierarchical layout is used, let's call psci_dt_topology_init() from the existing topology_init() subsys_initcall. Cc: Catalin Marinas Cc: Will Deacon Cc: Lina Iyer Co-developed-by: Lina Iyer Signed-off-by: Ulf Hansson --- 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 30ad2f085d1f..574a5045f2f0 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -331,6 +331,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