From patchwork Mon Sep 10 07:17:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 146287 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2172179ljw; Mon, 10 Sep 2018 00:17:33 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbywg1bFx3wh2LOD0djWLbgVr6Tw1gR3EcZe0uU3+Yx8pFgAtbcvQrc3DzEBehvDba3t/WI X-Received: by 2002:a17:902:c8:: with SMTP id a66-v6mr20480470pla.269.1536563853322; Mon, 10 Sep 2018 00:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536563853; cv=none; d=google.com; s=arc-20160816; b=WwRXBuGTCzsDHAXbiW8HuuV+qg7naNG8fhoCiv2incol7W4czmTZ9mCzZ7jAHNcIVi cLcBZNEJuU5tlB1p7cfhcntB/u2JKUMq+nO1xHqCFRy8Os/9OAzbXuvrmO7ijXwuilSa pd55KXV6gGILKIpjk4T03y2iHJO5GbY7ZeiZtlXXLPje3pn3G7W9qqYRvaI0SXOQFjSD sb10JCcpAZ760TXJKVT9h3oTIdWlg9pM4yY01A+TAKEl3qS2l/Hztm0C7s62VndU6jYB RW720ZEv80+yELZo3Qn2E1Enh/IvYi22SRnY1GsczrhvZYG/UA14m4ni2YFL4dwKUJsY /O9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=QeCifftAwNierF00ZXGccAXC6GN8pVph0sqiZdMEE8I=; b=X1HeHF2h9WyWi3lOLkon3ADegskUWJAnRv3p7rJO3yEw0eDkzz/I0fDJ1aUB9/HpL6 rHVwbq9QKRt018NR+NHG8GSU7PCS6PRKbplDkSahUXkShWH7PErcS0BJ5Hv/ylj2DPK7 ncvIZPBX5TLGWcr+C5u1Jz2xIEPU/gcT08DmiRfqBs4D5qHw2z67ZQ/KOKCINPAZEPee CaBW8lhVNbFVRdQna5g3THjdQK5+0T6flR0RdNLWz6JvXXa8X2RYg2LLFFQvVqUrF9PL KpDm1C2NMTuQvTkO3OOpL1fEuafD/8vVD2whDCEg/MViOBAussbkwEpk4GnUl9GxAmiU 1dtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hfa6G2ud; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4-v6si15606554plr.213.2018.09.10.00.17.33; Mon, 10 Sep 2018 00:17:33 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Hfa6G2ud; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727880AbeIJMKG (ORCPT + 32 others); Mon, 10 Sep 2018 08:10:06 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:38948 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727859AbeIJMKG (ORCPT ); Mon, 10 Sep 2018 08:10:06 -0400 Received: by mail-ed1-f67.google.com with SMTP id h4-v6so15683112edi.6 for ; Mon, 10 Sep 2018 00:17:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=QeCifftAwNierF00ZXGccAXC6GN8pVph0sqiZdMEE8I=; b=Hfa6G2udqYy0Gf2BMRbyD1UnEP0tVoLRkTni80ik0l9g9kI4JTZ7BPVav/AUAclyXq KKlzmchMLDAokIeG9F75nvl3RsCEJQEwQD6XEqx6/jdbycUjvpDAi/hFQXU3cj1F9Q/t BuzB18FSJfXkamWUvVEOTtHzqhCoT6QpA4McE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=QeCifftAwNierF00ZXGccAXC6GN8pVph0sqiZdMEE8I=; b=AxANkx2LhH+ezSjY+G98w8FHABtSuIrNIr0QgbmVeaXhwePs88jXiEETc9cuKxtC/a RLeO1mrXdcOP9Dj/Nk+eyAEJnYmTur4pF+2elJm480TElgfILDWs/Qc7nCc/7LF9FLiY x9UG4QhwfUTN5ANuV08+on5IASxKfidt5H24aUAPHzIXv92C0V4Po9zlMvM+9EFrVGpZ xV21qvsWcl+5v+CrUCq6e+dBXbS7dErXkPeAyWTmq6dfahyO/mggatDDn5p9pNwlhDri WQ18thPtftZrQ/xWcaNtvTWLExTb0Jv65e1xfhLRhy90WYrRXMTWi8JIDSlQ1kfUsovL Xolg== X-Gm-Message-State: APzg51Dya9OFGhrsvn/pruONZY2PkQLLFgGo3keeV1BTfcP+4PdSJh+c gXHGgqWfSr1KjADDJiVW/6DH1IhhdoQ= X-Received: by 2002:a50:898b:: with SMTP id g11-v6mr21881633edg.82.1536563848345; Mon, 10 Sep 2018 00:17:28 -0700 (PDT) Received: from localhost ([49.248.190.103]) by smtp.gmail.com with ESMTPSA id p28-v6sm10908039eda.85.2018.09.10.00.17.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Sep 2018 00:17:27 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, andy.gross@linaro.org, David Brown , Rob Herring , Mark Rutland , linux-soc@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v1 1/2] arm64: dts: msm8916: Add gpu thermal management Date: Mon, 10 Sep 2018 12:47:14 +0530 Message-Id: <3f859c7f5af7955d779cdaa88fc09f0b1d79a35e.1536563656.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Initialise the gpu thermal zone to export temperature to userspace. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 7b32b8990d62..a494196a657e 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -237,6 +237,26 @@ }; }; + gpu-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 2>; + + trips { + gpu_alert: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + gpu_crit: trip1 { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + }; cpu_opp_table: cpu_opp_table {