Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2013274pxj; Sat, 19 Jun 2021 00:04:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwWkosptaS0ROeFy1ZuRlqznmgfZdlA07GUy5804iaN+3yiuzoNY3v86HtomfueNhHOQQB X-Received: by 2002:a6b:590e:: with SMTP id n14mr4310262iob.186.1624086242227; Sat, 19 Jun 2021 00:04:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624086242; cv=none; d=google.com; s=arc-20160816; b=s7QmQUJAwxowOiMfT84sxTs2axlKk0U8+ZZTjFYIDODUjKXD3UXxuuwv53ekG+nOl4 X4u+vfS8SChgSZsiPhZUHzGGwzBzWB12NomucLBV9dnlexBK2/MNlcq5qaTMumCrYl4/ Q1TUr5EUQunwf6w81nEt6GyKd0s4mRv5cO6T28zONK3TQtm8Qkp1Kl0Z3auQ5AXPYP06 gWT34Cw1ZZ7Xy5wWpFIMcalo9QhWkDYwymwqJGz5QfgrruyXNgADS4VQPdiy18lwaFsW UlC1e8at/lU5J6YkEYHoVy+3BH9Pllr/MIitGBujMqJKXrk//h3W4weD7nyuaoAs/A4M jSEg== 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=HEAuigaKYRmeY+WM5XLEktX0+rBVmYO66uMcr8Tpv8k=; b=tgtL5z6B/NwZARr8AziPo+lDM5bX/y+RccO9hTQuSTYP2wUbahPc5HjFOd76WRsorQ PAPcN0ceOEFdp0sd07YSMzICltaD4GBnAcx05CRcagD84MJGOPhizgN6+T7Eg9F5dq1j M2UrZKZBtKxfFjXxJaKsS8YXZgPu13Ok4qvH7griR4i9wYo/afMz7wcXiCFks97axdPr 7/heAYfz2pBiGn66SnHkXMuuLumPv+NYWiG/lR04uhXQ+A6UZ7DaJ+UFbeJtq2QD+szj l7QSdW3hyMHI22PqMLKnEi0GD9v3yrM9/PFgcF409L3wQ8Sm/d7IwMAnp6itbhSYAHW3 I/aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qKuYzrv6; 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 h21si12068093ioe.3.2021.06.19.00.03.49; Sat, 19 Jun 2021 00:04:02 -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=qKuYzrv6; 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 S234615AbhFRVoF (ORCPT + 99 others); Fri, 18 Jun 2021 17:44:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234626AbhFRVoD (ORCPT ); Fri, 18 Jun 2021 17:44:03 -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 4F1B7C06175F for ; Fri, 18 Jun 2021 14:41:53 -0700 (PDT) Received: by mail-oi1-x22a.google.com with SMTP id t40so12077382oiw.8 for ; Fri, 18 Jun 2021 14:41:53 -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=HEAuigaKYRmeY+WM5XLEktX0+rBVmYO66uMcr8Tpv8k=; b=qKuYzrv6j4NzmU3yjTgh08cBfgpCmtwmdOO7VGZ7x0Wpyin21OENhZDu7wYnqoPHs0 HSf75CkxWeZDgoBEaPxChHYUt5+6a/LZp+UQfFNLL72O/1pm3JfnKtHcimfPf1wvGFsK poM9I5TIeRpi+AimpmuU9P+DEjUlJCP5DvFRLmNJ3ohBlA38DBiGpq/qbXooI+RTeqE2 QEZBQesKMQb1KSBaVQP/GcKcH5JDJNePOIK0Tjz2UnVD/BrvTieA7bjgoJJ7mSpQILtx pegolu/d0kmopoCrWrq8d+aWTjSm/xsplTaxmVBEc1adWHwRzLxv8kFO639cXh2f2XTX R9Uw== 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=HEAuigaKYRmeY+WM5XLEktX0+rBVmYO66uMcr8Tpv8k=; b=EqEPqVI0T/KmcLZ3xdTtGT1kFk+JAFzl5rghvuSZ3Vd/Y9O8hmTTi7tndEvLT6kj9R WYXgpjalMAHQlGZeOyh4JmBWKUkeyjQME8JqVUKDNVRljMXQ2g4tMx1mgNVFLM9Xr64j FEdu7j2KUjjyoGvn0lXhlHbbbwyWc/y4oLFUBBtoCh7k1UyI+MJf3o+MKedNcPMHM+OH 4WyysNwk5+/QEVFoBRFzLqKJjP6CifrYgptE36hn+Yg1Cw8K/k/2ah/OWRtrqAT3o8Ru XrwoTGGfsAOA9KXnsLu0Z42hypgqPvlDSQOiukq+iHMrgLuoZ36XvRqJHwF67rMi9rkn G/Uw== X-Gm-Message-State: AOAM5326HLMKsgEDwqkexc958VqxN8bBAKggv3MjHckyL24pQdRiy/sh X7pP0Fmgp4IYXbFgHHn9ePYWXQ== X-Received: by 2002:aca:de07:: with SMTP id v7mr15863677oig.8.1624052512628; Fri, 18 Jun 2021 14:41:52 -0700 (PDT) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id 94sm2251023otj.33.2021.06.18.14.41.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Jun 2021 14:41:51 -0700 (PDT) Date: Fri, 18 Jun 2021 16:41:50 -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: <21dc5c9fc2efdc1a0ba924354bfd9d75@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 Fri 18 Jun 15:49 CDT 2021, Stephen Boyd wrote: > Quoting khsieh@codeaurora.org (2021-06-10 09:54:05) > > On 2021-06-08 16:10, Bjorn Andersson wrote: > > > On Tue 08 Jun 17:44 CDT 2021, Stephen Boyd wrote: > > > > > >> Honestly I suspect the DP PHY is _not_ in the CX domain as CX is for > > >> digital logic. Probably the PLL is the hardware that has some minimum > > >> CX > > >> requirement, and that flows down into the various display clks like > > >> the > > >> link clk that actually clock the DP controller hardware. The mdss_gdsc > > >> probably gates CX for the display subsystem (mdss) so if we had proper > > >> corner aggregation logic we could indicate that mdss_gdsc is a child > > >> of > > >> the CX domain and then make requests from the DP driver for particular > > >> link frequencies on the mdss_gdsc and then have that bubble up to CX > > >> appropriately. I don't think any of that sort of code is in place > > >> though, right? > > > > > > I haven't checked sc7180, but I'm guessing that it's following the > > > other > > > modern platforms, where all the MDSS related pieces (including e.g. > > > dispcc) lives in the MMCX domain, which is separate from CX. > > > > > > So the parent of MDSS_GDSC should be MMCX, while Kuogee's answer (and > > > the dp-opp-table) tells us that the PLL lives in the CX domain. > > Isn't MMCX a "child" of CX? At least my understanding is that MMCX is > basically a GDSC that clamps all of multimedia hardware block power > logic so that the leakage is minimized when multimedia isn't in use, > i.e. the device is suspended. In terms of bumping up the voltage we have > to pin that on CX though as far as I know because that's the only power > domain that can actually change voltage, while MMCX merely gates that > voltage for multimedia. > No, MMCX is a separate rail from CX, which powers the display blocks and is parent of MDSS_GDSC. But I see in rpmhpd that sc7180 is not one of these platforms, so I presume this means that the displayport controller thereby sits in MDSS_GDSC parented by CX. But in line with what you're saying, the naming of the supplies to the QMP indicates that the power for the PLLs is static. As such the only moving things would be the clock rates in the DP controller and as such that's what needs to scale the voltage. So if the resources we're scaling is the clocks in the DP controller then the gist of the patch is correct. The only details I see is that the DP controller actually sits in MDSS_GDSC - while it should control the level of its parent (CX). Not sure if we can describe that in a simple way. PS. Why does the node name of the opp-table have to be globally unique? Regards, Bjorn > > > > > > > > > PS. While this goes for the QMPs the DSI and eDP/DP PHYs (and PLLs) > > > seems to live in MMCX. > > > > > > Regards, > > > Bjorn > > > > Dp link clock rate is sourced from phy/pll (vco). However it is possible > > that different link clock rate > > are sourced from same vco (phy/pll) rate. Therefore I think CX rail > > voltage level is more proper to > > be decided base on link clock rate. > >