Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp357249imp; Wed, 20 Feb 2019 01:19:21 -0800 (PST) X-Google-Smtp-Source: AHgI3IYahcJ/JXTtGDiAisx6SDn9K0ij6FD2Xb2ZNXfD4qUh8mPnIH+fG+zYYW3CNN4EVqaQHN3b X-Received: by 2002:a63:cf01:: with SMTP id j1mr18221539pgg.342.1550654360908; Wed, 20 Feb 2019 01:19:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550654360; cv=none; d=google.com; s=arc-20160816; b=kAW4tCggzf3+7Iu3euxehaQ9B3/m0+e+s6cAJZS5pUbbN0cNguxQmmid0jo4q5SYQs IOyXB8eV5pFdhzHpHG8yzclKysc+lMoRxVZTl5UdFQK+zwiLmJ2wdxnVfoPctNpcVr3W Vxw9IdYNxS4c9Tgw2JXKtHBiW1ftnWplf2Br98TRT6HkPiOR3dmfe1OE1nf5WPIdSaiq upZF4+C9Mwrpj4MxJgB3wATTr1iLyLMPiJ09/Hz9JAxWRVwTRiIyPhjwi1XO/3MPvTzS WJKhK4mJq1hpl5eixbhJUi+nLAAWG9fu1I1eAR5RrGuB4+w1Ghw2yndumnInsv8oAmrz L05Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=aDbcccDbYW214rw2VMd5CZdvwhmnQLjONdFvmfgd2jI=; b=USV5NJE474maf5YDD4lP2rjEWPV4Pc5EGTs41oiuvc0KiAPYjCwBnR0q9mH0WlpQnE j4Ohf/Y6D5vQM5AZ/IGtI/4jg80YBsp2E08MVwsT6l/zKGMr6HcqynTXDozBNiOm6bPg WWTe2KwCyHV1smaluczxORba3r2h7ZSqpU0AxGRAOL5P/OdNL1Fg9aBIrGTM7EBe6svd 7Qei4AY5aHH7aPNMnimthe4noyPZ7VrlxyoXmRVCZ1n8DS7dHZqbST5GnruZIuMj60zn tjBjELP/tzav+M0fz1jj0VRe23Z5Ecc7d9jjYBkCsKFfLQzXXu42nffY5E8WPpqKcUYw M0CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iBh2ccvg; 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 y16si10459257pll.83.2019.02.20.01.19.05; Wed, 20 Feb 2019 01:19:20 -0800 (PST) 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=iBh2ccvg; 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 S1726668AbfBTJSo (ORCPT + 99 others); Wed, 20 Feb 2019 04:18:44 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:45761 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725989AbfBTJSo (ORCPT ); Wed, 20 Feb 2019 04:18:44 -0500 Received: by mail-qk1-f194.google.com with SMTP id v139so1528365qkb.12 for ; Wed, 20 Feb 2019 01:18:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aDbcccDbYW214rw2VMd5CZdvwhmnQLjONdFvmfgd2jI=; b=iBh2ccvgkNjyQlnxDZhhSDRiscPVSf14I/rVs/29ajGqQLhklh+OFud7jaDVYGDQlx W/Qo5unTPuwsBG9G/PjMPEW9Z+Jf16UoJbBcGE10ZVLKT6sPh4NMQl3HOKvTu1qXNjDi +lHP73EV1n8CWDIkKpz9FuOkyGHwAQoswQW5/oaMlf5kRLbaaefDDE+uLaEdyuQDg7MG //6XHgKIUd7cwgu8++ZKwaxlD5bCYbRxDghgu1zJpg+41T98mdk7XVBTdLXqNRdpOVtm gqLTNrpSKlL03YB9EOy/2uwIXDAj23y1VYYrlwXOfUkwSu7CmWN5Lz7evUJnobzSNNup LLOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aDbcccDbYW214rw2VMd5CZdvwhmnQLjONdFvmfgd2jI=; b=Zfcukw12+0edYoUze8RAEyKLq0aRhrjVOnIKkDgp8WULv4sDC6rufyuO1e1/CEvwQD zxXzZ8skDfRnpjwJAKeHUdhTofQpKe3m3vGpzVp0HvURY7X7VGbTNpWruhsLC7BPrSFf 8XVzz6w3hIJDRoj9K3PM2k8dn7jAu3s8/1SMveKJw4v9+Y33Y4IcZUF8XCN1ccVtCarK hUwcHjcy0NAN/YGyDmw4Cg96aNFSOZkIoLhLdk7IWUsRfsKareeeJ61fJlts0nte0Zs5 iRRwOVA1IxwgvCT3FheDUNO/J96B3Hb0ueXZdx9xVTnpyEtTSmv/TMJp5l/lNYSsv4hX Xycg== X-Gm-Message-State: AHQUAuZ6NZDINk5t4zw/OS+c1RHv2SVkYBtX4D/fnp++URMw4nzDIjor HGpnNKLOIY6vYUdBX+5VV97hNEFGvSBERBrcW/Fwdg== X-Received: by 2002:a37:b12:: with SMTP id 18mr4032686qkl.125.1550654322971; Wed, 20 Feb 2019 01:18:42 -0800 (PST) MIME-Version: 1.0 References: <51feb49578f6e412eb5e80012dc63eab5532342b.1550493113.git.amit.kucheria@linaro.org> <20190220012456.GG2811@localhost.localdomain> In-Reply-To: <20190220012456.GG2811@localhost.localdomain> From: Amit Kucheria Date: Wed, 20 Feb 2019 14:48:31 +0530 Message-ID: Subject: Re: [PATCH v1 04/12] arm64: dts: msm8996: thermal: Add temperature sensors near major peripherals To: Eduardo Valentin Cc: Linux Kernel Mailing List , linux-arm-msm , Bjorn Andersson , Andy Gross , David Brown , DTML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 20, 2019 at 6:55 AM Eduardo Valentin wrote: > > On Mon, Feb 18, 2019 at 06:05:18PM +0530, Amit Kucheria wrote: > > msm8996 has a total of 21 temperature sensors. Populate DT with > > information about them. > > > > There are 2 sensors on each of the cpus - one on the top, the other > > below (we only expose one on the top in DT for now). For the GPU, we > > expose both, the one on the top and the one below. > > > > Depending on the version of the silicon, sensor 2 is either placed near > > the L3 cache or the venus video decoder. It would've been nice to be > > able to be version-specific but we don't have DTs that differentiate the > > two versions of silicon yet. > > > > Signed-off-by: Amit Kucheria > > --- > > arch/arm64/boot/dts/qcom/msm8996.dtsi | 98 +++++++++++++++++++++++++++ > > 1 file changed, 98 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi > > index ae6e9f0778f0..8e36a39e1386 100644 > > --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi > > +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi > > @@ -237,6 +237,104 @@ > > }; > > }; > > }; > > + > > + gpu-thermal-top { > > + polling-delay-passive = <250>; > > + polling-delay = <1000>; > > + > > + thermal-sensors = <&tsens1 6>; > > + > > + trips { > > + gpu1_alert0: trip-point@0 { > > + temperature = <75000>; > > + hysteresis = <2000>; > > + type = "passive"; > > What is the cooling map for this? I'm working on it. Will send out an update. > > + }; > > + > > + gpu1_crit: gpu_crit { > > + temperature = <95000>; > > + hysteresis = <2000>; > > + type = "critical"; > > + }; > > + }; > > + }; > > + > > + gpu-thermal-bottom { > > + polling-delay-passive = <250>; > > + polling-delay = <1000>; > > + > > + thermal-sensors = <&tsens1 7>; > > + > > + trips { > > + gpu2_alert0: trip-point@0 { > > + temperature = <75000>; > > + hysteresis = <2000>; > > + type = "passive"; > > + }; > > + > > + gpu2_crit: gpu_crit { > > + temperature = <95000>; > > + hysteresis = <2000>; > > + type = "critical"; > > + }; > > + }; > > + }; > > + > > + m4m-thermal { > > + polling-delay-passive = <250>; > > + polling-delay = <1000>; > > + > > + thermal-sensors = <&tsens0 1>; > > + }; > > + > > + l3_or_venus-thermal { > > + polling-delay-passive = <250>; > > + polling-delay = <1000>; > > + > > + thermal-sensors = <&tsens0 2>; > > + }; > > + > > + cluster0-l2-thermal { > > + polling-delay-passive = <250>; > > + polling-delay = <1000>; > > + > > + thermal-sensors = <&tsens0 7>; > > + }; > > + > > + cluster1-l2-thermal { > > + polling-delay-passive = <250>; > > + polling-delay = <1000>; > > + > > + thermal-sensors = <&tsens0 12>; > > + }; > > + > > + camera-thermal { > > + polling-delay-passive = <250>; > > + polling-delay = <1000>; > > + > > + thermal-sensors = <&tsens1 1>; > > + }; > > + > > + q6-dsp-thermal { > > + polling-delay-passive = <250>; > > + polling-delay = <1000>; > > + > > + thermal-sensors = <&tsens1 2>; > > + }; > > + > > + mem-thermal { > > + polling-delay-passive = <250>; > > + polling-delay = <1000>; > > + > > + thermal-sensors = <&tsens1 3>; > > + }; > > + > > + modemtx-thermal { > > + polling-delay-passive = <250>; > > + polling-delay = <1000>; > > + > > + thermal-sensors = <&tsens1 4>; > > + }; > > }; > > > > timer { > > -- > > 2.17.1 > >