Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4523716ybe; Mon, 16 Sep 2019 13:48:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4bPVQ1dC9WYJD07S0h44xZXvwDIJc5ulciz7Ytoa8YcE+tJmhMCPLhzkcRxBuYBng3tav X-Received: by 2002:a50:f616:: with SMTP id c22mr1197816edn.235.1568666906599; Mon, 16 Sep 2019 13:48:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568666906; cv=none; d=google.com; s=arc-20160816; b=e6RvlalsrJylwgoAJI9UFPD2238mVWzbWzfxel+7rHEqRX1OdTZHcXa/vghoeVDx+N pHImL1x0x70eKXmsWHBeAtIsrZne60pFYQZnB1f8lONXkWGomyt1FqHTGDPmeGea+u4i OoG281vsitxMRaopjKgcYONEbmiWC4joYTCm6+XKhgou7JUvrHZQuGUaw3r9ZSSkx6gO BCliwaWyY6UalBYSmwoBFKz6+YJxcj3utRSblKUfiNFNfqx2miLNU1dUY87f7ifqRXzt AduKPjjZ11kihCt7fb5ad0mQvHLl9VdIbX5XIb1ke8n/x5xyVctinDK+EGGa7Ny62YOJ fvXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:to:from:subject:message-id; bh=5wsSpaDWSZMnSZBmlpNggbUS3QV4vZSJP4L0AwKgX5w=; b=MUEHgX/W2bIeCScH68cmKhKNBXNFHkmw5eqKdxW9CVuSu8qR08EbRYPui+L28xUEiZ CIbky9p2cUIp6rcfpPPq8UmJYF1eIyHjmiigVfB0co+9k6y6YguhAzb12ofD/LKw0PR8 GyqcYXekxaCuI99hoeKZPbdnckVDtWxnHJK1fg0tZLXmZUaBrttFAyBIYCrcYihjwSkv FJWRGic0gJbLUoR/Lltt7YkI3NnB6LG7IGOq638x9hYBnngcoT3EjjaZgPuml39/05jL JTtKCLJp3pYNDlyeTPk/5RjDCj9s2i4wrVKjk8Fcr90ve0ZmWHu07J9fa/RfYNs7zmmg RyCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q10si123661eda.293.2019.09.16.13.48.03; Mon, 16 Sep 2019 13:48:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388720AbfIPOdt (ORCPT + 99 others); Mon, 16 Sep 2019 10:33:49 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:60349 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388666AbfIPOdt (ORCPT ); Mon, 16 Sep 2019 10:33:49 -0400 Received: from kresse.hi.pengutronix.de ([2001:67c:670:100:1d::2a]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1i9s4P-00044Z-Rf; Mon, 16 Sep 2019 16:33:37 +0200 Message-ID: <60da82b157be87d7a1050da47ace80adf2b638f3.camel@pengutronix.de> Subject: Re: [PATCH v2 1/2] dts: arm64: imx8mq: Enable gpu passive throttling From: Lucas Stach To: Guido =?ISO-8859-1?Q?G=FCnther?= , Russell King , Christian Gmeiner , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Abel Vesa , Anson Huang , Carlo Caione , Andrey Smirnov , "Angus Ainslie (Purism)" , etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Mon, 16 Sep 2019 16:33:37 +0200 In-Reply-To: <0ab2ee7de9c2e24f6de860ffcbcdfc25b72c2c61.1568255903.git.agx@sigxcpu.org> References: <0ab2ee7de9c2e24f6de860ffcbcdfc25b72c2c61.1568255903.git.agx@sigxcpu.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::2a X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mi, 2019-09-11 at 19:40 -0700, Guido Günther wrote: > Temperature and hysteresis were picked after the CPU. > > Signed-off-by: Guido Günther Reviewed-by: Lucas Stach > --- > arch/arm64/boot/dts/freescale/imx8mq.dtsi | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi > index 4fdd60f2c51e..5023a0e5068d 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi > @@ -235,12 +235,26 @@ > thermal-sensors = <&tmu 1>; > > trips { > + gpu_alert: gpu-alert { > + temperature = <80000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > gpu-crit { > temperature = <90000>; > hysteresis = <2000>; > type = "critical"; > }; > }; > + > + cooling-maps { > + map0 { > + trip = <&gpu_alert>; > + cooling-device = > + <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > }; > > vpu-thermal { > @@ -912,6 +926,7 @@ > <&clk IMX8MQ_CLK_GPU_AXI>, > <&clk IMX8MQ_CLK_GPU_AHB>; > clock-names = "core", "shader", "bus", "reg"; > + #cooling-cells = <2>; > assigned-clocks = <&clk IMX8MQ_CLK_GPU_CORE_SRC>, > <&clk IMX8MQ_CLK_GPU_SHADER_SRC>, > <&clk IMX8MQ_CLK_GPU_AXI>,