Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp498598ybv; Fri, 7 Feb 2020 03:22:33 -0800 (PST) X-Google-Smtp-Source: APXvYqzZB6+zKSrOSRRXtdBlL5iZV1R41s4JNGOSQ4P19YG8/OLITTgxOIYVnsE96MJnWc1v7CvD X-Received: by 2002:a9d:4541:: with SMTP id p1mr2324365oti.199.1581074553788; Fri, 07 Feb 2020 03:22:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581074553; cv=none; d=google.com; s=arc-20160816; b=HmmPBwE7plTD4DcXPlbGlsYzbIkYnlj1E13Sr591QK+xjmifNlb1PtPzTg5JOXc6TE jN2NVNDX6QxOa/XebHSNBwZCB09clpRU7f9mRsZlS5LmOrsSmRU4nz8Z4S7dwp0K/d2X YqhukxrZEx3CUF+n9n5cqm5iE8HroXew3Glpo79P/toTj2g0bvuP5gI9tnl5QtdrVfbv l6UTRbaD6lhPf6qK3l6U3xGqRX5ZWsDDBIbDR3C8zz3M3TI4SagnanUtvUS1Iz596G4/ rJQ0mI1EWwMjcd55yrdD/fnSNcFUNct4pA/3jytdTEkmebqpfMM+xc5rjyYqIysJP7CG zNdQ== 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=jDXD+sDmAXlNayZoCK8eFkpEUfkyZw0TBz8w9u4bXaQ=; b=ab6LDgiVRZgmzEEkphNjqDMBkRhi7/Lhb7LaU+fzpL7vri38SYFYc97S/RxaJkV+LA Q4RtqGLLdUmR3MeioqYc7xQHNym+dW9A/rX5DZ9T6gmgE07YjAQKuHwGdT6u1Op8EVWK 2CfHgxHcA7yik6uUI2J6uq751Rd30ZEWcCr/hZkX/JDnnztJDoEAAD7ESBIb9JH/5GBK nEJbVFqSCfHpk4kok+FMEdlTFCTr8WnwSWiZ68Zhkl6fSq9uFEba3WV27XTkX2gQdPVG E+Nj6c3baltfYKPjlhSbrByNR6TjASbOZ/EvLa2Pn7PB3dSeQ5x9X02658igiVXSfsjP MEhA== 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 b126si3934841oii.72.2020.02.07.03.22.20; Fri, 07 Feb 2020 03:22:33 -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; 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 S1727031AbgBGLUX (ORCPT + 99 others); Fri, 7 Feb 2020 06:20:23 -0500 Received: from foss.arm.com ([217.140.110.172]:39116 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726674AbgBGLUW (ORCPT ); Fri, 7 Feb 2020 06:20:22 -0500 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 0771D328; Fri, 7 Feb 2020 03:20:22 -0800 (PST) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CA4093F68E; Fri, 7 Feb 2020 03:20:19 -0800 (PST) Date: Fri, 7 Feb 2020 11:20:14 +0000 From: Sudeep Holla To: Lina Iyer Cc: Ulf Hansson , Maulik Shah , Stephen Boyd , Andy Gross , David Brown , Lorenzo Pieralisi , linux-arm-msm , Linux Kernel Mailing List , Linux PM , Linux ARM , Bjorn Andersson , Evan Green , Doug Anderson , Rajendra Nayak , lsrao@codeaurora.org, "Rafael J. Wysocki" , Sudeep Holla Subject: Re: [PATCH v3 5/7] drivers: firmware: psci: Add hierarchical domain idle states converter Message-ID: <20200207111955.GA40103@bogus> References: <1580736940-6985-6-git-send-email-mkshah@codeaurora.org> <20200203170832.GA38466@bogus> <0d7f7ade-3a1e-5428-d851-f1a886f58712@codeaurora.org> <20200204152132.GA44858@bogus> <6ff7c82d-4204-a339-4070-0154ab4515f1@codeaurora.org> <20200205140603.GB38466@bogus> <20200205161816.GD38466@bogus> <20200206204514.GB8107@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200206204514.GB8107@codeaurora.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 Thu, Feb 06, 2020 at 01:45:14PM -0700, Lina Iyer wrote: > On Thu, Feb 06 2020 at 01:46 -0700, Ulf Hansson wrote: > > On Wed, 5 Feb 2020 at 17:18, Sudeep Holla wrote: > > > > > > On Wed, Feb 05, 2020 at 04:55:17PM +0100, Ulf Hansson wrote: > > > > On Wed, 5 Feb 2020 at 15:06, Sudeep Holla wrote: > > > > > > > > > > On Wed, Feb 05, 2020 at 05:53:00PM +0530, Maulik Shah wrote: > > > > > > > > > > > > On 2/4/2020 8:51 PM, Sudeep Holla wrote: > > > > > > > On Tue, Feb 04, 2020 at 10:22:42AM +0530, Maulik Shah wrote: > > > > > > > > On 2/3/2020 10:38 PM, Sudeep Holla wrote: > > > > > > > > > On Mon, Feb 03, 2020 at 07:05:38PM +0530, Maulik Shah wrote: > > > > > > > > > > From: Ulf Hansson > > > > > > > > > > > > > I was, but not anymore, especially if we want such changes in the kernel > > > to do so. > > > > > > Just use OSI as that was the point of adding all these after years of > > > discussion claiming it's more optimal compared to PC. Now telling that > > > you need more changes to compare it with PC just doesn't make any sense > > > at all to me. > > > > Fair enough. > > > > I was just pondering over if there are other reasons to why we may want this. > > > > One other thing that could be problematic to support, is when are > > other resources, I/O controllers for example, sharing the same power > > rail as a cluster. When such controller is in use, idle states of the > > cluster must be prevented. Without using genpd to model the CPU > > topology, it may be difficult to deal with this. > > > > Of course, using PC mode when trying to deal with this > > platform/board-requirement would also be suboptimal. In other words, > > your argument about when using OSI vs PC mode, still stands. > > > I understand the arguments for using PC vs OSI and agree with it. But > what in PSCI is against Linux knowing when the last core is powering > down when the PSCI is configured to do only Platform Cordinated. Nothing :D. But knowing the evolution and reasons for adding OSI in the PSCI specification and having argued about benefits of OSI over PC for years and finally when we have it in mainline, this argument of using PC for exact reasons why OSI evolved is something I can't understand and I am confused. > There should not be any objection to drivers knowing when all the cores > are powered down, be it reference counting CPU PM notifications or using > a cleaner approach like this where GendPD framwork does everything > cleanly and gives a nice callback. ARM architecture allows for different > aspects of CPU access be handled at different levels. I see this as an > extension of that approach. > One thing that was repeatedly pointed out during OSI patch review was no extra overhead for PC mode where firmware can make decisions. So, just use OSI now and let us be done with this discussion of OSI vs PC. If PC is what you think you need for future, we can revert all OSI changes and start discussing again :-) -- Regards, Sudeep