Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4474560pxj; Tue, 8 Jun 2021 15:31:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFpNSZWmOUleI8UyyoBi0K6WU7xda7lp+FvE1z1SxSv+FuI5EJLqtwe/YsvjcETvmpVHq1 X-Received: by 2002:a17:906:8810:: with SMTP id zh16mr25122608ejb.268.1623191481563; Tue, 08 Jun 2021 15:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623191481; cv=none; d=google.com; s=arc-20160816; b=mlt2EKwPIb9+sDVRji+m3P5XTQVjhfPvprjh7exvJKUaK87HczIU/TXNncdLTTgHvY 5j3s8Vi3ew+6BWm/YMGfvcLGurOYgfy1K/iYoGeiSCV30qpLSoSKz2redqvtIaqfrQgt DWnEdG9NyC99kiBMj+m+C7YUke4Zs+XAeMrm+F6Gd3ntG9j1+tY+/BAnfZmVUw572V9t sNsbM6n3mEPmmM1IWPJUivqtyHf0sV8sdzXfuz9dH5gY97iTYZeAGQr1w6oaNYPzxVmF /EiiMPF5tlvgGBTVEOpUZopXUzzilK0GYVHvrwD8Mgfwqe4wfYrR8pKpHTFzdlTsx9jJ 4pQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zEVt4/c8lCCNqBGSoq0YIzdJWJUhrx9cSDWBmiuwl3Q=; b=Lt1qi5jNo71rTMNYATJ7KeAnC/6VhaMCGTAaXT/cSVILioVCWXikyNM+0F6ZHrx9v/ cOwWECAljXHGB5r7x/oecs7Ir6HUwKCIEx05m0lE31G4cUG+0XkNj52z2bR+B1f59W26 GlKLNRBENJkZ1cn2cgRJuTyg1VSbxHCNJhhiMcjP4HcYghYtw26M4OIRKCjRr+BFJyX9 ESfSInHmj5hV2RSTXQWDVNujeFmhwPgK/nDC1988Oqww6kxU3uUBmRiRr3nPR4Ei+nqN ryh6NQ0m+WxRqyhenSZN08R9Mfu6SIIKDvxjCOLupg0LFzDr81iLHB2BFjeG4aU7mka9 gcwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NH6AZogF; 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 l20si720323edt.377.2021.06.08.15.30.27; Tue, 08 Jun 2021 15:31:21 -0700 (PDT) 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=NH6AZogF; 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 S231208AbhFHW3h (ORCPT + 99 others); Tue, 8 Jun 2021 18:29:37 -0400 Received: from mail-oi1-f172.google.com ([209.85.167.172]:39661 "EHLO mail-oi1-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbhFHW3f (ORCPT ); Tue, 8 Jun 2021 18:29:35 -0400 Received: by mail-oi1-f172.google.com with SMTP id m137so19278995oig.6 for ; Tue, 08 Jun 2021 15:27:27 -0700 (PDT) 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; bh=zEVt4/c8lCCNqBGSoq0YIzdJWJUhrx9cSDWBmiuwl3Q=; b=NH6AZogFTIQAehx/IPJIZOXHKcbR97a4hXmH6UkB/RAObPSx36Jr3192QR5zz0LElg f2CIKAXSbtyBoOLzBhMxymkjtlX1xv7CdXR2AgWkLMnKsbKGOeKJqo+qy2fW7eDeSUZ+ nLly6tGwsNWtUB8HIjIcNqDOT6mkTyoR+vQu5zqDpnKOmfrmvwovSdrK5AUE7M/UwocU UO5jq+xGroaF9jYF3IPq1uU8QDyxsMTJFzG9YH9TgOCpJtZdwzXpjUoZDILJr4/RQwi+ JEo4j79a8NqXyDatfB+zWaCMe6wVX6qMzibu7XI+H7KAg/TFN8sgiKphtClFLqbgLzMi L2kw== 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; bh=zEVt4/c8lCCNqBGSoq0YIzdJWJUhrx9cSDWBmiuwl3Q=; b=OB080zEvcnpOx6I9sVQMzAus7qRSEbCyMQuSlYQihl/TPhZNJ0JpybCoQ+Pg8EMY+6 ZFoK8A/njLago416/0sTlOJTGryilsgyaevFsJcFC6++QI9qLsB0Wh2jNHTlhUfqjHQc adXqD3oNFKGTP7pZvb0irLylVs3a7Mbdue7mmNBxoUnxfYPO/GGVPr46N4pAxsMmZN86 vsMEzcLeNK6CwKGuiGtTNN7N0b71+OXNd4hmnnHojfrbUCIA0BB90En+Tt/4Heojo3la T8PitD8oE5op81rIDqSheuK0T7MdWcuQULdsPnvorsOTCariwLgCgg08AmKUJG5Q76zb a5mg== X-Gm-Message-State: AOAM531+gshXFFbJAJqZ24zt+tU/TarwY9susa2TE9Q2mTZVqJvXW4o9 LprUWQ1xZKKoQJppP0LJ/hX/Tg== X-Received: by 2002:a05:6808:195:: with SMTP id w21mr2463312oic.7.1623191186987; Tue, 08 Jun 2021 15:26:26 -0700 (PDT) Received: from yoga (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id f25sm1043989oto.26.2021.06.08.15.26.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 15:26:26 -0700 (PDT) Date: Tue, 8 Jun 2021 17:26:23 -0500 From: Bjorn Andersson To: Stephen Boyd Cc: khsieh@codeaurora.org, robdclark@gmail.com, sean@poorly.run, vkoul@kernel.org, agross@kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, abhinavk@codeaurora.org, aravindh@codeaurora.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] arm64/dts/qcom/sc7180: Add Display Port dt node Message-ID: References: <1622736555-15775-1-git-send-email-khsieh@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 08 Jun 17:15 CDT 2021, Stephen Boyd wrote: > Quoting Bjorn Andersson (2021-06-07 16:31:47) > > On Mon 07 Jun 12:48 CDT 2021, khsieh@codeaurora.org wrote: > > > > > On 2021-06-05 22:07, Bjorn Andersson wrote: > > > > On Thu 03 Jun 16:56 CDT 2021, khsieh@codeaurora.org wrote: > > > > > > > > > On 2021-06-03 09:53, Bjorn Andersson wrote: > > > > > > On Thu 03 Jun 11:09 CDT 2021, Kuogee Hsieh wrote: > > > > [..] > > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > > > > [..] > > > > > > > + power-domains = <&rpmhpd SC7180_CX>; > > > > > > > > > > > > Just curious, but isn't the DP block in the MDSS_GDCS? Or do we need to > > > > > > mention CX here in order for the opp framework to apply required-opps > > > > > > of CX? > > > > > > > > > > yes, > > > > > > > > If you want me, or other maintainers, to spend any time reviewing or > > > > applying your patches going forward then you need to actually bother > > > > replying properly to the questions asked. > > > > > > > > Thanks, > > > > Bjorn > > > > > > Sorry about the confusion. What I meant is that even though DP controller is > > > in the MDSS_GDSC > > > power domain, DP PHY/PLL sources out of CX. The DP link clocks have a direct > > > impact > > > on the CX voltage corners. Therefore, we need to mention the CX power domain > > > here. And, since > > > we can associate only one OPP table with one device, we picked the DP link > > > clock over other > > > clocks. > > > > Thank you, that's a much more useful answer. > > > > Naturally I would think it would make more sense for the PHY/PLL driver > > to ensure that CX is appropriately voted for then, but I think that > > would result in it being the clock driver performing such vote and I'm > > unsure how the opp table for that would look. > > > > @Stephen, what do you say? > > > > Wouldn't the PHY be the one that sets some vote? So it wouldn't be the > clk driver, and probably not from the clk ops, but instead come from the > phy ops via phy_enable() and phy_configure(). > If I understand the logic correctly *_configure_dp_phy() will both configure the vco clock and "request" the clock framework to change the rate. So I presume what you're suggesting is that that would be the place to cast the CX corner vote? > By the way, there's nothing wrong with a clk device doing power domain > "stuff", except for that we haven't plumbed it into the clk framework > properly and I'm fairly certain our usage of runtime PM in the clk > framework today underneath the prepare_lock is getting us into trouble > or will get us there soon. On the bright side, it's wonderful that we're at a point where this is not only a theoretical problem :) Regards, Bjorn