Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2906099rdh; Mon, 27 Nov 2023 01:42:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEdsqZveyC2RPpe3plf7yX7jxfREsEbvqt/TZ3uD4f7V1KwxBRB58PEOIb6jVJKIFqJ8OKS X-Received: by 2002:a05:6a20:438a:b0:18b:92b1:37b8 with SMTP id i10-20020a056a20438a00b0018b92b137b8mr14437355pzl.33.1701078142190; Mon, 27 Nov 2023 01:42:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701078142; cv=none; d=google.com; s=arc-20160816; b=yM+LTcHmnbf/SyDS90M/noqFsvhDGt0pLhDAAp/7XyHojrzCJfzGdpnmPKRKTsPWAs eMfziFqZd+z2FCnXLk0ftUC0wN0t6SmT9aUubjk68wH7K0gAevIZQggVd1EInsuG+PrQ jgtrg1Z5jTVetMVddYOEBmal4plY14FktnHBKHdi29iFhM3ZDBp50WwGLAybjiQsyFb9 VpiT/WN/99V8ZyefbvxFX4J1CZh9hugCrUrhiUJ/NzbqrpNDUuhGa0SJJN29bJHgcsOn 1qzEtPNTK7hp62cHt5WDZYZ+wkkJCBtjIwE2V142973P2uyI2c4jQqp1NGtmiE8huBE2 UaQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=CqlhJGia5LWTfHn+cywu14c/qPvjNCoDecOFA94nAtc=; fh=TDUTb4mdoJpCcl4E5AKfnlFfHiE9LFkq+0X/uOMT7a0=; b=dXE59yrzeDsThSphLcJ7W+3BhnC4vUHIr0G1Nqze/1O3cLKwyxHiKf06aXtPSaXhw1 iPdHjgnBPtSKNmulfdzKkz02rtGl0LO7tjNCha5nXgqoScOEpTaoPib0ekbdHD7PMO6o dqBSDR6H2mWCE5wtPzKCN9ejFX3368Oo+eL4ktd/999HZOqCeFRU7xyfUwpjOOBxiam6 NO3RY94Gq54p0Swk7i6y/XDtmMB7y9NAUQYolEhChZ3LO1HV28Rb7rf88cRnr0aFLA0d Tp0h66vHk2sNu4MILaYUsUCo+kUclXZ5UYWjGMThDzBql57qiPf0BUgqL9di8DwDR5np /Trw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id x18-20020aa793b2000000b006cd905021d4si1359779pff.367.2023.11.27.01.42.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 01:42:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 229F18080ECF; Mon, 27 Nov 2023 01:42:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232876AbjK0JmD (ORCPT + 99 others); Mon, 27 Nov 2023 04:42:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232841AbjK0JmB (ORCPT ); Mon, 27 Nov 2023 04:42:01 -0500 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FFC4DE; Mon, 27 Nov 2023 01:42:05 -0800 (PST) Received: from i53875bf8.versanet.de ([83.135.91.248] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r7Y7u-0008ND-Sp; Mon, 27 Nov 2023 10:42:02 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Lukasz Luba Cc: lukasz.luba@arm.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, daniel.lezcano@linaro.org Subject: Re: [PATCH] arm64: dts: rockchip: Add dynamic-power-coefficient to rk3399 GPU Date: Mon, 27 Nov 2023 10:42:02 +0100 Message-ID: <14787054.VsHLxoZxqI@diego> In-Reply-To: <20231127081511.1911706-1-lukasz.luba@arm.com> References: <20231127081511.1911706-1-lukasz.luba@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 27 Nov 2023 01:42:19 -0800 (PST) Hi Lukasz, Am Montag, 27. November 2023, 09:15:11 CET schrieb Lukasz Luba: > Add dynamic-power-coefficient to the GPU node. That will create Energy > Model for the GPU based on the coefficient and OPP table information. > It will enable mechanism such as DTMP or IPA to work with the GPU DVFS. > In similar way the Energy Model for CPUs in rk3399 is created, so both > are aligned in power scale. The maximum power used from this coefficient > is 1.5W at 600MHz. 2640 is a pretty arbitary value, so it would be really helpful to describe in the commit message, how you arrived with that specific value. Thanks Heiko > Signed-off-by: Lukasz Luba > --- > arch/arm64/boot/dts/rockchip/rk3399.dtsi | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi > index 9da0b6d77c8d..87cfdf570b19 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi > @@ -2113,6 +2113,7 @@ gpu: gpu@ff9a0000 { > interrupt-names = "job", "mmu", "gpu"; > clocks = <&cru ACLK_GPU>; > #cooling-cells = <2>; > + dynamic-power-coefficient = <2640>; > power-domains = <&power RK3399_PD_GPU>; > status = "disabled"; > }; >