Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp303968ybi; Fri, 7 Jun 2019 08:19:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwd9omVVf9e7QzFrnceS4QG+BU+DNleLjMw3wwnpjUwO545yugXg50vJA9KSrHHUQCgeqr0 X-Received: by 2002:a17:902:988a:: with SMTP id s10mr56617038plp.304.1559920746863; Fri, 07 Jun 2019 08:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559920746; cv=none; d=google.com; s=arc-20160816; b=K2EkAd6bJWpPrAeNJyABTiKOv55OfnpUsZqiNRi807j58V7iqxlRqfseL1qkljzueu fMByJimXbh/qBTV0O6uZwUKYsHjs9QMMUCnh0b/n1/A+hjlTyhmCu9P9kxC9/BAx5Z3s cjjfC9IYemMJRogoN34t+7OiLvkjhK5706B8l5KqhwfJ8qDbduB5ubGxi5KY20orwfLA ex2jQY9OSe5IfzkK4d+Rf3EljonxDki5ZrD1EbcxCeh2urW7CWktmTOMjxxxbJGhv6hy 01zvMhFK6+LSIaC3NQkqrb1FUVGhd2f3hoqsgyTvmQUz2spNf0OX9IN1rcpOHYCJKc5O hYBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=EPqk7YjX1b3mCtwb2MQK5qy56Ut2nzXU3qSPxPO4U2s=; b=frh+HJimS42/K5sx/KO0QUyQ1wZ4zvjyN9JDByFEjb6sNd+RbPC1CSGi7gIGlOdUj2 TZLmZ4EBnxJK9/Z5JWOFwiowDDctxKygZH6QJAgItpJXhLL1F+DGwDDT/1K8EhKkq5X6 re3JVwNHdTfxj8HSYHxPI/Q8ZzPMooIGcXcK1VkcVV/2w2UfqxmFXWZ5bsebp58SweVW 42460BiVa+YifvF7EzBv9ocuSYLYbKmMAslJ62OnzBpmuQVAThpU2Y/xv5G2IiWPIxPX G4CjNLjztvPP0KWcq0B20Zf07BS2uHORMJC2SWwE8fz3ZxZcPe3FDl/3yfioKoa8KPUj 52qw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a15si1941837pgw.246.2019.06.07.08.18.49; Fri, 07 Jun 2019 08:19:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729652AbfFGPRW (ORCPT + 99 others); Fri, 7 Jun 2019 11:17:22 -0400 Received: from foss.arm.com ([217.140.110.172]:42484 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728446AbfFGPRW (ORCPT ); Fri, 7 Jun 2019 11:17:22 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3B5A6367; Fri, 7 Jun 2019 08:17:21 -0700 (PDT) Received: from e107155-lin (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6F0F83F718; Fri, 7 Jun 2019 08:17:18 -0700 (PDT) Date: Fri, 7 Jun 2019 16:17:16 +0100 From: Sudeep Holla To: Ulf Hansson Cc: Lorenzo Pieralisi , Mark Rutland , linux-arm-kernel@lists.infradead.org, "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 , Sudeep Holla , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Lina Iyer Subject: Re: [PATCH 07/18] drivers: firmware: psci: Prepare to use OS initiated suspend mode Message-ID: <20190607151716.GF15577@e107155-lin> References: <20190513192300.653-1-ulf.hansson@linaro.org> <20190513192300.653-8-ulf.hansson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190513192300.653-8-ulf.hansson@linaro.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 13, 2019 at 09:22:49PM +0200, Ulf Hansson wrote: > The per CPU variable psci_power_state, contains an array of fixed values, > which reflects the corresponding arm,psci-suspend-param parsed from DT, for > each of the available CPU idle states. > > This isn't sufficient when using the hierarchical CPU topology in DT in > combination with having PSCI OS initiated (OSI) mode enabled. More > precisely, in OSI mode, Linux is responsible of telling the PSCI FW what > idle state the cluster (a group of CPUs) should enter, while in PSCI > Platform Coordinated (PC) mode, each CPU independently votes for an idle > state of the cluster. > > For this reason, let's introduce an additional per CPU variable called > domain_state and implement two helper functions to read/write its values. > Following patches, which implements PM domain support for PSCI, will use > the domain_state variable and set it to corresponding bits that represents > the selected idle state for the cluster. > > Finally, in psci_cpu_suspend_enter() and psci_suspend_finisher(), let's > take into account the values in the domain_state, as to get the complete > suspend parameter. > I understand it was split to ease review, but this patch also does nothing as domain_state = 0 always. I was trying hard to find where it's set, but I assume it will be done in later patches. Again may be this can be squashed into the first caller of psci_set_domain_state -- Regards, Sudeep