Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp372819imp; Wed, 20 Feb 2019 01:40:37 -0800 (PST) X-Google-Smtp-Source: AHgI3IaLhBNGhkF4Csp/tzSmW+ycbk+pBCDGqyFNAvv9EnAs0ic/Kn6G6sW2e5Pt3+v2kNFmvVHv X-Received: by 2002:a63:5f0f:: with SMTP id t15mr28253017pgb.272.1550655637406; Wed, 20 Feb 2019 01:40:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550655637; cv=none; d=google.com; s=arc-20160816; b=DvTTuzzURKeeWVsL8blXtTREs5NT90s3Md8xTeeq2LSDRmXiZK0QxoKhAM5TBeelag nsAFNSW364Z2r7DJJyC8SgOdRhaA5utpoJU3GYOvviqFgM0+8i87koIuiPSvQ+Zf9MMj +c/wuXCW88T42E8B0MZAJTmLSbD15MD+D4h11y9B9U3lWpFlMd9y84l1NfsosMet1Dve HorkRDcKC/1ZoIQOUtijtZXpmyIgEJU+JUYkdFYpQFbaPiRtbx591vCMWNCwnihA2GwS DnYMnb48A3Tbw2dNzsMrDgtbbOE67byz8d8XA6Ifg7pqZ4oMD2UGKUTJYHEfDvtoz/yy dY2A== 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=Y/FeZwyfXZgABbUk5xrhGDGca9vhxZXVbpExDFFXW6M=; b=HbWWMIUTNWAjEsFSWPyWUzRWvurs61Sf1DoU8Dy0vPLMdV0rrlvmuj2GAR66HzQceH ScWgAfezvYUQ6alfDj/oV+tFo5nAirvQh/nRxMwEkol49s+7SABXkYTAtq+Z8doPFNy9 +D4QeH1H/VR6qTcjzv+s9UOt+1ssENVGDOEC9sksFSbyhFOtYE9l2VRHuOwKUaxzNyxz lQSngF2CP9U+fB47FawCsJG5C7FqwlcZ6t2JSFkK3vM2hzRIvlZO9yznLyss9zq5AGeQ T9AW550j27gW3C/7PxErYAOYGPz9m6Cs++6LoqVuqSlUIzPL/eBmW7FQS7+T6YoPtohH GjIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qgXI3UvU; 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 e192si17867411pfc.28.2019.02.20.01.40.22; Wed, 20 Feb 2019 01:40:37 -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=qgXI3UvU; 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 S1727004AbfBTJjt (ORCPT + 99 others); Wed, 20 Feb 2019 04:39:49 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:34629 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726000AbfBTJjs (ORCPT ); Wed, 20 Feb 2019 04:39:48 -0500 Received: by mail-qt1-f193.google.com with SMTP id w4so26498717qtc.1 for ; Wed, 20 Feb 2019 01:39:47 -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=Y/FeZwyfXZgABbUk5xrhGDGca9vhxZXVbpExDFFXW6M=; b=qgXI3UvUXjfHuV0crOZRbiAHjDUXi6cKG42zNtdcb6yWAm/Vdu3NVq0veolArnT7Y9 JHcMMSW0zzYr3RsbSgDQRRl1yQto8/gAQ4VRM1IjsTjyGBnuj9pBns1Et0NJMVo5vXEh mgTu7diFhuMvJ2Dssy43fPj9qi1VollfRzAxjW9A3poA3QRu283BkJnq1Nhs0w9bbSdJ XnTRAUtloVhtD/aq2ABJ3VPtBJZEhsQvywQlViSDfUMF0p433urSPEEqba/vJL6ZuYEc VlprmRMaDuqNShTjPNkGWdxUFkWRdbVynHJ7x/1w/HPeav+3WydpD/Pbk0vCEDAwkPv4 UDWw== 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=Y/FeZwyfXZgABbUk5xrhGDGca9vhxZXVbpExDFFXW6M=; b=WhynOufwefNty8R3IS+2W4hhMDc8uPOoPRB4xOWmBzG6OOPEWQJP28x3aCEdd0dPq1 GpxaQ2OU+IBMV4usNRDgJkup4CBzG3LaqCv7KPNYLNvwi9uc1rYZeqGFzJpqu+WfXxj3 4y8ilzFxJmfQ7irHIDWcBalRqqHY+wrVtbPUQhic0iUJNlMz+0smnXG6Dgq4jmEtArbP wbCNMcQeJ0Yqo77C/bpk5h0qa773aX1VZOjFITOru/HjI9yobust8ElqshxhmAjFx7h9 pxGkgiYTrnE0kgAzZ7sQQPxPIyj1P3yTxH3/OzgUpopSjP7alaN+jKLiXOB3G4b0tnda bPLA== X-Gm-Message-State: AHQUAuY2+Heikkyle8dIAPhHjKVUZOfVPqHcg5pskBTj5Rxh+iWDPYqP JBeomuUfhubXSAOyLwc6bXVJXcXebuMDAdcgWnvZrg== X-Received: by 2002:aed:2a2f:: with SMTP id c44mr26528763qtd.144.1550655587339; Wed, 20 Feb 2019 01:39:47 -0800 (PST) MIME-Version: 1.0 References: <20190220012641.GH2811@localhost.localdomain> In-Reply-To: <20190220012641.GH2811@localhost.localdomain> From: Amit Kucheria Date: Wed, 20 Feb 2019 15:09:36 +0530 Message-ID: Subject: Re: [PATCH v1 00/12] qcom: dts: thermal cleanups 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:56 AM Eduardo Valentin wrote: > > Hey > On Mon, Feb 18, 2019 at 06:05:14PM +0530, Amit Kucheria wrote: > > - Expose all temperature sensors on msm8916, msm996, msm8998, sdm845 > > - split up the register address map for msm8998 > > - standardize names of the various thermal-zones across boards to make it > > easy for test scripts to parse > > > > I am generally fine with the effort but please fix the following > (applies for the whole series) wrt to required properties for DT > thermal: > a. Trip points for your zones Thanks for the review. In some cases, the temperatures are just exposed so something in userspace might read it and do something with it. We don't expect kernel trips for them. Adding trip points also requires me to add cooling-maps (your point b. below). I guess I'm looking for an example of how to just expose sensor temperatures w/o any associated trips and cooling maps. > b. Cooling Mappings for zones that have passive trips. > From what I can see currently only CPUs and GPUs (among the major heat sources) can passively reduce heat by reducing frequencies. Things like cameras, display, video might have a more ON/OFF approach to throttling that might be controlled from userspace. And we don't have a way to tell in DT that these zones are managed in userspace (https://patchwork.kernel.org/patch/10259487/)