From patchwork Sun Mar 12 19:10:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Russell King (Oracle)" X-Patchwork-Id: 737860 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vh9Zf2hNKz9s7K for ; Mon, 13 Mar 2017 06:11:06 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="au0h9w4P"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="N/V2uwxy"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Date:Message-Id:MIME-Version:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=CxI2/1sSbDREPaBwcnpyF8F2sxCo3j8AjzhasKrhQqQ=; b=au0h9w4Pw0gfXy ZMBC/DaBkeoIxB8iGj9AmQrDZoBzgOiaoRcfVDvBS6AnlY9o1Ncf7RXb8UkeISRvSTTIqI1Iw3D6/ XBiwjEB9Ko9pWsZIHH2M/7k6ORcrFQZHq/v7DQL9/DTDjPOf6qqFIL7Y9pc5qyfNkxuY9He9sUxnF bpGJIMxSy7LqfWkyXaZaF4ahYAF1f6BFxyu6b9vssIOjWK4TkkX7WVPr5qnr71GiWJ7YEMGX4aeJU aGFACNjS/8bXZtIpbpbN+Iw2fcD7BnvlSRtgzSDmss/ZgqV9NrJUrY+NyoOPF319IQQIyiS45y0aS Vud2D3s5AEHeAZtO4vhA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cn8tS-00077n-Lp; Sun, 12 Mar 2017 19:11:02 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cn8t2-0006sH-Om for linux-arm-kernel@lists.infradead.org; Sun, 12 Mar 2017 19:10:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Date:Sender:Message-Id:Content-Type:Content-Transfer-Encoding:MIME-Version:Subject:Cc:To:From; bh=94/JR8DSa50fu2760S2yeS/+ynW2PE0+BCBIAE6Hnvc=; b=N/V2uwxybNZ/no8HqNyM0rt5Vzpbl1t5Lu98mpjWGKrGFnazqPSUcEalNpCE1pGYm8vTfRbrz0JIZfru6jzNZY+wsSXg3fSBJT0kn38CoVLP/UBCEyctTn1tHTePdjqVY2y5RG5hRGlfLwWaa0t3MxHU9/gwAwLfg/rIQE6J5DE=; Received: from e0022681537dd.dyn.armlinux.org.uk ([2001:4d48:ad52:3201:222:68ff:fe15:37dd]:60506 helo=rmk-PC.armlinux.org.uk) by pandora.armlinux.org.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1cn8sV-0007fa-5y; Sun, 12 Mar 2017 19:10:03 +0000 Received: from rmk by rmk-PC.armlinux.org.uk with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1cn8sT-0002w9-J1; Sun, 12 Mar 2017 19:10:01 +0000 From: Russell King To: Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Rob Herring , Mark Rutland Subject: [PATCH RFC 3/3] ARM: dts: dove: hook up etnaviv cooling device MIME-Version: 1.0 Content-Disposition: inline Message-Id: Date: Sun, 12 Mar 2017 19:10:01 +0000 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170312_121037_120914_27B9D0FF X-CRM114-Status: GOOD ( 12.95 ) X-Spam-Score: -4.3 (----) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-4.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [2001:4d48:ad52:3201:214:fdff:fe10:1be6 listed in] [list.dnswl.org] -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Wire up the GC600 as a cooling device for when the SoC gets hot. The GC600 is reportedly responsible for 20-30% of the SoC dissipation, so reducing the GC600 clock rate should result in some cooling. Signed-off-by: Russell King --- This patch requires the patch to add the etnaviv cooling device to be in place. arch/arm/boot/dts/dove.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/dove.dtsi b/arch/arm/boot/dts/dove.dtsi index 00f5971cd039..d86f951a7978 100644 --- a/arch/arm/boot/dts/dove.dtsi +++ b/arch/arm/boot/dts/dove.dtsi @@ -2,6 +2,7 @@ #include #include +#include #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16)) @@ -791,6 +792,7 @@ }; gpu: gpu@840000 { + #cooling-cells = <2>; clocks = <÷r_clk 1>; clock-names = "core"; compatible = "vivante,gc"; @@ -810,12 +812,34 @@ thermal-sensors = <&thermal>; soc_trips: trips { + soc_trip_maximum: soc-passive { + temperature = <95000>; /* °mC */ + hysteresis = <2000>; /* °mC */ + type = "passive"; + }; + soc_trip_hot: soc-hot { + temperature = <105000>; /* °mC */ + hysteresis = <2000>; /* °mC */ + type = "hot"; + }; soc_trip_crit: soc-crit { temperature = <120000>; /* °mC */ hysteresis = <2000>; /* °mC */ type = "critical"; }; }; + + cooling-maps { + /* + * Jon Nettleton says that he found the GPU + * accounted for 20%-30% of heat production. + */ + gpu { + cooling-device = + <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + trip = <&soc_trip_maximum>; + }; + }; }; }; };