Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp367031pxb; Thu, 5 Nov 2020 02:07:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfHvCkJNcwkbq5QrbyGgpPQmpOqfprReNh2p2ql0Ss2+luK+/j05pC8nL0UoZMKKZYvNf9 X-Received: by 2002:a17:906:a098:: with SMTP id q24mr1453666ejy.191.1604570871863; Thu, 05 Nov 2020 02:07:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604570871; cv=none; d=google.com; s=arc-20160816; b=shQzp8gZdqtiUL/bW4GEaYJ585oPO+tyJ1X/a9YyHilyhmVGxp1vCj5b+CamshUdoy yB8StuSRpQAQFFFHpmROw0TaahZPeDT0svSW8reLSVB/Aj7IeWo0hXnA9UuEEoE8yO9F DbXJnqqCPLDkCn3VDvFRxEpHTGLeXxuFhQTkYYJfbgk414JPjCEJ07tVWjUTffVrfY7B JQPKVGJJ3Ug0O8GK9jHw4aagFj3a8bTnZ7IwPB0IjyYvt/cUxVvV3Y53jEkEEL63Wrhi dgP4xVe5xjUkXGZ0YGGdgXC0WFEJsdF1+VIwlAWSXLHijWFri9kmGMgX9t3WB9GVzCp0 xDeA== 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=eGW1ILzr61LRI7Nn5j3Px4Z853itoyrKaaACPPuanD8=; b=atq/4Hlnl32hiCxCJg03sZ/Y7AKGumEpm0kMJRrBtnuxPJGxMul4ZLEtEiAU5lGSlF YeN6GT4iLYub07buBoAtwEOb0moUvrOQ/yb5shZzC9DkMJ23fZxq9MKlsxdJiFNqH1XA jlHgGbNHlRZLUHBRzDt54nS0Dp492sqjiJpYWFY98G7fuMjdZJiSTvWn7zS2JHS16UeV PIugoRWA0WQv0SU7NSKspBvfrFH/iryQkYUep1v/N5VPjHoyzBuShmrPfTw23p6JLem+ YlyZRQuO+9UqtYsCW6XPyNI0fcl03wp3tGIJ9EIbgqHGDPM35+BuZcp18Y+JWHS83shQ iYIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AwkPgeKN; 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 a18si827386edb.306.2020.11.05.02.07.29; Thu, 05 Nov 2020 02:07:51 -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=AwkPgeKN; 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 S1726996AbgKEKGI (ORCPT + 99 others); Thu, 5 Nov 2020 05:06:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726715AbgKEKGH (ORCPT ); Thu, 5 Nov 2020 05:06:07 -0500 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34F14C0613D4 for ; Thu, 5 Nov 2020 02:06:07 -0800 (PST) Received: by mail-pg1-x543.google.com with SMTP id z24so1083837pgk.3 for ; Thu, 05 Nov 2020 02:06:07 -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=eGW1ILzr61LRI7Nn5j3Px4Z853itoyrKaaACPPuanD8=; b=AwkPgeKN8JxD5DofrhKKvVmK4cvSq6debaCUoSYPEqvE49cn04nt/Ohj9eefgHf9TL aIx6rKXj0///p0JGjzTLdfu2hmMAvQApkss/uH/gSZkh61VO6pZ2ylsM9Il/53KW7LGl IUDWHNviUCd6hnxXLRNUeX3Y6HNhSHtWwbsLSi36WRlNoTuyeXeVCGre4buS3NdKlXZ1 C93L+wYAB2E1lwHrDLcQqvzcXv151CIyLt/YY5KfH9h0bSL8R2KSSrdlcms3OAEXEAQn s+1SmPefG0RRF/HzCmYyPjNZRXZ/yeV4tDx9EOD1LS9Yd2qnGpLlBgdhBvWMqnBFNCh+ Memw== 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=eGW1ILzr61LRI7Nn5j3Px4Z853itoyrKaaACPPuanD8=; b=bzlFx1VWwaoh5dJI0gyUJeK/MpVeYOtzV4AezFFvq6fRB4beAKesLr9E66mzxbtFqY Q90yOw3+n4DoU7OaEDKEO1qNHqetLLyK3fuEcgHjdANYHhlfoOetCz4yXeMwj221MJ2B izO2PNIfFtPUMFB2mXaimykiSNXoKou0nvxpHdV02wZ8O0xC0SrfyUMOhZzcrtOXMHSO XZUdTI6vbiWL57HTY4GeQwn4AYZy+XgDbdMHAvmPyQ4SS9vthBVIwAXN4gcL+mlv8d4X 73i10rRuKW7l/35K1JI4JXpcq9PpMBc1JfGUjy6Yd8bN2zgluNet9rLPuLd1y0MAl7qF wjEA== X-Gm-Message-State: AOAM532vSgwPLh0je4VUKMIWn4sX99Hued0/vTWgS4+n+NOVFQ933Xo/ tz6YoNJ9pKAx13+QwvhK7BUDdw== X-Received: by 2002:a17:90b:ec9:: with SMTP id gz9mr1700784pjb.105.1604570766580; Thu, 05 Nov 2020 02:06:06 -0800 (PST) Received: from localhost ([122.172.12.172]) by smtp.gmail.com with ESMTPSA id s22sm1813783pfu.119.2020.11.05.02.06.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Nov 2020 02:06:05 -0800 (PST) Date: Thu, 5 Nov 2020 15:36:03 +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: <20201105100603.skrirm7uke4s2xyl@vireshk-i7> References: <20201104234427.26477-1-digetx@gmail.com> 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, 10:45, Ulf Hansson wrote: > + Viresh Thanks Ulf. I found a bug in OPP core because you cc'd me here :) > 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. 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. -- viresh