Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2278477ima; Thu, 25 Oct 2018 12:25:56 -0700 (PDT) X-Google-Smtp-Source: AJdET5d7haPu9D5rGJHax0zj3VBin5+E+T0hWcordYvNtE50tzlsFdV9PCWdlUL3R4ps+t/nH9xW X-Received: by 2002:a63:e116:: with SMTP id z22-v6mr466757pgh.20.1540495556387; Thu, 25 Oct 2018 12:25:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540495556; cv=none; d=google.com; s=arc-20160816; b=WUxHmupACBJiTlx7/+l+EM9Bu6lY6o6HTBb7HgQHuNzysfR+ypo/4bDHg6SzshkiN1 S0wciH5eMY0k2zHT1TBajYwnCEj42GEOubATtqIERL/SlsjJu87IobVOEz43BYmryuZr shaZ0MoO0CMgcET4ZGf64ELSMaiMtLb9A1wIAvDI19SFr1rw8FP9xhKO+pJ1/9fMsXRQ nSVkZhTzzQtiMMnd5gkijPGtdMOkybrx2ncjqwgdJ4dlP629neTiL9P3FWFzsDxBzlTb GuoA9MWyqx6z71DxRnaBx1JVhSREjn5fMC0onfnhT/wii4kD8pnS8bagiKgzy7ZnF0t9 2Lxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NPH3tMTu4mDqEHhi0QXHxZfFPgrj0p8zunC7Skd0SeM=; b=L8uhswOJI7ARgAr98/1NN3kQoG/j1W9NLGTtSzROkm5pElHLuWueJNOtC6+0UIc+yv mDDpV4UO/SN0DGytqBRq4ei3Ehq2PxeShWSmvHVdh0Pb8tLqvTIhdetqR3fXRhdE53qc xZU8OH5JV2jQGnXKVSt++ig3X/AX46iUtUk73gsVQ4xAg/wy2vzqCG8QbGlLR4sJ2zpO TNFBq8jc2CDqDIu8wMJ/grJX0KvPJ4ya4BIx8Wt7by/kFjHwHgiML+PT/OPY/IKauSK0 JiaWavb9ERU2oZg5Siatadth+1NA8/dHo+IBNUwyGtAtB/90Y0AR1ygS4H2W7p/G4w87 BICw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fGWPTzJ4; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q20-v6si8942731pgj.379.2018.10.25.12.25.40; Thu, 25 Oct 2018 12:25: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=@chromium.org header.s=google header.b=fGWPTzJ4; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727818AbeJZD7H (ORCPT + 99 others); Thu, 25 Oct 2018 23:59:07 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:42006 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727805AbeJZD7G (ORCPT ); Thu, 25 Oct 2018 23:59:06 -0400 Received: by mail-pg1-f194.google.com with SMTP id i4-v6so4464065pgq.9 for ; Thu, 25 Oct 2018 12:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=NPH3tMTu4mDqEHhi0QXHxZfFPgrj0p8zunC7Skd0SeM=; b=fGWPTzJ4gx+5ZHMfSqcGvGbyO0HytTdiK19JcJiDvGKGoVkd/IxRCbQTZ2CenCTLst sEXmgGeumvUPU2K4XcbWnejbSNjVNKDR8sfgdzttiRvuGiNIqS59TdFVvBKpp6bRNTKT Mw14jnKy2gp4bBBUcBqkWbFeyhxhvr/m2vpmk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=NPH3tMTu4mDqEHhi0QXHxZfFPgrj0p8zunC7Skd0SeM=; b=Vx9zL22/fdpPe2YS1621b7brvNdOJyRhC04KlWp5tMFxi34/hzCT/xOPij6Df4lyxj BZJ+lChZfYSYAmRTv6krhl03TCrUIxONBlwnzhr9ZyvU7wCntXohzG6m4oOMyO16UGEc TJ1pl+10DFCTGFz986apRSe6Jpo2Wcd3Lt1vavI2X7YwVo4MQsuXwDbCvcyqqz25IdhJ KEjL9pYZfRAj1UHBeJyGD5rzuIOLTo/XZbhD9fUN4DyPlgXj47J8tTN4GqTtV3pcj4/q UOddh08J5Qhxzn/TNumr3MRN3QG2W1oz5ZETjU0nmPtPfS/S1B/hDPkwkezdZ8PM52AH j6CQ== X-Gm-Message-State: AGRZ1gK6Gz5UX//L7Uu8Xo/H8pBflrtqiDwEBDuN4jGU091Rnvr5h5dT GT/uv0k7HKge2hFcoxTo3Y5cQw== X-Received: by 2002:a62:3a8c:: with SMTP id v12-v6mr496660pfj.118.1540495502679; Thu, 25 Oct 2018 12:25:02 -0700 (PDT) Received: from localhost ([2620:15c:202:1:b6af:f85:ed6c:ac6a]) by smtp.gmail.com with ESMTPSA id y12-v6sm18139247pga.77.2018.10.25.12.25.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Oct 2018 12:25:01 -0700 (PDT) Date: Thu, 25 Oct 2018 12:25:01 -0700 From: Matthias Kaehlcke To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, smohanad@codeaurora.org, andy.gross@linaro.org, dianders@chromium.org, David Brown , Rob Herring , Mark Rutland , linux-soc@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v3 16/16] arm64: dts: sdm845: enable tsens thermal zones Message-ID: <20181025192501.GZ22824@google.com> References: <5e2d5fc463a5f5623c4fc1b18ccdf62adc954758.1536744310.git.amit.kucheria@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5e2d5fc463a5f5623c4fc1b18ccdf62adc954758.1536744310.git.amit.kucheria@linaro.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Amit, vaguely related question, since you are working on SDM845 thermal stuff: Do you have plans to add CPU cooling devices? I raised the point during the review of the CPUfreq HW, however there was no clear answer: https://lore.kernel.org/patchwork/patch/966833/#1164748 The driver is still under development/review, but I wonder what the path forward is. Cheers Matthias On Wed, Sep 12, 2018 at 03:23:01PM +0530, Amit Kucheria wrote: > One thermal zone per cpu is defined > > Signed-off-by: Amit Kucheria > Reviewed-by: Matthias Kaehlcke > Tested-by: Matthias Kaehlcke > --- > arch/arm64/boot/dts/qcom/sdm845.dtsi | 170 +++++++++++++++++++++++++++ > 1 file changed, 170 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > index 0c9a2aa6a1b5..eb801922f6bb 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > @@ -1104,4 +1104,174 @@ > }; > }; > }; > + > + thermal-zones { > + cpu0-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens0 1>; > + > + trips { > + cpu_alert0: trip0 { > + temperature = <75000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu_crit0: trip1 { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + cpu1-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens0 2>; > + > + trips { > + cpu_alert1: trip0 { > + temperature = <75000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu_crit1: trip1 { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + cpu2-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens0 3>; > + > + trips { > + cpu_alert2: trip0 { > + temperature = <75000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu_crit2: trip1 { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + cpu3-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens0 4>; > + > + trips { > + cpu_alert3: trip0 { > + temperature = <75000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu_crit3: trip1 { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + cpu4-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens0 7>; > + > + trips { > + cpu_alert4: trip0 { > + temperature = <75000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu_crit4: trip1 { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + cpu5-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens0 8>; > + > + trips { > + cpu_alert5: trip0 { > + temperature = <75000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu_crit5: trip1 { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + cpu6-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens0 9>; > + > + trips { > + cpu_alert6: trip0 { > + temperature = <75000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu_crit6: trip1 { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + cpu7-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens0 10>; > + > + trips { > + cpu_alert7: trip0 { > + temperature = <75000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu_crit7: trip1 { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + }; > };