Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5025847pxj; Tue, 22 Jun 2021 13:24:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwM8za9qgBJ1Vtgh6Ku+lzuEqplwW7oSM3JazjXWSO92pqr3qyHMV4tqTTyB0RlzDQX9b90 X-Received: by 2002:a05:6402:10c6:: with SMTP id p6mr7525106edu.332.1624393472880; Tue, 22 Jun 2021 13:24:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624393472; cv=none; d=google.com; s=arc-20160816; b=o99ayog8TOc390KbeMm8YUsfz2JtvQAGwWpI6wzZsZdDyJOgRcoiA56jEP3XtjQDVH 9rWdnjJAAsEW81Ouq6v4ryxULlrPG6w2QX9CdxYCZ2CWo1EjCpI0dIYuWXbJpRnOyb+o yUGNQ7KCR8AtOQYp5JEKCkEzbDWmuw6nnal7h8KMGcdZ2jNisjH0owSWSz/3jykLUxmb otJvM1dPHihurUDcc3RpYOi0iD9NL2EGydAZJ993nAU2htYf8OcXHDkhyoqO6VaMp3Lj XSwz4Ml/7FVweG8vMogV4tC5onVj/AXeA8xUaiHvbVrLVMSMXVelCkM497nFQjWossie zFYg== 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:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=Ggw6fsmku27vHRmfMQszrNre4+RfK7j3PrPkaoOAI5s=; b=uWB8BJRqxkkY1gn9bEVyAkqBPm6IwDfIeWXt2w3glJndweCDHL0AERJ1zyQ3b3JRJe xZ+fFPmIxjh1NJLhgJjz5g2AYqfjEliO0DVuLFK+08FYKFxnamSDfEkOlTOfUql8spkb XPyM7im3bJfLs7V1AL3AgTnTlCyp0uoZHfHivVfY6kuqTgXRSzW5jX4GvVFwqIzrT/t5 4qZAerFsV+fzqnXLUoP5h0hVk1M4GxdPV0Gad6OzSq5uMTzJMqrSuKbGHCQlg9SctkrO Zm0cvlv462xhqfXWS8xjpwe9mYD+w95UFCc3MGx3kFxMBlMKL7qVIKXsGuh1HHRS0+HI Ylig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="LJm/LbiF"; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p6si13705147edr.217.2021.06.22.13.24.09; Tue, 22 Jun 2021 13:24:32 -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=@chromium.org header.s=google header.b="LJm/LbiF"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229818AbhFVUZZ (ORCPT + 99 others); Tue, 22 Jun 2021 16:25:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229667AbhFVUZY (ORCPT ); Tue, 22 Jun 2021 16:25:24 -0400 Received: from mail-oo1-xc30.google.com (mail-oo1-xc30.google.com [IPv6:2607:f8b0:4864:20::c30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6C8DC061574 for ; Tue, 22 Jun 2021 13:23:06 -0700 (PDT) Received: by mail-oo1-xc30.google.com with SMTP id o5-20020a4a2c050000b0290245d6c7b555so165747ooo.11 for ; Tue, 22 Jun 2021 13:23:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=Ggw6fsmku27vHRmfMQszrNre4+RfK7j3PrPkaoOAI5s=; b=LJm/LbiFVvPJuS0y9W0doPgLlkncwZmOFafIU9v/PAm8m/8KHPwJT3Y5cbnkV4BXJu pibvHYmUPrUE/wlr8jvGDlSstXPVAb7sWUjUQ4VBX8iMDC18VCuC4nu1eYJFnvVrDNar z2oeL/qVTksu5CgRvcn+b9dGIc1UkJ/B/CICM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=Ggw6fsmku27vHRmfMQszrNre4+RfK7j3PrPkaoOAI5s=; b=T50GBeSs3MTDNIKl14Dx1t7l2mkikNOkAnQ+GIW0EGCdXFoTiguN2qoDci5Bzs9nL8 lbidm+jg3zy8DSojuMF7GxnLoha8K+NxTLqFMxL/DNLosHV24WMDGXQ1qhWa+0GjRrlq L2GmSOsfz8YNOwnBkc6xaD+oWg5IJm8xLmK2zdo3PlqB+u+78uEw79N0LeXsLUaorrM0 bmD94tGNE4IOUcwF5gPmG6CqrWope3lt3Gd/wdbuKt9TbDfhlcU3j4250ST8Zi3woUTO g5nod3bKT39EsvXRETQt61cHFjIWbwd2XfVRP5ixA8GxFylMlxM5plEyhUHCIJSx6CNe 0e6Q== X-Gm-Message-State: AOAM532f89jx4h78yi+8vU+vblzmOn7jQr+7qQFwWnp1BpLvtSfaOzt/ D+3nCIfxsglOIrl3cqvDoiOK2Ow5KfH4VULIFdq7lQ== X-Received: by 2002:a4a:e2d0:: with SMTP id l16mr4771864oot.80.1624393384760; Tue, 22 Jun 2021 13:23:04 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 22 Jun 2021 13:23:04 -0700 MIME-Version: 1.0 In-Reply-To: References: <21dc5c9fc2efdc1a0ba924354bfd9d75@codeaurora.org> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Tue, 22 Jun 2021 13:23:04 -0700 Message-ID: Subject: Re: [PATCH v2] arm64/dts/qcom/sc7180: Add Display Port dt node To: Bjorn Andersson 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Bjorn Andersson (2021-06-18 14:41:50) > 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. Right. I'm not sure things could be described any better right now. If we need to change this to be MDSS_GDSC power domain and control the level of the parent then I suppose we'll have to make some sort of DT change and pair that with a driver change. Maybe if that happens we can just pick a new compatible and leave the old code in place. Are you happy enough with this current patch? > > > PS. Why does the node name of the opp-table have to be globally unique? Presumably the opp table node name can be 'opp-table' as long as it lives under the node that's using it. If the opp table is at / or /soc then it will need to be unique. I'd prefer just 'opp-table' if possible.