Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2316357ybi; Thu, 18 Jul 2019 06:37:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOIWyebAqn+y6XEHaTsn5D9u8AacvijqKdnR2ztMahwjo8dtZEDNbiVafG/Sr4Lee/uZ+v X-Received: by 2002:a63:d30f:: with SMTP id b15mr47332493pgg.341.1563457035097; Thu, 18 Jul 2019 06:37:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563457035; cv=none; d=google.com; s=arc-20160816; b=MaIHodY5/OLAo+hkT0lRC/e6E7naaByKqzIdMg5CyP5HHH8QBB3plPt1Juxugn1B9u FnvpEzKSNJ6+kb5pF+asClSFta56hpS4Q+7x47mARVFV1flyAWIOpfOCUS7LysblxOjm +bziGqSt7pYJvt2CWPL2VzO+IBp6xw4aAoIcHNF4J+pOFnFFtWbK+jjkFTDPxeQMZBBn 4LsZcJWc5u+O/6mNseOFhV11NTv1K62U/nSy0yD6pRZg2CEA6cll/KKoxUbcb12z1qmD DdSXJvEoFenRiYjG88NRovniC7XnTtkyGsJiDE7NT7AdwIsp0CsDcI2IoMwNTxqmEVPS /b8g== 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=yzliMihJC9ictdCLGaRQDTnak/xIKPQ6APhepR4juM4=; b=seRl3aF71ticODUYzS29v2M2DfJqnDBPXl/XDWYIbF8T7Ap+xOMqrUy5Ke4rZkvGPY q5GeFqPxovXoU+nQ9S7vzC4pL0BjFuuV+gcXDQx/z+b1NXZI/vmhFPqew6636y9KK5hZ Qn0O8wzhCo0PuUX2xWjo22hCTkl2wt3AuZsN4yzlaGF7I33nIh8DncmrQWmrgXoCd1ln TiR0H1L3doUqtbQwgnhDTgZqGffzOuHvsiIe8jMK19jE4kPqCSW+ckNXisP8tB61+WOy OiSa81f7yQgASH8/hgifHz4zyp6UlBKAaHUyqicLyp0sFYpRppR5XVQn5ryk64KqCxt2 tvrw== 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 j18si527946pgb.60.2019.07.18.06.36.58; Thu, 18 Jul 2019 06:37:15 -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 S2389933AbfGRNgk (ORCPT + 99 others); Thu, 18 Jul 2019 09:36:40 -0400 Received: from foss.arm.com ([217.140.110.172]:58504 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726715AbfGRNgk (ORCPT ); Thu, 18 Jul 2019 09:36:40 -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 0C67D344; Thu, 18 Jul 2019 06:36:39 -0700 (PDT) Received: from e121166-lin.cambridge.arm.com (unknown [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 754163F71F; Thu, 18 Jul 2019 06:36:36 -0700 (PDT) Date: Thu, 18 Jul 2019 14:36:30 +0100 From: Lorenzo Pieralisi To: Ulf Hansson Cc: Sudeep Holla , Mark Rutland , Linux ARM , "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 , Linux PM , linux-arm-msm , Linux Kernel Mailing List Subject: Re: [PATCH 10/18] drivers: firmware: psci: Add hierarchical domain idle states converter Message-ID: <20190718133630.GB27222@e121166-lin.cambridge.arm.com> References: <20190513192300.653-1-ulf.hansson@linaro.org> <20190513192300.653-11-ulf.hansson@linaro.org> <20190709153138.GA22871@e121166-lin.cambridge.arm.com> <20190716145121.GA32490@e121166-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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, Jul 18, 2019 at 01:43:44PM +0200, Ulf Hansson wrote: [...] > > > Anyway, as a suggestion to address your concern, how about this: > > > > > > 1. Move some things out to a PSCI cpuidle driver. We need to decide > > > more exactly on what to move and find the right level for the > > > interfaces. > > > > I will do it and post patches asap. > > Okay, so I will wait for you to converting the cpuidle-arm driver into > a cpuidle-psci driver (and all the changes that comes with it) and > then base my re-base my series on top. > > Then, would you mind sharing (even in an early phase) a > branch/git-tree so I can start re-basing my series on top? Sure, I should be able to post at -rc1 and will publish a branch here [1]. > > > 2. Don't attach the CPU to the PM domain topology in case the PSCI PC > > > mode is used. I think this makes it easier, at least as a first step, > > > to understand when runtime PM needs to be used/enabled. > > > > In the PSCI CPUidle driver we can have two distinct struct > > cpuidle_state->enter functions for PC and OSI, no overhead > > for PC, runtime PM for OSI, decoupling done. > > Good idea! > > > > > We can choose one or the other depending on whether: > > > > OSI iff: > > - OSI is available > > - hierarchical idle states are present in DT > > > > otherwise PC. > > > > That's what this patch does but we will do it in a unified file. > > Sure, it makes sense. > > > > > > 3. Would it help if I volunteer to help you guys as a maintainer for > > > PSCI. At least for the part of the new code that becomes introduced? > > > > We will do as described above if that makes sense. > > Yep, I am okay with your suggestions, assuming I have understood them correctly. > > BTW, have you considered to host a git tree for PSCI so we can have > changes pre-integrated and tested in Stephen Rothwell's linux-next > tree? I will ask Stephen to pull when needed a branch in the tree below[1] [1] https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/linux.git/