Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1672200ybe; Wed, 11 Sep 2019 19:56:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCAqn5G3eHcNZh1C+9JKqPQ+sLtLrNmYrjIIWc536dxWXLb4wEWRXSHrFIpsdF6D8G5QP8 X-Received: by 2002:aa7:ce81:: with SMTP id y1mr38974838edv.188.1568257011374; Wed, 11 Sep 2019 19:56:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568257011; cv=none; d=google.com; s=arc-20160816; b=taxBixlCA8hwHOnXRanQs/gDPLAYUI+Lk5m+z129StgG3YFk3T5OWgX5TBo8d69LRa 6ato+GFdxX2VkfEms1wjgKVrAGdp+1rf04Qtl1iYHh55wyFzv+yEgHfq56uA/HcQLbMY fyIRW6c3y8dyU5iSmhAkSKwywj4/ndFgpgq3Np9aOIlmgoWTkYFKwddA4VKKWUD6DUtg +gcpvGzqffgAoydh+Bi+AxhGUI0KRF8K6//hR9XCzKn/3B8jXxf1vDvEeFkrzkSCK7/B 0jw3fi6N8N0SogYrU7NCu/WtG+QV+UCfTxehNWZh76YLBPCBH8kJjXigf0oDiXqldlkf 7zog== 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 :references:in-reply-to:message-id:date:subject:to:from; bh=YXHOXVi+60h27tPLDD0H7DUjieErYZyrIwmYjmaP5xo=; b=J7oNc8YJtrYM5MDvGxbVRIeWweIXUCgjDKPSAowy3b+3MqdzFcNHaOhV94f319E/yS CVQnddGfy1SBBpO57yPi1cbjXQBqyMLA0RBLBCiFravZKjPgXmD3UJG/6Hmzd2L3BGvb gEke8NJ+yP1z6Ln/Tp/96YKiROpy6kdWjOmHxA9HYbOhQW9u5EY5hcapM+snx17nhUv9 r4TmNjh29sNX9L/Nj2nVihF8I0Gn3pclIpxTOZLBTDNyoelimVUHf37emE6vHnUfme8c 4XDtcIwn6kaPO+KJgWSrwiauY8WHMq/T8yCerwQ81io74K7ZE6yvlnxKQB0BGrEqD1FZ 5/yQ== 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 v3si13597918edc.404.2019.09.11.19.56.27; Wed, 11 Sep 2019 19:56:51 -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 S1729118AbfILCko (ORCPT + 99 others); Wed, 11 Sep 2019 22:40:44 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:55010 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726952AbfILCko (ORCPT ); Wed, 11 Sep 2019 22:40:44 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id D8DCBFB02; Thu, 12 Sep 2019 04:40:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VqZf75Uf_RKR; Thu, 12 Sep 2019 04:40:38 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 5495846CBF; Wed, 11 Sep 2019 19:40:36 -0700 (PDT) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: "To : Lucas Stach" , 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 , =?UTF-8?q?Guido=20G=C3=BCnther?= , 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 Subject: [PATCH v2 1/2] dts: arm64: imx8mq: Enable gpu passive throttling Date: Wed, 11 Sep 2019 19:40:35 -0700 Message-Id: <0ab2ee7de9c2e24f6de860ffcbcdfc25b72c2c61.1568255903.git.agx@sigxcpu.org> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Temperature and hysteresis were picked after the CPU. Signed-off-by: Guido Günther --- 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>, -- 2.23.0.rc1