From patchwork Wed Mar 14 16:58:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 131693 Delivered-To: patches@linaro.org Received: by 10.80.210.197 with SMTP id q5csp410981edg; Wed, 14 Mar 2018 09:59:47 -0700 (PDT) X-Received: by 2002:a19:8e95:: with SMTP id a21-v6mr4193933lfl.140.1521046787050; Wed, 14 Mar 2018 09:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521046787; cv=none; d=google.com; s=arc-20160816; b=gcMgb2/glXHEDJq3HK/Fyt4mHQkTeiP4yvdy2e5fdo3aYrGu42e/TCfW3aQNRM1GBM CT2O+0p9+SHjclERvGfpc1ZqoW76GUASQiyjEZphP7xsfAQYQQgOISyYxUS+reCfuSYA oBXFlXCTfmqfQC4jRvWWAawhvoR368ip4Hba4ZC2KwzXRE1p0TOyx6km0FXNGrntM7Rl LMIlCGyqu0ht/f3XUs5X5OFd7fXiyYpZINkzLKtGp0TWY7ktk9sZ1f8fHQRLBAwo7WWT 8qraooVS9YAj+p3dqbI/0wPpsrXsyfzXDfeSdHJ/6HiigpXqm/+lxKTHguGDhwozcxXL uwIQ== 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=wJC33l/zlBmKmzQgLVd7MIEXNpVnZs+TzZ/YB1phmjURdzGm2oNDIn7e0qE+9713qn AyBfCLk/VIaELn5sw/inimUkS3eDrRKA1EVo4EsQp7cf+P08YS1aheM3p0X6zSdp7iKg AXRdPjsCIbt4GDwlkyWvDd93jTG8eLSZb7fHSbb8xQ1Yq6S0faJv/XFZbdZW1fMoLeb8 PPjhNaUDmU8QYBsf67yCn3WuRlp5djleS+JOVimrIPlA/GpALQN1QaUWZ8Zs669SA9QB UpsnfnaiWkwcS9uLLSSmANoHoqBaKVvdEdNV81W1zP+P/TDIyrkH5ph9Yf9//89+pE9A uGwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ic09qpdC; 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 p28-v6sor856659lfg.42.2018.03.14.09.59.46 for (Google Transport Security); Wed, 14 Mar 2018 09:59:47 -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=Ic09qpdC; 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=Ic09qpdC1/eLYVbhcYOz7+DecrWiCBR6jbpXMDJUom3xvGcUIjm106mQfyOxv8TWaC k1wPXk/0GB74zgPjsGwLyFQiwjdMlBBGgSh1EqMLMSncVhGoBP9yPmQwANX/u8fZEG6e Nikr8U337SBFAmOoK0Ysr7vHHjtY1m35BTE8A= 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=jymiaUAQQ97xEVE84rFxBXt4u6cNxpBswv2GaGosgjHtVpSGaQK4uRhsdSTJVrRGWQ 7VMBprvWDPeQnCUmqEQ6qNwsoMpPlpmi+wnh2vVPccdSuZryZMA4mrL4VEhY7s7VlNC4 MBMUsN1BECjWJtE1BMg1QhVyjdtk8a0fHHRDp8LqTCYNDegvP69Mssy8V9TG7Up5Cthy ntSL9ZDA+egWuE00NoorWTYNabox23STuYz5EHYCet7TQBpEKYwL8vZLXAzf+8Hs50Q/ A0F7bpat51InadhmpriUIEUrkbkTtGuZOMT6+A4LfKJIikIapgQo0j5MetXQjb7ziNMf eC4g== X-Gm-Message-State: AElRT7FtPSrHSZFK42gknuEaRXhPHn9CYw2dRjUEf1Dkl4e9jfQtYDu1 64a95j4gV4Ddv/Irg+hYIoJC1Yyl X-Google-Smtp-Source: AG47ELtroVocYWjrkPQ4P6WWERCPllfN/8m25g8jmfA8KdhmuICrps0L5Y7S8Tna2vwtab3d+AT19w== X-Received: by 2002:a19:7b12:: with SMTP id w18-v6mr4095818lfc.104.1521046786756; Wed, 14 Mar 2018 09:59:46 -0700 (PDT) Return-Path: Received: from uffe-XPS-13-9360.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id t24-v6sm724849lfi.30.2018.03.14.09.59.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Mar 2018 09:59:46 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , Sudeep Holla , Lorenzo Pieralisi , 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 v6 24/25] arm64: kernel: Respect the hierarchical CPU topology in DT for PSCI Date: Wed, 14 Mar 2018 17:58:34 +0100 Message-Id: <1521046715-30683-25-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521046715-30683-1-git-send-email-ulf.hansson@linaro.org> References: <1521046715-30683-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);