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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 6288CECAAD3 for ; Mon, 5 Sep 2022 18:55:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rr+H0WFu88rOr57h1jtla5ibGCIHIl/FegPD5wzy0R0=; b=yvD9iDJqXzgkpq psmUBnxV4jor8X/FYWNhbU8UIpsFpQIovnWQ3P+XaLuE5lde7QKcIxvvzk6DmJv+dtGUAPYWqjw0K 1kszzwMPNeSSJQIeh4Ao5ZGJzngNSuks4rX9i66HuAH1IYp5QwZ0S5z2adtQNhnS+NkcHkdHnkKmY vSuVnoLPqbYjSJBc+/tpztpFBy2HeDhQtkBWZqqEjV6Rox+QTNsZjITqw7ckhEC6N2hu6/ccfRUCn cEXEX2O/heXxPkc6y3r59Xflf5RTJjWieR59lgsZW185EtrIFO2xG2jeIMrYYeG0tcEzS7JQYrQHG odXJZj1LqwYuJ4UfsgbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVHEr-008mWv-8K; Mon, 05 Sep 2022 18:54:30 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVFod-007UBb-5x for linux-arm-kernel@lists.infradead.org; Mon, 05 Sep 2022 17:23:20 +0000 Received: by mail-ej1-x62e.google.com with SMTP id cu2so18433886ejb.0 for ; Mon, 05 Sep 2022 10:23:16 -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=G2Ja9G/zf1XRJ99ZcYwoOPT3GV5MmNxwEIDYkOpzINscSJcQgumOxtO1QvEGQpoQym /RdB3FLnxpMm4DRB6OitVIuDGodpU+5Hn3Q3KMwZG/3v++sBLfuo/5D9cKSAFioQCIcs JxtYOHBVa8hFdc9ldcOH+bMxqdXNG2KqFshQgfa7vndi1VxOQASKRQz5H9yXIQU5Tdnv A3PwdVtitrjOrKgzs85YaehOG1nnT6rCJec326/PkwaOpScyxN7VL6cknoKmf/q/bpZQ o5j8p+CERFWXZa3bzZr3D9UOILgsBLWVCShu5RNz7SfhUolzGiulS8XTeIlHBnn6wZf7 pYOw== X-Gm-Message-State: ACgBeo0DMYo/Ud8Gx1jxG9O8AP8PGk61L9TxYKqfUxQJ4j6iTHAnx7Xh VVvgZSFKzuhH3HkB1OgmtVQ= 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?= Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, =?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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220905_102319_282802_146E12EF X-CRM114-Status: GOOD ( 16.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Dne ponedeljek, 05. september 2022 ob 19:15:58 CEST je Cl=E9ment P=E9ron = napisal(a): > Add a simple cooling map for the GPU. > = > This cooling map come from the vendor kernel 4.9 with a > 2=B0C hysteresis added. > = > Signed-off-by: Cl=E9ment P=E9ron > --- > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 51 +++++++++++++++++++- > 1 file changed, 49 insertions(+), 2 deletions(-) > = > 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"; > }; > = > @@ -1072,9 +1073,55 @@ map0 { > }; > = > 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 = > <100000>; > + hysteresis =3D <2000>; > + type =3D "passive"; > + }; > + > + gpu_alert2: gpu-alert-2 { > + temperature =3D = > <105000>; > + hysteresis =3D <2000>; > + type =3D "passive"; > + }; > + > + gpu-crit { > + temperature =3D = > <115000>; > + hysteresis =3D <0>; > + type =3D "critical"; > + }; > + }; > + > + cooling-maps { > + // Fordid the GPU to go over = 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 = > 2 THERMAL_NO_LIMIT>; > + }; > + > + // Fordid the GPU to go over = > 576MHz > + map2 { > + trip =3D <&gpu_alert2>; > + cooling-device =3D <&gpu = > 3 THERMAL_NO_LIMIT>; > + }; > + }; > }; > }; > }; > -- > 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel