Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6857718rwp; Tue, 18 Jul 2023 06:54:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlHtZg447b1NDa9KP0NYLkgjuVMUPxANoASf5SiJfSXTNqenEJ06IOxUxfkVJ2zWFh6GFx76 X-Received: by 2002:a17:906:6cf:b0:993:e9b8:90ec with SMTP id v15-20020a17090606cf00b00993e9b890ecmr2008002ejb.22.1689688469646; Tue, 18 Jul 2023 06:54:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689688469; cv=none; d=google.com; s=arc-20160816; b=r0/IyW/JhWKQj8WrRlkj7368TuIGySszaMVch8MAZyu+VMRH5soBMzzWeaIvpOUnYk 8O8im2NPZuScAJP600NazeqrcusqcKY1Eq7YbpNYpmtZOc12k079sEBF59UDqKdpkMYi 5D6jLAWT8FE+gjpmFvSEgjoi2Nh4vSm4yebhbeJ3xGiiGgtP1IxQGxxaZzDzUTal8esj hHvCFQ9VXkjnLQeH1pjzDAOiqH9jlHcDJ9x3hLW51hISdGPiDzMj6gLNYDhDHwOyXgJU QgVPxbywd937CyfD0FB8t7yMtVzQkpCZtvhPlmjDMkS6Gb90TEqf+Em5YTnJvLozMBMg WW3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=hp7UgnldNcHA7FZx3WIx9aOagNjv/KtuNEbWyENtJnA=; fh=A+sQXm9ChM2JUKMBEaneD5/ZDI4fLGgX6saG5gnFut8=; b=lZAGfSDc1n+3x4sArW4nZVllHpxobg48nIcd3UNXSV/nqP90mIOGI2lhPjK0zqaU7V i/hEWKgQfBmZetHRLri7WH1h6T8jT5tQBYEqDU4Nm3sHfoqLAcHNK74qqGvLPOnQD5MR 3mnTx7D3ZttD4mTZJ2MVb4KpTyNY/YIrpNDr9RFlxHWF/OIdWb0udW1G2xQj64umUFza hjhzQ6ZczPTa2h4QA7/RDbb//vAKohK/IWs8KzJW+kjRT/RlrWJtknVWmEckNGXCuiHC 6wBMmmGY1uNKfYFAUEvR+GBxXWLYLcltY6jZkZfm6Ej+ctYVzzU/FhcDC5YrIu1RXzN4 bP8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oGFGd0FP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c23-20020a170906341700b00987c203c563si1170486ejb.182.2023.07.18.06.54.04; Tue, 18 Jul 2023 06:54:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oGFGd0FP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232827AbjGRNg6 (ORCPT + 99 others); Tue, 18 Jul 2023 09:36:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232563AbjGRNgu (ORCPT ); Tue, 18 Jul 2023 09:36:50 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4A9E170E for ; Tue, 18 Jul 2023 06:36:39 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4fbf09a9139so9151740e87.2 for ; Tue, 18 Jul 2023 06:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689687398; x=1692279398; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=hp7UgnldNcHA7FZx3WIx9aOagNjv/KtuNEbWyENtJnA=; b=oGFGd0FP042iyZd37c7nyenPiJFz/AO4vwIGmPPiBLZ1+VUXrw/l4TlTmHUn9dn36i JsHuBXdt+NLWsVYWFCmcRuv50+1m9NNcVdmrGuly+uR1T8kb3wo5MBbvAi+l6c6ayI2E F8oBKCAjQwz4H/Nzs4tqRQNMvlTVxzFmFOxtYzVYVrraof3khRBj91sFyvyj8iDXTR/U PdDi2rrciwUTgm/fipsXPOEyelj5fijEswO55KMYmIVC2yQzOk7J6dL+R/aSP4mdCngI 69rEkwQoBWmbi7KZuDule39Lnnz+uKmwME3zcxwK21INsGeG9AJvuWvjYZuN/hrKqNcd YAVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689687398; x=1692279398; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hp7UgnldNcHA7FZx3WIx9aOagNjv/KtuNEbWyENtJnA=; b=TqsE1v2MpB6zUc3Rb+CumK6ydhcT9Ew1Mtu0IU6e3GCQB/rmwpuL7GENDg3lCObpV0 XuiJlkx1LSk32nlxH2LceOhvHWhNTAmuL4DC27OvmPN1Z0PefiIsyZoQr6v6uvQiKuDs e7fLpYudX3yovfCRFjmq5ENSvWTsi6NpCpatWyxqFOSbzCF5S9VG0OGzBtcVIE2TzrET CMEmdwDZb+98iSjVJgdOc5hjeo4WTXa9KhWBxbmcdICYmThyBOuv4WermuxVXNESliq3 uycZeL7vfQcRqrcKS9xUGqnZy5np3z/54J7tASYPZzdBgR2SrRMGr9z/N57bKzjvVDYV MadA== X-Gm-Message-State: ABy/qLYc+m6ft+WXerKKkL9dIJAEdmOBlVgtmHbEc5ixIbcIVeADNTsW uMgCy1HkU+mudH0MkkKDT0CNhQ== X-Received: by 2002:a05:6512:5c1:b0:4f8:83f:babe with SMTP id o1-20020a05651205c100b004f8083fbabemr9554309lfo.62.1689687397885; Tue, 18 Jul 2023 06:36:37 -0700 (PDT) Received: from [192.168.1.101] (abyj181.neoplus.adsl.tpnet.pl. [83.9.29.181]) by smtp.gmail.com with ESMTPSA id p11-20020ac246cb000000b004faa82946d8sm444846lfo.178.2023.07.18.06.36.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Jul 2023 06:36:37 -0700 (PDT) Message-ID: <8c342c2b-db37-1360-c716-0e4cdf3809a7@linaro.org> Date: Tue, 18 Jul 2023 15:36:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 15/15] arm64: dts: qcom: sm6115: Add VDD_CX to GPU_CCC Content-Language: en-US To: Dmitry Baryshkov Cc: Stephan Gerhold , Bjorn Andersson , Andy Gross , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20230717-topic-branch_aon_cleanup-v1-0-27784d27a4f4@linaro.org> <20230717-topic-branch_aon_cleanup-v1-15-27784d27a4f4@linaro.org> <8c5dc146-c305-bef9-0d97-76a91345ed1a@linaro.org> <9b28a17a-fe9c-3ff0-fa1d-320e75e174d0@linaro.org> From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18.07.2023 15:08, Dmitry Baryshkov wrote: > On Tue, 18 Jul 2023 at 15:48, Konrad Dybcio wrote: >> >> On 18.07.2023 13:56, Stephan Gerhold wrote: >>> On Mon, Jul 17, 2023 at 09:18:21PM +0200, Konrad Dybcio wrote: >>>> On 17.07.2023 19:23, Stephan Gerhold wrote: >>>>> On Mon, Jul 17, 2023 at 07:11:33PM +0200, Konrad Dybcio wrote: >>>>>> On 17.07.2023 18:56, Stephan Gerhold wrote: >>>>>>> On Mon, Jul 17, 2023 at 06:50:18PM +0200, Konrad Dybcio wrote: >>>>>>>> On 17.07.2023 18:28, Stephan Gerhold wrote: >>>>>>>>> On Mon, Jul 17, 2023 at 05:19:22PM +0200, Konrad Dybcio wrote: >>>>>>>>>> The GPU_CC block is powered by VDD_CX. Describe that. >>>>>>>>>> >>>>>>>>>> Signed-off-by: Konrad Dybcio >>>>>>>>>> --- >>>>>>>>>> arch/arm64/boot/dts/qcom/sm6115.dtsi | 2 ++ >>>>>>>>>> 1 file changed, 2 insertions(+) >>>>>>>>>> >>>>>>>>>> diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi >>>>>>>>>> index 29b5b388cd94..bfaaa1801a4d 100644 >>>>>>>>>> --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi >>>>>>>>>> +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi >>>>>>>>>> @@ -1430,6 +1430,8 @@ gpucc: clock-controller@5990000 { >>>>>>>>>> clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, >>>>>>>>>> <&gcc GCC_GPU_GPLL0_CLK_SRC>, >>>>>>>>>> <&gcc GCC_GPU_GPLL0_DIV_CLK_SRC>; >>>>>>>>>> + power-domains = <&rpmpd SM6115_VDDCX>; >>>>>>>>>> + required-opps = <&rpmpd_opp_low_svs>; >>>>>>>>> >>>>>>>>> Where is this required-opp coming from? The clocks in gpucc seem to have >>>>>>>>> different voltage requirements depending on the rates, but we usually >>>>>>>>> handle that in the OPP tables of the consumer. >>>>>>>> The only lower levels defined for this SoC are VDD_MIN and VDD_RET, >>>>>>>> but quite obviously the GPU won't work then >>>>>>>> >>>>>>> >>>>>>> The levels needed for the GPU clocks to run should be in the GPU OPP >>>>>>> table though, just like e.g. sdhc2_opp_table for the SDCC clocks. >>>>>>> >>>>>>> I still don't really understand why this is specified here. :) >>>>>> The GPU_CC block needs this rail to be at a certain power level for >>>>>> register access. This describes that requirement. >>>>>> >>>>> >>>>> Can you show where this is defined downstream? On a quick look I didn't >>>>> see something like that anywhere. Or is this from some secret >>>>> documentation? >>>> As far as downstream goes, you can notice that no branch's or RCG's >>>> vdd tables ever define a level lower than the one I mentioned. >>>> >>> >>> As far as I can tell the vdd tables are only used when the clock is >>> actually enabled though, not for writing to registers while they are >>> disabled. >> Maybe, but you can also notice that even XO rates require at least >> SVS_LOW to function. > > But the vdd tables are related to clock rates, which, in the upstream > design, should be voted by the consumers, not by the clock driver. Not all of the clocks are associated with OPP tables upstream, and it would be nice if the clock controller block had power flowing to it in case one wanted to access a different clock. Konrad