Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1943658ybv; Thu, 6 Feb 2020 12:46:27 -0800 (PST) X-Google-Smtp-Source: APXvYqziJiXyhn5/o5A8y4/yAp8OQYE2XEZ1Ux5HOeJNO1oyPRV0LMN/5zRKds6ke1cPo+9893mC X-Received: by 2002:a05:6830:1607:: with SMTP id g7mr31713222otr.320.1581021987592; Thu, 06 Feb 2020 12:46:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581021987; cv=none; d=google.com; s=arc-20160816; b=QKCDK8T7xtMbKSAYLyvV50U13YeiOTmVJZWwtic7XNZ9WvXJI5tVz5fJ088V6rf1+9 CBlEQVIdXy2XDv4D3Obr2iwNO94CdxOsQb/SW68jetCsvuvCvaItfHQnP2Ud1emEjR3l 9n+On+Y5sXunBuktDcLdhIhuKwEs9rqp2ecjQLvdRpNsKV9jKB7vvw4Iul5bFwXrmdl2 3rZNwS/kJJq1HzB8Kdjg4hjWFAb5AoTvZztNnB8r9IqoIY/eWCBoDGa1PRVdgitz34ne U89ozQjnUdklrvPPrFNillVtlP5NKoiYQ+JCJbm4CSKb0lmyvCFfSBpKKJT8aFHQkxM8 9D5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dmarc-filter:dkim-signature; bh=DcZBAjG2VO2WTzYOcZCs8ZVgMYwd7rbCdreK1KsqE9E=; b=CmegseQ7uObAF2dV4LXvLZ8b1R/9Bc2Bv2Q3UhKVxx8ru/AA+bBE2w5MEF/UqzSWJd p3IiF9b2kZOhPhQLN2J4x/qghAJXd9iXJFQRwoTLng1V1+ZhaAVPAyrtHN/kTZM5Gyp9 l6zDjYUNR6qP86WT0zfEdLmipX6A4VZ8MKWcCv+XMyZ2iG2+QYoqzlI3CyOo8XSSyQCg PPES+Or2rX8/WWeb5kdOOBQaW2Nw8zUPq+HjpNYpD0DtowU6h7g8AhbXcITU2Lzer+Ey vS2/wFZSW6y+PikDfcTzVdIRK16CukkBRpApYGY7zjr433h3exi35kGoGo1OtPh8jZzN fN2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=FFFkDGH5; 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 p16si403468oto.287.2020.02.06.12.46.15; Thu, 06 Feb 2020 12:46:27 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=FFFkDGH5; 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 S1727860AbgBFUpW (ORCPT + 99 others); Thu, 6 Feb 2020 15:45:22 -0500 Received: from mail25.static.mailgun.info ([104.130.122.25]:28469 "EHLO mail25.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727711AbgBFUpW (ORCPT ); Thu, 6 Feb 2020 15:45:22 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1581021921; h=In-Reply-To: Content-Type: MIME-Version: References: Message-ID: Subject: Cc: To: From: Date: Sender; bh=DcZBAjG2VO2WTzYOcZCs8ZVgMYwd7rbCdreK1KsqE9E=; b=FFFkDGH50TF5qBwstZW9DQ/cKjKhw3evZtiqJEIDLe/rpPzbHeppKVbGg2cNo4HoBY5KDlv2 v5gMrpRlyOd6da04TtSgcrkdGQIdppEqyCUQX/1nqK1DRvZ5GQoC9pWD5FlJmy/eJFbMa5PN L5pm6CrYEFgRILJdkUGSJusaZn0= X-Mailgun-Sending-Ip: 104.130.122.25 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e3c7adc.7f666d8d2030-smtp-out-n03; Thu, 06 Feb 2020 20:45:16 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 8F21FC43383; Thu, 6 Feb 2020 20:45:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ilina) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6E80CC433CB; Thu, 6 Feb 2020 20:45:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6E80CC433CB Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org Date: Thu, 6 Feb 2020 13:45:14 -0700 From: Lina Iyer To: Ulf Hansson Cc: Sudeep Holla , 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" Subject: Re: [PATCH v3 5/7] drivers: firmware: psci: Add hierarchical domain idle states converter Message-ID: <20200206204514.GB8107@codeaurora.org> References: <1580736940-6985-1-git-send-email-mkshah@codeaurora.org> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: 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: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. 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. -- Lina