Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp404426pxb; Thu, 5 Nov 2020 03:17:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwsZc/pJUYqFIWA3SsN4SeVkM1S1CN8yoU46oYZdjY3JTNSIczCueaWug2ixaELD0Vle/A X-Received: by 2002:a05:6402:7c7:: with SMTP id u7mr1481379edy.351.1604575049745; Thu, 05 Nov 2020 03:17:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604575049; cv=none; d=google.com; s=arc-20160816; b=ieuwCVKVirQBLP64+f8TG81SbRKZWLu7jPcVdFZAuoDgeuw8fkxDgRH71nkjjAltEX RzGVMLMFWzVbI9b+S69MJ5VpievEQxTpdHRVahvllnu5I1Dvx8bWk5ZZkAI+kxh6be5Z lLVrobsTk2fme+WKSdPc/hawGzU1Z5d0GH/HFk1RWR79sITc7OsyEsinpYgARbNgIFVm SKkC0IgerZHf4Lyls+Ps5bltCqPMutDuaNtvjnmZzeZNbWzNkHPxgvRRGhii2bPbx0qf Srpdz/Xw1YN79HunVEixCimu9x4YETDH3Yqq3QCg7YcxLAo4+Hd7UHDwUCz/ee1jqke/ LGbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=BcYYFtNRltYDE4hy/KAkGjdjtprJ1Trm7OKV+MnN8cU=; b=S58i2o71/g7hKUrLU9oX4eNtt/pTnlcyXJe/X3+aCn0CfcsNlLxTYdi0qvodQHYL7a 8QLV+5QLMHUWGKUE27qaFuo9owJjA0KyA+qs9rsf3U8o0T0OkOVBTH2QfeHwL10Epr6k v3vxqgCEFO2mYmePCWhEPnIGLf9WRx2glHZReR3vMFj3YdYIXftFWH1NGMTyEvyTPnvi u7JINbbv1H3JPY7SbXltqx9JwfZIu/4b+RIldsacpcwjCmcVaFf/XnNXGBmOaC6E5UYb S91yZjwzT+2fw4kjsfiiaSFw/L/IKkh34q7upSwow19XVn80Ii9JlURXZPjmnd2F5Kg2 K7FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u8YwcS6h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u20si822114eja.75.2020.11.05.03.17.06; Thu, 05 Nov 2020 03:17:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u8YwcS6h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730129AbgKELNI (ORCPT + 99 others); Thu, 5 Nov 2020 06:13:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730073AbgKELNF (ORCPT ); Thu, 5 Nov 2020 06:13:05 -0500 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F430C0613CF for ; Thu, 5 Nov 2020 03:13:05 -0800 (PST) Received: by mail-pg1-x541.google.com with SMTP id t14so1219474pgg.1 for ; Thu, 05 Nov 2020 03:13:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=BcYYFtNRltYDE4hy/KAkGjdjtprJ1Trm7OKV+MnN8cU=; b=u8YwcS6hVr8BwxXTTAlNESEmEgsS3lF6OTr1XaUbam4I/edC3qndBdjg6Uy8iz2Q4Q hYlNAs1/XTw3soHv/si3tXmCczuo3mNDte6nlbwM878k4WF91kDK1iYVRDtibkoROSKj yjfCZIqB3MO3ncbEJATqL58LXrnls4IqwABwbbGOdNIV9RGTDrMZptXqbnjj+V1N6WqI HBRHng10F8RPuKJ6CJ1uCINPNb6xUgsC8CsubJFIRFcKAf9XUt6Zu0y7tcW3MCJO9JyS huRJpus5BnMDQprBpyeMBR2Zh8O7Sqy9/tsu93YAUw3ok0YtILTEkI4ZmB3ZgeuvMkLC Ze4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=BcYYFtNRltYDE4hy/KAkGjdjtprJ1Trm7OKV+MnN8cU=; b=cmnMyEbTRcjcU/lX3wO41gaZ0X4dJ+7xmHbiLMKxc/DZ4QtcYJltvTNgBxIYoxMCBH j9HXJWxHNxmuZyGoqrpkkQuNK/g+JApzUq3TEH8/qQgUv/aEWr0dBduCSzqRELIbGOIS domtplaBuJy32E/TSiA3DtAqBLeOWJGbN2CdnEOc9dqdtZpsQmB+rf6YHebYU/Cj6WAo ytmc2n4BbxIqgZNInt3S5/97iDyQcgl/lkmfzSZrVWMEO4JjEU2R7I8uSlx86lJ9Amd0 3d7Hh3hx8amZNEP35kvEuENIJXpBzDkFKLXignU8HxeB5SS/cUFHCwnlJd8Ukia56i9Z a/BA== X-Gm-Message-State: AOAM5313kGqBlbkzXqKnYGCGmkHq1MqHSLjWYWiZDUfX1K0KzhprgWhV tgcQBbMLxg2DiVWWg3Q0nMvXeQ== X-Received: by 2002:a17:90a:e391:: with SMTP id b17mr1925329pjz.209.1604574784247; Thu, 05 Nov 2020 03:13:04 -0800 (PST) Received: from localhost ([122.172.12.172]) by smtp.gmail.com with ESMTPSA id f204sm2296698pfa.189.2020.11.05.03.13.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Nov 2020 03:13:03 -0800 (PST) Date: Thu, 5 Nov 2020 16:43:01 +0530 From: Viresh Kumar To: Ulf Hansson Cc: Dmitry Osipenko , Thierry Reding , Jonathan Hunter , Alan Stern , Peter Chen , Mark Brown , Liam Girdwood , Adrian Hunter , Krzysztof Kozlowski , Greg Kroah-Hartman , Lee Jones , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Mauro Carvalho Chehab , Rob Herring , Marek Szyprowski , Peter Geis , Nicolas Chauvet , linux-samsung-soc , driverdevel , Linux USB List , linux-pwm@vger.kernel.org, "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , DTML , dri-devel , Linux Media Mailing List , linux-tegra Subject: Re: [PATCH v1 00/30] Introduce core voltage scaling for NVIDIA Tegra20/30 SoCs Message-ID: <20201105111301.2hxfx2tnmf2saakp@vireshk-i7> References: <20201104234427.26477-1-digetx@gmail.com> <20201105100603.skrirm7uke4s2xyl@vireshk-i7> <20201105104009.oo4dc6a2gdcwduhk@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05-11-20, 11:56, Ulf Hansson wrote: > On Thu, 5 Nov 2020 at 11:40, Viresh Kumar wrote: > > Btw, how do we identify if it is a power domain or a regulator ? To be honest, I was a bit afraid and embarrassed to ask this question, and was hoping people to make fun of me in return :) > Good question. It's not a crystal clear line in between them, I think. And I was relieved after reading this :) > A power domain to me, means that some part of a silicon (a group of > controllers or just a single piece, for example) needs some kind of > resource (typically a power rail) to be enabled to be functional, to > start with. Isn't this what a part of regulator does as well ? i.e. enabling/disabling of the regulator or power to a group of controllers. Over that the regulator does voltage/current scaling as well, which normally the power domains don't do (though we did that in performance-state case). > If there are operating points involved, that's also a > clear indication to me, that it's not a regular regulator. Is there any example of that? I hope by OPP you meant both freq and voltage here. I am not sure if I know of a case where a power domain handles both of them. > Maybe we should try to specify this more exactly in some > documentation, somewhere. I think yes, it is very much required. And in absence of that I think, many (or most) of the platforms that also need to scale the voltage would have modeled their hardware as a regulator and not a PM domain. What I always thought was: - Module that can just enable/disable power to a block of SoC is a power domain. - Module that can enable/disable as well as scale voltage is a regulator. And so I thought that this patchset has done the right thing. This changed a bit with the qcom stuff where the IP to be configured was in control of RPM and not Linux and so we couldn't add it as a regulator. If it was controlled by Linux, it would have been a regulator in kernel for sure :) -- viresh