Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2416048imm; Mon, 10 Sep 2018 00:18:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaIgnpIpgIWHaoU0W2k2zGFSxMhn3yA6sQ+atCflUlBfFC4D0NOLfLzztDsrlsZRzl/aIiq X-Received: by 2002:a63:380d:: with SMTP id f13-v6mr21112127pga.124.1536563936960; Mon, 10 Sep 2018 00:18:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536563936; cv=none; d=google.com; s=arc-20160816; b=rzyofpw6QBCnksXYx0vDYxj9UK4rG4XovGxyg8p8IGlJerA/L3OO+2lQlwRuLvgsI4 s/TsaWL4UQK3pTyQDiuwWDUXyeS00bPDf8LFwLblj1+dDxdF0GSWKHop3qO7qn2PAzOH SigsNCjfecNNU9Fa1jsXJdYXA0/lWhNsfBAGom/pNMV/DFKQ3T667cIdmraHH2uomI+y Mh4W4XadFyl0Ve62R+o/k2KWYL0AVHjJkaHPzTAud+iXu6I2TzwjTnusBcFPeGb34nMu +05XjfQH+5jm9g6bj0ZNF4QhsM2EvBu4Apov9ydqR5C5129zMB0uBrP762XFSCjRXCex ZePA== 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 k1-v6si15710096pgh.65.2018.09.10.00.18.41; Mon, 10 Sep 2018 00:18:56 -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 S1727877AbeIJMKG (ORCPT + 99 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(+) 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 { -- 2.17.1