Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp382983pxb; Thu, 5 Nov 2020 02:39:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGJ2Rj4ovCSbgDO87k3HcxCcIfEjiy9VMAKPAqDwqqHv8TE0yqedsVkC8vNWfhAb4jFyFO X-Received: by 2002:a05:6402:370:: with SMTP id s16mr1766734edw.50.1604572744047; Thu, 05 Nov 2020 02:39:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604572744; cv=none; d=google.com; s=arc-20160816; b=b3BOL1WEbY8WhmLM4Z1ViqukLwKo/wdR7SHwZNWWPPHHaCQLgQtC1c7b1syo+VSld3 mQxNlq7GDKgk0dN206BtVilOWIGf4rvA7GNjJoPFLAg57O+pg9ipX3C22iRfC3egg0OZ +oHM7jRUjMLiCirZZ7mUmfgl8n77THCRlBjh6RGwhouRlK8LwTohlPEVzM+42jluU91v f+w5CeF27/+cic2HTLhcLlxDxzNs6DTkqAF4x0fYUi8/xeSuHRg7EWsvGM3iacLUZNFl 6qq1YxRgxBFk2QPf0r4FdHlmGlTdHmsEoe+QplWMdv0TUjvZpkF5LKcs7iv5CRw1swNj aaNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ZdAvLjoOXomWCs8t6TmIL4j/I5mepz3FWTuHztdBTlc=; b=BbvvyP5JLGGCasGCy3M4PkTvRvVHQoXv/OOhDkXsKuxByFpmZNXfsmE3+9Xk72WJAM XwY2TeiIDA99JzoD1nlzl+wq+AmqLOuRh1pZr5gUrEI6zI5wZVgiCyYpJ4TMXHEZXStx qLq9cwELc/JHNS1ruO7E9VR8GUc79QJJoTcN1sVUgOgJApmOae+g2MHMr6VxjtbjJvH0 hD4C/n0Gl7O+ndQcnM+uqyMrdxM8PetlnQRfukHQc4w6yyTqJAhMb2SAP63FunaJWDXd iqJFp8o1P1tisnl62psFoW8KdTRupyz0FAb3ljd4rxxyvB8R0ampibswJLYX0g7tvw5h ng2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BiAiD4e1; 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 w21si800456edx.274.2020.11.05.02.38.41; Thu, 05 Nov 2020 02:39:04 -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=BiAiD4e1; 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 S1729832AbgKEKfG (ORCPT + 99 others); Thu, 5 Nov 2020 05:35:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729662AbgKEKfE (ORCPT ); Thu, 5 Nov 2020 05:35:04 -0500 Received: from mail-vs1-xe43.google.com (mail-vs1-xe43.google.com [IPv6:2607:f8b0:4864:20::e43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9679C061A4C for ; Thu, 5 Nov 2020 02:35:03 -0800 (PST) Received: by mail-vs1-xe43.google.com with SMTP id 128so484941vso.7 for ; Thu, 05 Nov 2020 02:35:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZdAvLjoOXomWCs8t6TmIL4j/I5mepz3FWTuHztdBTlc=; b=BiAiD4e1h7itpTTBhs3DR4K8CfgZymL8qj1e7tZjDyvL22TAbVaJrB6OdCOJ9dCgt8 uMo1WI+cg7RQpxF0bBlJEyznK83VkivtEouWpjXE0uDzswIn9ngEEIWZkBVtGoJKPI5a 3gYONlFV9O8ISMzu91uUEboniTdwBNNIgS1GVf+ZVCHpgeExfkJ3HUKHZ4pHVFwQwMtx 5vGFFB38gJyFP7FBlRczIoGJ/8EUs8e6gc59Rm7O/sKD+Kj4+eFQl2/7R5M52mOjdRQY 23FqbRx5TWg7iDot8DaIDKVfEKsFUNqqGSEPkpoltdKL/CwkFxGm9pZGSMzsaqx/PW9N dskg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZdAvLjoOXomWCs8t6TmIL4j/I5mepz3FWTuHztdBTlc=; b=tAwhwsvfQNzDd5oL9x5frEH/bosmWrlOY4spXZ2Rb5OZY3YkebxHDM04sfxhvunzOy C2B8KjMXFk5F6o9uv6SHZuBSr7vLsa1RvfhF7SrIpmVt7PwqYXkjpPfdjkiNU4AEfwnJ k2a/gqxj0IMp3TU3SsgZyGD4yav12hV1aJlyVh2ThbjwI5l/msgD8qSM7BUqx3kGKlWN bgO0ANbbh8C5JDVB1ah2GazffzAQBlk+anfY83uzBoIetIDScTjSax6tvAGc9yJBQKZV Zr3/6/f+AGbcQhAltFQMIc+6Dw8TnvinVaZh6jdZkB69cDJUsWXsZymNz+dHZsR5PcyA MKtA== X-Gm-Message-State: AOAM533wpQWIybhxli+ybRd06gSyE2Lcqo7PvXLSVITste5LeC7fltwI Nhcr2VKCfdzjHBopXCLsyGN9s64tBoSwCKn3SDdpQQ== X-Received: by 2002:a67:f417:: with SMTP id p23mr725992vsn.42.1604572502741; Thu, 05 Nov 2020 02:35:02 -0800 (PST) MIME-Version: 1.0 References: <20201104234427.26477-1-digetx@gmail.com> <20201105100603.skrirm7uke4s2xyl@vireshk-i7> In-Reply-To: <20201105100603.skrirm7uke4s2xyl@vireshk-i7> From: Ulf Hansson Date: Thu, 5 Nov 2020 11:34:26 +0100 Message-ID: Subject: Re: [PATCH v1 00/30] Introduce core voltage scaling for NVIDIA Tegra20/30 SoCs To: Viresh Kumar Cc: Dmitry Osipenko , Thierry Reding , Jonathan Hunter , Alan Stern , Peter Chen , Mark Brown , Liam Girdwood , Adrian Hunter , Krzysztof Kozlowski , Greg Kroah-Hartman , Lee Jones , =?UTF-8?Q?Uwe_Kleine=2DK=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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 5 Nov 2020 at 11:06, Viresh Kumar wrote: > > On 05-11-20, 10:45, Ulf Hansson wrote: > > + Viresh > > Thanks Ulf. I found a bug in OPP core because you cc'd me here :) Happy to help. :-) > > > On Thu, 5 Nov 2020 at 00:44, Dmitry Osipenko wrote: > > I need some more time to review this, but just a quick check found a > > few potential issues... > > > > The "core-supply", that you specify as a regulator for each > > controller's device node, is not the way we describe power domains. > > Maybe I misunderstood your comment here, but there are two ways of > scaling the voltage of a device depending on if it is a regulator (and > can be modeled as one in the kernel) or a power domain. I am not objecting about scaling the voltage through a regulator, that's fine to me. However, encoding a power domain as a regulator (even if it may seem like a regulator) isn't. Well, unless Mark Brown has changed his mind about this. In this case, it seems like the regulator supply belongs in the description of the power domain provider. > > In case of Qcom earlier (when we added the performance-state stuff), > the eventual hardware was out of kernel's control and we didn't wanted > (allowed) to model it as a virtual regulator just to pass the votes to > the RPM. And so we did what we did. > > But if the hardware (where the voltage is required to be changed) is > indeed a regulator and is modeled as one, then what Dmitry has done > looks okay. i.e. add a supply in the device's node and microvolt > property in the DT entries. I guess I haven't paid enough attention how power domain regulators are being described then. I was under the impression that the CPUfreq case was a bit specific - and we had legacy bindings to stick with. Can you point me to some other existing examples of where power domain regulators are specified as a regulator in each device's node? Kind regards Uffe