From patchwork Thu Apr 12 11:14:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 133263 Delivered-To: patches@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1574039ljb; Thu, 12 Apr 2018 04:15:22 -0700 (PDT) X-Received: by 10.46.115.8 with SMTP id o8mr386865ljc.99.1523531722735; Thu, 12 Apr 2018 04:15:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523531722; cv=none; d=google.com; s=arc-20160816; b=h9qwtgOyDzCqN2ml3PqE35dXSC6LeqQzaITClsGTl8G0MBmBHUqDOmz9YEcljJN/kl g890BRnaT66s592o+S/5DWNUs7NzRM+qXqbWuYY8csVad+A2QbKud2CuQYur/mc6n0y3 PUk2CLL2VYCfF8z4SLWxCk7rf5lj+AJRtM/yU5l+USRMrlw+K6zTjHzJD/s2i4rZKL26 8HBDgZ85hdG4R//k6KxnSgl2xgX5eXduk0kf6q+vXgLlAjv8Xcqj/sQE/BTDG+ccbyKD K4PIaRMLst5ZlSVhvhkYq+0HdBqxjM+VdjjQ2r0vfGHOIIlha4TOnXtG5nrIWv9yhROS 031w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=yNE497aPz9W7UIFPW6KZihJP9jsgHg4yN9657mM9uu8=; b=eRg7B+H+sJ7mTbiEzImCN8oSYoNrCmCLKD4Zq5QIAfVXfq56awR3BfZfIFA3TXDYmJ F+8esLbPQQ9KdVROVDHqvFSHUruAegS2S5olaVTEmvr4DxRHI8qG0sANGda26ooc1VWj 1sf17s4aQSF5qdQeGfIhXf6SxF3kzklaGI2ExxZLIDVqQRqrs0g6sR/LIg2C5qzMP/F9 5lUl1YpLVZ4Y068IHMbsjFmVBEip6iynPYadIPrFaSe+uISmDeNyVu/8TRixFVIBxAle zbDIuD+LQ4HFAuAVmVtOjlklb43VhUzKZ+tqrNzw7tUWw85/8ok8tquOvOyGgo/74lAs +E3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cnba7ECu; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id i84-v6sor293562lfl.10.2018.04.12.04.15.22 for (Google Transport Security); Thu, 12 Apr 2018 04:15:22 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cnba7ECu; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=yNE497aPz9W7UIFPW6KZihJP9jsgHg4yN9657mM9uu8=; b=cnba7ECuwcjsQqGPGMf2qzrwzWe73bxAYgwJTcIqxZ46YracDBKBiGbd9OX3PGhdWW FGhNBmfdqROjt2C3SizH3gNKvTnIXb517Sq5k7ww57QVqAqw7qT12cg7tx+3/F5TXGr0 nrbflIzRM9EMLGkGlxPzMAd0CT9+pjRC5pMVE= 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=yNE497aPz9W7UIFPW6KZihJP9jsgHg4yN9657mM9uu8=; b=o1xjvUW4RH5yLWAx+T1u66YetAwg8T+tUQXlBSzzBN8dn5Ea7W6fJjzbhcVavZB5Xg bCcwqGKqiE3JBMvdqW0XGw94/bX0u30emaVNyaTUwTSENwcr4i0qlwJftNUHo+B1nJQ/ UfSBZu2p9GvIsyl8F0AhbjSoj1553Y4StJ5QgiHJ36eh5eD/BVmVwfthAbdWYppekVmV Qstm4OTrfacOcKCArK+aw1KEyZc0V2YMlMm7eT1gsl/E6p59KXqY2Vcq63pFrcHTuHwS aHyLJoGc+esYi+mOj6RE7/yu1aq1obkyvglzHTfeN0DHFPL5lhQX2WQquwTTPbVkBi/o /b+w== X-Gm-Message-State: ALQs6tAdGOo2leO3Z2Xx3KEq+MbrVQan6eJOtRAbEtVq3GeYT4H2aN/i Qoqjavzl50XpkUbofR0o3+88BrVR X-Google-Smtp-Source: AIpwx49DG9EYClDMCIUPwXQrZhmdbQ6jmm3aGvxM2QAaSkhHv3X60DWSDOY0nMnuH++zjcwbcCOKGw== X-Received: by 2002:a19:d720:: with SMTP id o32-v6mr5110601lfg.89.1523531722532; Thu, 12 Apr 2018 04:15:22 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id r29sm543187lje.72.2018.04.12.04.15.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Apr 2018 04:15:21 -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 v7 25/26] arm64: kernel: Respect the hierarchical CPU topology in DT for PSCI Date: Thu, 12 Apr 2018 13:14:30 +0200 Message-Id: <1523531671-27491-26-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523531671-27491-1-git-send-email-ulf.hansson@linaro.org> References: <1523531671-27491-1-git-send-email-ulf.hansson@linaro.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(+) -- 2.7.4 diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 30ad2f0..574a504 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);