From patchwork Fri Mar 19 11:05:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 404781 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1268723jai; Fri, 19 Mar 2021 04:06:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/FcHnZaIOa5lhA3DSUElaoWChFuREO8Q5CS3751RK5dQglyp2KnJCJeE7hxgwj36d+k3/ X-Received: by 2002:a17:906:9515:: with SMTP id u21mr3759718ejx.86.1616151995122; Fri, 19 Mar 2021 04:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616151995; cv=none; d=google.com; s=arc-20160816; b=Oob0N/x8loFsy6V2XT845PywGahgeMaHp9RwQWoHFvXcmaFdtIUIGxA6emPUUNDTmD u8ACc9H/E2v8R78ShQXZrEM7b9ZGBVt1t6AeXBy0X/1vGwh6ViA4vQQtEwNnbslJUqlo yusK13pP175MJfc98+vlzao1c3TroOMbtW6pg4E+lkEaXRl/6bc0k+DDvWAotpgBzlYL Mjta3khcL4BOE2C5qyCgEnp+CQ6yCXExMSMyB/Demk1NEHDI42EwkBoTRtxkwl5m50kQ RoJgzkzvapdMHDJ8tNNGFyvA7Bzq1vHePkFLto55Ifj95gL4ySwDngfL7CRfBYQfNeAA maAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=4/chfQtIv4nkYAhw823ZDxPsTY3OzuaLkKHNmOeT7jY=; b=IXqZIeM8yixSdFqNglpUY5LpPko7B/2CNFQcKGD9XOlC/1UvYeAtg3/lk9ZVGn6Ide to8cmxHlRclto8V7U/+n1nEYzxSuABHIKc+RVKho5Vv5gFfmFQ94fh85lxLqR6B6d5OO xmCotc0hTKWL9OCYqaD7ob3TOUMr4f6f5wDRq32SCeOSPKptYmWtpK/jBycrA8l44fai Q+rQ6pjrYvHEZlB4OOxI0hiduDCNEIVr4J/1xJ3CdQcfelB7i/l2OCQLOfPz2k+KQmwI ylE4UYXnPs+fVBnLBCixHseWYNEDMyM6Rj1Gu3koQNd/pH6/KIfUXPNpjoGbojIRn9dQ xDpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Vzo9kEvK; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m17si3708073edd.122.2021.03.19.04.06.34; Fri, 19 Mar 2021 04:06:35 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=@linaro.org header.s=google header.b=Vzo9kEvK; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S230127AbhCSLGD (ORCPT + 6 others); Fri, 19 Mar 2021 07:06:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229979AbhCSLFl (ORCPT ); Fri, 19 Mar 2021 07:05:41 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31A6DC06174A for ; Fri, 19 Mar 2021 04:05:41 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id v4so8656765wrp.13 for ; Fri, 19 Mar 2021 04:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=4/chfQtIv4nkYAhw823ZDxPsTY3OzuaLkKHNmOeT7jY=; b=Vzo9kEvKSFjCgF3u/xU/KHGfVl2K/vlYFQAD38/teB0a4LANjjXp/zZWeg7HEyfnRP 2ncamnZAptv1u18sshdQmfkpLO70SorzlfQDcqlImCIqdvuUKjpki69jFQKUkq/H9sCo pfvNvOA+ldgHbgyJEEnIillJNT2t6yXp4zGDc/Os9Nsp/hj7cgvsRs7adqZQkamIjUg3 J2kaIwVvyJnBrL15jO218e6JV5Wah0VB1XdF1n1Wr+nuBd0rIHNktYgVkQ+IByzGRhUQ AP/wxv5fiysZ7PTGzmP4gSTkJQS50hDGcjiL3sdLbkFWkroJfz4r9bcfWwgwTbITO/Va hhqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4/chfQtIv4nkYAhw823ZDxPsTY3OzuaLkKHNmOeT7jY=; b=CglfgCYd4dEs7+v/wjqamHftyERmIz8jExifpyhc/FSEVL2PB2ZOkHf+jJM2YPB6mR 1kaZ/5+x88UXBXr1N+1QKKvg+yDK+DMew0ao1NaRaZQTE8CJInqJFOzjgzfdVImSr9rP Bt2PP+IlquOUnCOolnwjbdYN4idrSJKEHnxbUKGaSUNeAYBVJjjLEdkXsISb7rKUTiIy NWUQnfzswPOwJnqhncwiRf1LgRa8XPD+YJatB/cIsQKzKlOcm4g3iT1vHhYc8eEo5/Ej EK4/+0UaMM/hXgh7xdnj9PY6RfvxcFsiUNiwiPE2yffLWgPQCM0BUkKikw5A0QIDSGmE aduA== X-Gm-Message-State: AOAM531QSvzSujtRM67Q/Fc0jW+K/aGk0FmDBUTec5vZALgwDjP4lnx8 lxSsaEWoGAiH6qiK6zxvZzJfHA== X-Received: by 2002:a5d:6703:: with SMTP id o3mr3886879wru.357.1616151939819; Fri, 19 Mar 2021 04:05:39 -0700 (PDT) Received: from localhost.localdomain ([82.142.18.100]) by smtp.gmail.com with ESMTPSA id y205sm7232314wmc.18.2021.03.19.04.05.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 04:05:39 -0700 (PDT) From: Daniel Lezcano To: heiko@sntech.de Cc: Rob Herring , Johan Jonker , Helen Koike , Shunqian Zheng , Jacob Chen , Chen-Yu Tsai , Markus Reichl , Robin Murphy , Boris Brezillon , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Rockchip SoC support), linux-rockchip@lists.infradead.org (open list:ARM/Rockchip SoC support), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] dt: rockchip: rk3399: Add dynamic power coefficient for GPU Date: Fri, 19 Mar 2021 12:05:09 +0100 Message-Id: <20210319110511.24787-1-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The DTPM framework is looking for upstream SoC candidates to share the power numbers. We can see around different numbers but the one which seems to be consistent with the initial post for the values on the CPUs can be found in the patch https://lore.kernel.org/patchwork/patch/810159/ I don't know the precision of this value but it is better than nothing. Hopefully, one day SoC vendors will be more generous with the power numbers at least for the SoC which are from the previous generation and give the community the opportunity to develop power based frameworks. --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index edbbf35fe19e..1ab1d293d2e9 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -1933,6 +1933,7 @@ interrupt-names = "job", "mmu", "gpu"; clocks = <&cru ACLK_GPU>; #cooling-cells = <2>; + dynamic-power-coefficient = <977>; power-domains = <&power RK3399_PD_GPU>; status = "disabled"; };