Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6770790rwp; Tue, 18 Jul 2023 05:49:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlF7fBhUzhKBXa2l4Jrx/6bd+9E+yhNPqEsm6tkvgK24LmceMaBW+jmMSfnQw5LqlZ+jsOhj X-Received: by 2002:a17:902:e890:b0:1b7:f64b:378a with SMTP id w16-20020a170902e89000b001b7f64b378amr13913249plg.16.1689684578480; Tue, 18 Jul 2023 05:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689684578; cv=none; d=google.com; s=arc-20160816; b=xRuiso/RBipFIlNecrv7dc7jWvmJlAKOHrvzBiQvDhsMejdJmHUPPPka8s7zWEohvJ FXZpBBNNWpfHjCzLlgeR3HFcjEXruNJIS216LoWnJo30kD2pfIdUZsSq4b6aewOQwAB8 CCJ9rNBudSWGgRPg+JVNCQwxWbyL3ICSwVXKEs2Xp/6PSZ8zppvTG+xI40darCmPRRsq 6tSN9PrgBXiWHQiRxeYjnFhNZRui9pAZHXcU5DV7zvsT8ndPHzvoyw3nPawE2w3tdhqg bbnLwHcinRpyT3IxOxxcplRdWoZziwP4uInJGK0swQ4xduKvQ6wAuFpxOg2RrzBuSv3E GxfA== 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=PMcbYQlwObKdmoguJ/6t09m79nKWr0R7fK7izdG7yQU=; fh=9f1DBEP+KsXg5FdAlaHFB0En/vIHQpFcAoM5XUTeLjg=; b=OWsVrG5d1K5YEM2OSOC3q/Dlm7YdO4NPHbhPVY1G+HPRjGs/Vt/c5hPgq7hKt4NUUJ /O+AY8fBZ4LYV62nPCIhNKqVqaHAKcVWUhkLj35FR9y9YDAu4wP1ldmzMxUlqrOAodOR tHy3rd1lkQ+l18lqQOWM4s2xqqe+lX/o2ywRbMiy7NXfhNGsvZDqDGE2d1w4hJwbjNI7 H1Nthg+Sj7XlOBaiPFhtvGRb2xQAhUpE7QLpZLB5sz5wyGNnC7y0rrUlL3DjK3XQALrt cKle4ebPGO47P3vkEUiLN9fRlRZiXNpZfbjebMN/ouZSQoTOOHjQeGJSL+K/ZJUh3k7Q kA6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uCUJB3qt; 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 e6-20020a170902cf4600b001b81e6ce809si1526626plg.5.2023.07.18.05.49.25; Tue, 18 Jul 2023 05:49: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=@linaro.org header.s=google header.b=uCUJB3qt; 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 S229886AbjGRMVj (ORCPT + 99 others); Tue, 18 Jul 2023 08:21:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbjGRMVh (ORCPT ); Tue, 18 Jul 2023 08:21:37 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94E00E56 for ; Tue, 18 Jul 2023 05:21:35 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4fba8f2197bso9345471e87.3 for ; Tue, 18 Jul 2023 05:21:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689682894; x=1692274894; 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=PMcbYQlwObKdmoguJ/6t09m79nKWr0R7fK7izdG7yQU=; b=uCUJB3qtrSsWhpK1EXCApHzjDcVw7hzhV+4mh3/wHPuqTM/yIhN5TcN+Bf5WcYjK8d lVlNHcFySHY7aQ2v0oxRmpZmM8lUumlhwVuSa3bpa+L7YgGMfRejBOuYjj/nrjp0aGvB xjHWLlso2u3wp6wr3IR7Kd4X9ArlbkA3jFIC97zTq/lKbJe5horolVk/N4SrqvxJos0r oSBJlRaNs986ZlcqMhgCme/LkIQ72GAOZz+7DVdVMReFmhqWLB9SfnBbDsj+KKTdj51Q DqIHD0+a4CebP06bsykV5auluC2opkv9ZLVkRIA3elOgxNMd4MQjDO7fPby2/2kNgjqf Girw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689682894; x=1692274894; 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=PMcbYQlwObKdmoguJ/6t09m79nKWr0R7fK7izdG7yQU=; b=MpbdxY0Ou1gfndnM9sh4dvgt3nRc8zc8MQRKKGdOFNd9xCAb6cDQqR+kTQU6xhbJxy owKCFLhjrt9Wxto0HWYFYlHTtmRv28zwgiNzdq1XewcqAGKON3sScnaXzNFiTcK1Jmtf bE0BwTmCCteW5f9ZVqARibbEhQaAo8INU80yzhRFeOSuUZ7buJCO9LniXh14B1bgpoDG YfkbgzbHvxaWTZdQiHOsbj0+Q0aRNxpOkPOVW45euR7wDbmQSE3VriAi9zdMl1gk3WmU PW12tsNBUI+pNCW/ilw9i94aPEUpjBj+Zp10Va5QRtmIsmrD+ixqPsawtopzYz7KMN+7 ykhQ== X-Gm-Message-State: ABy/qLYRlW/qr6RAw3Uj6evNyIVVZaWghpkjT/OhyI2R/9qKUZiB7GBt IzwzXxpJ4I8d6AztFN+bxXTP2g== X-Received: by 2002:ac2:57ca:0:b0:4fb:97e8:bc25 with SMTP id k10-20020ac257ca000000b004fb97e8bc25mr8590146lfo.34.1689682893753; Tue, 18 Jul 2023 05:21:33 -0700 (PDT) Received: from [192.168.1.101] (abyj181.neoplus.adsl.tpnet.pl. [83.9.29.181]) by smtp.gmail.com with ESMTPSA id x3-20020ac259c3000000b004fcdf89080csm416068lfn.180.2023.07.18.05.21.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Jul 2023 05:21:33 -0700 (PDT) Message-ID: <18e192cb-eafe-3aa9-6602-b1a9dbe020d5@linaro.org> Date: Tue, 18 Jul 2023 14:21:31 +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: Bjorn Andersson 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 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> 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 06:25, Bjorn Andersson 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. >> > > And that is not the lowest level reported by command db? > Please describe this part in the commit message as well. command-what? ;) RPM exports VDD_NONE (off), VDD_MIN (the lowest state before collapse) and then low_svs is usually the lowest "actually on" state for all consumers. Konrad