Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4896649pxj; Wed, 9 Jun 2021 04:43:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUsxcsEuTBR/dpchucW97o0pBAxX7gbte7QhQWh3CkUkT77HSZvev0GNQHwg+YuhzCsZDR X-Received: by 2002:a17:906:2612:: with SMTP id h18mr28455150ejc.417.1623239011244; Wed, 09 Jun 2021 04:43:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623239011; cv=none; d=google.com; s=arc-20160816; b=v63Uw1R3eJc64BqqP/cChOtjGRsLG1DGBc+cRxhyAN8Hse9Pi3E/JUhmqKj3vA4n4z WMvRQed+HHXD5mh/ML3xV6kZ3NTp5LEV/nBw9jHi32eqUgEF3p0bCu8AHoSctR9AgjmN 3LCgLAPXFBMdxOQ1Amg4goCtF1EVJVNvN0evHDKbWtcFGOOvsP8dqmyfsWQjEk3fkknV ZWPuwt9+E0dIR/ZHOjb6w+WqgxYsfvnMSTY/vL1UQWKUWGkqW5umJVBbZttjY0fz0OHJ GUTttpYE04E3bIcPMV4lWNU/MGuck5Yc1A2HpqrSmN8zhynYFM7XM6sHpnGbSqBIZx+x OdXw== 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=Z2cNfvcQAcy2ANvLLjZJjzEI5gApw88qpo9VFjprV7o=; b=i4ed/B6yt8KS9VTL5efFOx/Qy89q0141e+UFb8u9d+KTNV0/8g/cejIo8jtgulifwc d6ka0B72y8WIZ+lgfOBgIE+wGGDT2m87fMXNOO7mx55UIjXbiEX0DHicOatVFZThqjvK FGA/M2D1E12MgXNHwMl1ba1foADcKclspkOEHrBp/RjzQGa6UsF92CVB/vFJB/kKs3im LoTDzd0eLP14UxCoJ73eq7M2VOzDa4DfPzXJ8QoDhFHAb0bJ//cizJpPdSGY6XfOfL6y k24CCsY0mID2Wo20hXbDaTmMaiBDQFjFCiUSAyKXiMsxMcPNed1RbUV7RAEg+mgfDQnc R6XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hjV9Lzd8; 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 cm8si2099886edb.480.2021.06.09.04.43.08; Wed, 09 Jun 2021 04:43:31 -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=hjV9Lzd8; 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 S234282AbhFHWgP (ORCPT + 99 others); Tue, 8 Jun 2021 18:36:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234323AbhFHWgO (ORCPT ); Tue, 8 Jun 2021 18:36:14 -0400 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7749BC061795 for ; Tue, 8 Jun 2021 15:34:04 -0700 (PDT) Received: by mail-oi1-x22a.google.com with SMTP id a21so23210729oiw.3 for ; Tue, 08 Jun 2021 15:34:04 -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=Z2cNfvcQAcy2ANvLLjZJjzEI5gApw88qpo9VFjprV7o=; b=hjV9Lzd8YhaXBZN4GSOiJj40wzj9SDuNYxR2HaFBNfEVbp/fQ5cK4tOioLD1X2OUX2 uYtdPK9q3irwTJJqg/aeChzTLLyMK6ustvInbvS23aX7mlpNB1Ye5eyVlTPZoa8fYIPE yaBQB3exJuY5ybsKj4A4UqrXO/+mqlt8hQpr+2krKZgAQDOUIEOPoyeF9AH9hOyKfdjx ARRBaoXTJv6GvOyeSJSr3gOmCOpO99VTk0MlRCnc4e/w/Kqg0lDhu5r5PfOV00cK7yWF fculQdbq+XRPqnlZXSxCd6Qh9BlnoR4Cu+81sCuK7eoPiA7g8RAHZsTibg2Wi6ibvWX0 hM/g== 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=Z2cNfvcQAcy2ANvLLjZJjzEI5gApw88qpo9VFjprV7o=; b=eboIGdYCbfsG0N+jL41v+VjX6LKr1vkj2pAARAdd1e8Co5a2Ag5jZk4+1jlA5lQBQ2 zPTif9QR5WmNZUR1Mmdtb2z9kjUy8ajisI6FJBC5qsR+fxg+2DT+hDC9Cg2dCKdCiJ1w bnLx3//8Nbz39cPu6sFLb0R1FldRZZI1d6VZCy/v3+kypEQO1lkKWfTKuh7ydYJ2NsTI sWZT1XXrFNSIw870wX3NoDWqWKyAqeWH9iDaLJexLRz/STT5ptqrDvaW1PNjxvbf1FcQ 3LWfkXNS6R09FBqn86pcboLo5V3AivR2R8rtnOcFDg2pJKpfbB1rHEc4WHd3Jus9eHX4 WO8A== X-Gm-Message-State: AOAM531tRnWOGxT5Zb0nhU834WAn6inREK/Khq6oluTT6Tc0sOm4DxF9 UhLigkcgpp4GvpU2ZtUYEbj1Ug== X-Received: by 2002:aca:1b0f:: with SMTP id b15mr4150593oib.178.1623191643760; Tue, 08 Jun 2021 15:34:03 -0700 (PDT) Received: from yoga (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id e19sm315895oiw.24.2021.06.08.15.34.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 15:34:03 -0700 (PDT) Date: Tue, 8 Jun 2021 17:34:01 -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:29 CDT 2021, Stephen Boyd wrote: > Quoting Bjorn Andersson (2021-06-08 15:26:23) > > 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: > > > > > > > > > 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? > > Yes that would be a place to make the CX vote. The problem is then I > don't know where to drop the vote. Is that when the phy is disabled? We do pass qcom_qmp_phy_power_off() and power down the DP part as DP output is being disabled. So that sounds like a reasonable place to drop the vote for the lowest performance state. Regards, Bjorn