Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2817500imu; Thu, 29 Nov 2018 10:41:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/Ui/IGykbsZHzLvIR+NZVZeJujy1DJHnwtQeG/ZxQ5/y4D4Wqpb70s0/mOik/mHImGdsYeG X-Received: by 2002:a63:2ac9:: with SMTP id q192mr2186121pgq.58.1543516909477; Thu, 29 Nov 2018 10:41:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543516909; cv=none; d=google.com; s=arc-20160816; b=Tp0vLTldoUVsLIq2QddsU2IalfbWU5Pp7Wf3mYTeEngVAofxfDnWa/88DcFz3yoFfz N1FyL15bU3zEf0Qau/cmx+EmC94/P4rZlNAo5JP+JOic34uXxNGwy4/nPqtFMQyg6UEg Y6Op3IfGSD1noBQ4HsYXuETxO3bDpmVB9FUKQH+DBrXxvHjFuiCSI/Qbmmvi5zW5Rd59 KpNXULmsSep+lV8bYhH2DZjW7lZCizXDzGb3FhWrf7iBK995moQeFZ7PRnOxiqY8bZos HRjE+SeVpFJlFRkiSfnkJRfSwbDClkK5TFNAm+PUgd1QqIYHOrrjl0xOdChkRkJKqGet sqnw== 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=creKAO5CsDdP5/fdWi07H8cJaJAAKbloLoHhussbOK8=; b=ac9Pu4z1FYWvUWyENILpr1vGx6BwrDLzSTc2brPWKfP+PvkutoO0CHzIBfbKBt2obL 38UGJvkgE9vRh4KFwTk2ii9oLXY/d/FpEcAUZ/dVBznQVHcUC6ij8MabsIVLKIpm4e8f gjibcQM+zheJ05R202EXoCRCRARrJACAhdG58/68qzGBL/1kliatJBoQ3kIU8RY3NUzz idtrnZo8WFFyiw8UY86g16gK06MYA3YcqR83bGZvPYIGEPwZgvE7ytT9D0D0hZ32eNDc uTo1xB9yGXc6LtT2wrql99+9/zH5h1DShqqBPQejZQkEBzT1fBgqnYIZFEubbz6WY+zM 3Dzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Oq4RLwG9; 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 r59-v6si2856058plb.276.2018.11.29.10.41.34; Thu, 29 Nov 2018 10:41:49 -0800 (PST) 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=Oq4RLwG9; 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 S1731185AbeK3EyH (ORCPT + 99 others); Thu, 29 Nov 2018 23:54:07 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:37962 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731113AbeK3EyF (ORCPT ); Thu, 29 Nov 2018 23:54:05 -0500 Received: by mail-lf1-f65.google.com with SMTP id p86so2108132lfg.5 for ; Thu, 29 Nov 2018 09:47:54 -0800 (PST) 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=creKAO5CsDdP5/fdWi07H8cJaJAAKbloLoHhussbOK8=; b=Oq4RLwG9RC6q2KpDvl5rQwPShMgDUxq9Bcao8uuCY9Q4AUGv2qJ6j4CCs4QQpzURNm TPpTC3Cm6RmvLVIsxY6SlVz5CJCcQKq09+p++pgz9zsmI8exx5qUyut7Q3F4AYFnUW5Q CrFgG6cAu86X9HxVLNMns/Wgs98w0VXiRfNds= 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=creKAO5CsDdP5/fdWi07H8cJaJAAKbloLoHhussbOK8=; b=RzrecE2uskVhJFbgGBeIbXmRyTXZHxi52Rfo/KFlxQB60s6/hRVYhrmvvYORWyiHDg GKuLq6CwHi8ym/4eNk8CvAmxQs/mhhgwvUkn/xMQZ9mDLenfWIUZQRX8s+Z8l31G8PJM dNymd0WKfVJEnUQSPVww3SV4vx9wn/xtKo9L+njKDPmFP1PaJTzrmTd1g4SJYyvCRPg3 k44q2MacUpkFiCmiLokI+WVK9qv+HSWzzJsMBvga8sfec2WLZdMV9awVl1QcKX5+/2j0 jrPHSI0WP0Ews9lztN9GC2kuK5DNYedjBe8x60oKx82cPSeXhiH1QdLkGNI1LS2LumLg dy9g== X-Gm-Message-State: AA+aEWYWFAMKE9VZEraglRbkHxxuaf6BFNZt+8THA/BOg+kb04gXa4yx bKss/NmaIOofjYGbbc3SsQTVPQ== X-Received: by 2002:a19:6e0b:: with SMTP id j11mr1724953lfc.124.1543513673516; Thu, 29 Nov 2018 09:47:53 -0800 (PST) Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id j76-v6sm393983ljb.12.2018.11.29.09.47.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Nov 2018 09:47:52 -0800 (PST) From: Ulf Hansson To: "Rafael J . Wysocki" , Sudeep Holla , Lorenzo Pieralisi , Mark Rutland , Daniel Lezcano , linux-pm@vger.kernel.org Cc: "Raju P . L . S . S . S . N" , Stephen Boyd , Tony Lindgren , Kevin Hilman , Lina Iyer , Ulf Hansson , Viresh Kumar , Vincent Guittot , 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 v10 25/27] arm64: kernel: Respect the hierarchical CPU topology in DT for PSCI Date: Thu, 29 Nov 2018 18:46:58 +0100 Message-Id: <20181129174700.16585-26-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181129174700.16585-1-ulf.hansson@linaro.org> References: <20181129174700.16585-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 Cc: Lina Iyer Co-developed-by: Lina Iyer Signed-off-by: Ulf Hansson --- Changes in v10: - 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 f4fc1e0544b7..4d59a72f8b0b 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -364,6 +364,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