From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 87C2CECAAD3 for ; Mon, 5 Sep 2022 17:23:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 577E610E468; Mon, 5 Sep 2022 17:23:19 +0000 (UTC) Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4051F10E465 for ; Mon, 5 Sep 2022 17:23:17 +0000 (UTC) Received: by mail-ej1-x62f.google.com with SMTP id bj12so18260605ejb.13 for ; Mon, 05 Sep 2022 10:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=3g5pXO8vt8VikNU0nvZUDcJj8Xo4WnKc2gEqOdfk/2Q=; b=kMTQO0WUPetKeIUvcWZYfOX/DronrP0ofp64pmqZgKYCc0kUackunOXwB4iHEeqOyH CfavNCA+7H6XKO3VvCOJ/R6dsoRzdJrPTTjKXyNKUSquYd+u80h3DQdTIQTeCYymaS/b 88trMIUvJgHYJgRd1SULijR8wyvxd9HcssorkQripYdLDxrGpKxzGnEifUWjDo9Iflm5 BMUHeZ8tvzZsSBnuzKuft+KeU3XLBCDLjG3VfSoy+n+zKLJ5flEoU+8+s+MhpvsktleV ZinXicUkywI0oDWEgr4o/7QmSDaiHRjNTRgU3tzBLdW9Uwb5GPJxWV4XlXrcwbt+Grb7 a8dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=3g5pXO8vt8VikNU0nvZUDcJj8Xo4WnKc2gEqOdfk/2Q=; b=PHMaskjEauRCyxcPy/KPq/vNFd69x7bNGmtRzqSwpcVBzsXElsc/dptnuGTmza3Kq7 MHt7r0Kt529GKYQEZknzyuHjdNQtd+GxREzHqbtk73jt1gmQg8ZXHVKDsHH9fIMRVUYW VBmIBJOhoRMEEMiR6fUFnSuy7p/x2FJ1tjTiVykTu1X1p79BhVyl8zPYM4zbpVmUV5GQ v5bI2ttIxgacW5f8DlXrM2mVEv5xJSSSQIG1EYMvW2qEkgma3kY3mkh4OhQi4W7KlO28 h/A/B30F4sJqGgH2GGCOEM6s6B8v2F1U7/Rb27jEvlusxaeZhlB2heXvn8v6EK4tz9Dj knIA== X-Gm-Message-State: ACgBeo0HRavZxG+nE4n0Sn4RaagsBaFM1R0rjdVMO5FYmFiEjEpCSp1G UDsoMoZLazIzvA/DsSEa1Fk= X-Google-Smtp-Source: AA6agR5mO71WxQwcBosJgPPuyOgbeJkdL8BB5q4tXfaGtIduchOQwHXDPDKlqipYIz267eLU8kBI3Q== X-Received: by 2002:a17:907:7fa5:b0:730:5d54:4c24 with SMTP id qk37-20020a1709077fa500b007305d544c24mr36795658ejc.641.1662398595531; Mon, 05 Sep 2022 10:23:15 -0700 (PDT) Received: from kista.localnet (82-149-1-172.dynamic.telemach.net. [82.149.1.172]) by smtp.gmail.com with ESMTPSA id r21-20020aa7d595000000b0043cc2c9f5adsm2699473edq.40.2022.09.05.10.23.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 10:23:15 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Samuel Holland , Catalin Marinas , Will Deacon , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , David Airlie , Daniel Vetter , Bjorn Andersson , Shawn Guo , Geert Uytterhoeven , Arnd Bergmann , Marcel Ziswiler , Vinod Koul , Dmitry Baryshkov , Biju Das , =?ISO-8859-1?Q?Cl=E9ment_P=E9ron?= Subject: Re: [PATCH v3 2/5] arm64: dts: allwinner: h6: Add cooling map for GPU Date: Mon, 05 Sep 2022 19:23:13 +0200 Message-ID: <5855006.lOV4Wx5bFT@kista> In-Reply-To: <20220905171601.79284-3-peron.clem@gmail.com> References: <20220905171601.79284-1-peron.clem@gmail.com> <20220905171601.79284-3-peron.clem@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, =?ISO-8859-1?Q?Cl=E9ment_P=E9ron?= , linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Dne ponedeljek, 05. september 2022 ob 19:15:58 CEST je Cl=E9ment P=E9ron=20 napisal(a): > Add a simple cooling map for the GPU. >=20 > This cooling map come from the vendor kernel 4.9 with a > 2=B0C hysteresis added. >=20 > Signed-off-by: Cl=E9ment P=E9ron > --- > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 51 +++++++++++++++++++- > 1 file changed, 49 insertions(+), 2 deletions(-) >=20 > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index > 5a28303d3d4c..1259ab0c3956 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > @@ -186,6 +186,7 @@ gpu: gpu@1800000 { > clocks =3D <&ccu CLK_GPU>, <&ccu CLK_BUS_GPU>; > clock-names =3D "core", "bus"; > resets =3D <&ccu RST_BUS_GPU>; > + #cooling-cells =3D <2>; > status =3D "disabled"; > }; >=20 > @@ -1072,9 +1073,55 @@ map0 { > }; >=20 > gpu-thermal { > - polling-delay-passive =3D <0>; > - polling-delay =3D <0>; > + polling-delay-passive =3D <1000>; > + polling-delay =3D <2000>; > thermal-sensors =3D <&ths 1>; > + > + trips { > + gpu_alert0: gpu-alert-0 { > + temperature =3D <95000>; > + hysteresis =3D <2000>; > + type =3D "passive"; > + }; > + > + gpu_alert1: gpu-alert-1 { > + temperature =3D=20 > <100000>; > + hysteresis =3D <2000>; > + type =3D "passive"; > + }; > + > + gpu_alert2: gpu-alert-2 { > + temperature =3D=20 > <105000>; > + hysteresis =3D <2000>; > + type =3D "passive"; > + }; > + > + gpu-crit { > + temperature =3D=20 > <115000>; > + hysteresis =3D <0>; > + type =3D "critical"; > + }; > + }; > + > + cooling-maps { > + // Fordid the GPU to go over=20 756MHz Typo: Fordid -> Forbid Also next below. Best regards, Jernej > + map0 { > + trip =3D <&gpu_alert0>; > + cooling-device =3D <&gpu > 1 THERMAL_NO_LIMIT>; > + }; > + > + // Fordid the GPU to go over > 624MHz > + map1 { > + trip =3D <&gpu_alert1>; > + cooling-device =3D <&gpu=20 > 2 THERMAL_NO_LIMIT>; > + }; > + > + // Fordid the GPU to go over=20 > 576MHz > + map2 { > + trip =3D <&gpu_alert2>; > + cooling-device =3D <&gpu=20 > 3 THERMAL_NO_LIMIT>; > + }; > + }; > }; > }; > }; > -- > 2.34.1