Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6379380rwp; Mon, 17 Jul 2023 22:10:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlHqnWj4C7oH5ghUl3tMVlYHnDV9Ixvb8HIvHuWuO6fbGBzAXra1yhMWlpN0SWW8MaQiRzi7 X-Received: by 2002:a17:906:7a58:b0:988:6bd2:b0b3 with SMTP id i24-20020a1709067a5800b009886bd2b0b3mr12885612ejo.60.1689657038265; Mon, 17 Jul 2023 22:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689657038; cv=none; d=google.com; s=arc-20160816; b=CoOGbUiSteNi/QCLxMckeG4zWItrr+JjOFScc2ft75DHBCwlMr+vVZdesBebtjzRTZ zjTWFdb+RnUORulnOH2MjdVeC10eJ4fdRF65uY7pdvibpLjb8b0103d22mv0VBXDJWw7 Y1BupkkbWBP8xEav/UkU6fEyN5ZNeHbJvsH1auFn1yEOptADbPjiX4lVw9Qg34nfgphn 2Pe0AW9tbGUzZEnBtPcU8Uh7hxk8OFvnsZkPpW1pCMoWNUyc8LgcgNzm1GWex99IKv/W vaEGr9AoNxzJX7T3R+ydXbUUvbDmW3dqon9jOrD4preaf91/1FrDCwRRO2EY0usC0sdO g6Gw== 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=9XeEGTMFTSbsfCTwWr0ntWgV4vOtEC/WZlDEqzv4JXE=; fh=K4U2iEnv7D29jRch5Yx2cI6d00hO72noKwNTiyquyms=; b=pEqrRQwwxlKfGaTHqyZgdGXc1V5BGbuBCYfHVD8QrCayBnyP8NnEUHjUzSCoPLYu+l 0a/j72ynZdSoPJexaXw6vzb7yfpPwijPjmnXMceL90mj2BYQ8XahjL0KZ+LGqEK4cOf9 L8UV6KHbBWRe8C24eKSKMBPwkWTcNK+kfOM77dohqVnWhowmbkTIiuW0wkG5p5GGEd4U 2K9UljIEsFj4gFYvCGbAfA3vsYVChQsCo1vhaRB3DK04B6W+4h7aSIDXmYilZ27ce4fY 5gDl8IJGUGMOVy8kjJvWWtgmrPj95gkexq12/e33yKCeDesA6iirf2ZdFvyZBzJpqxXa WN/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j2CBYhXj; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v8-20020a17090690c800b009924806ccffsi668816ejw.488.2023.07.17.22.10.14; Mon, 17 Jul 2023 22:10:38 -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=@kernel.org header.s=k20201202 header.b=j2CBYhXj; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230252AbjGREWL (ORCPT + 99 others); Tue, 18 Jul 2023 00:22:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229804AbjGREWK (ORCPT ); Tue, 18 Jul 2023 00:22:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF0D81B5; Mon, 17 Jul 2023 21:22:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7159F61375; Tue, 18 Jul 2023 04:22:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CEEDDC433C7; Tue, 18 Jul 2023 04:22:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689654127; bh=DH3pvRF8EX3slaZ3uZwiwp2DM3ieEzqPgVab6Ze81ME=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j2CBYhXj3IVTEKGJ6q4hMRkvcKdg9DabM29jVtDeUkhbDUXHHkQE9R4Kx86/FqgVK uvMycjb/4BYM+mAX2t9doAFtfV+IJFl/fKK/VZi04cMWLODrQt5ZVWNJqaKpZLqSQf 4Z0kxr3IKyykQFxbismwByYDYTvod+KDrMk9qJCz7sy4IZ5jy6WdTyIUlSKV+SDajr MlYI7fhenuI11CjYMSOrVJHKviKvGtSlSf1xeawpSKAEujA5D0zy2zlMOzrmGrldPZ ieaj6G2mpgxQBsPvUhv0/Occ6jrKd2g0oDjp4nf6jKTRAQ857NMgiqMzkirlJjsHyp N2GdHL4wwKjPg== Date: Mon, 17 Jul 2023 21:25:31 -0700 From: Bjorn Andersson To: Konrad Dybcio Cc: Stephan Gerhold , 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 Subject: Re: [PATCH 15/15] arm64: dts: qcom: sm6115: Add VDD_CX to GPU_CCC Message-ID: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8c5dc146-c305-bef9-0d97-76a91345ed1a@linaro.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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. > And that is not the lowest level reported by command db? Please describe this part in the commit message as well. Thanks, Bjorn