Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1028537ybp; Thu, 17 Oct 2019 07:05:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCk7vQ5XaXJvGwBDfkvIvcLSqh2EKgwCjUlBUwoduFhEcwX3ZHe0KhMlmwl2yVfqH6Ndq2 X-Received: by 2002:a05:6402:21e8:: with SMTP id ce8mr4037858edb.32.1571321101684; Thu, 17 Oct 2019 07:05:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571321101; cv=none; d=google.com; s=arc-20160816; b=h467Tj7KDZa1slC7YXbkEkX6QYPVwat5M7FZSVN3hRvShfCBamb89dqqRf/tZHmT/8 4G0bCloWZidZ9XDaMrTaPS8O+xD0wqQVKKP/aQ+0RUy6JsrkdPsxyDY+9YULwfH5YGv9 CKgef0WBQod28Z68JuAiQwi5ip5ba/vz16zMXZ8RqhdbMCc87doyUIaNGeeiARQE1Z/5 e5mBgsFAO4d4OwQRzfWocqnP/obAibYr6kaa2yzj4R0qsJ72WzCfUj6x9Nr1/tb1fBSn jIvacovjYtc+ReEXDEt6chTBiVlAOTEuC+8sJMHZQJHp2RtctdzX28iGd0Af3kQTlaza QNeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature; bh=gWxE/KKsGAGRNuWMBZchdW//NFYZ4z1sPA0PZe82a9E=; b=WDEWbaKhpyfvcMwn2JoK+DedjGRlbqXwjA22Kj+TsF2GcRXuN2avCwxrgtM+GqfnDE Z4Yj9YPGVqJDfTiuvT+c3sILsy4pUUlngJ10FttmK70giiBGo/c2JKtUmIsbGXXq/j9n k22+vUAD6myKyZHHjzCmjuXMa9wTlOKTRejXAEJtEyRLzb1Bx7gMFdgezwdw5cBCUiVI xNSvE3xySiKaRPo1XX5/8LxTQUmYMQYOR43FqEPTIVCJEUb4U60Wvbzzwl1XGHHYSgHd kYTXxLA0VMA37Kz1zIifglaor1ABZiGscqxQ1kLl7OHcTXOCMKvDIkT8uI/qVjfGo0pK Vhng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OIkVZAPC; 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 ck7si1382933ejb.250.2019.10.17.07.04.34; Thu, 17 Oct 2019 07:05:01 -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=OIkVZAPC; 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 S2436771AbfJPVYN (ORCPT + 99 others); Wed, 16 Oct 2019 17:24:13 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:43118 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394411AbfJPVYN (ORCPT ); Wed, 16 Oct 2019 17:24:13 -0400 Received: by mail-qk1-f194.google.com with SMTP id h126so24207760qke.10 for ; Wed, 16 Oct 2019 14:24:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=gWxE/KKsGAGRNuWMBZchdW//NFYZ4z1sPA0PZe82a9E=; b=OIkVZAPCR9MXbvkmja2BT1NScH1NPHVGU5efTmIcYrM7juiRIQ2kmmIDudPuCXHGRR yjRNIQfkUco4XzP678q+cjEL+NUHTOWbdMIac93fVtBo+Zf3Yw5PqL5/euaCO+j9fNTv qkMRwTijfTJZBegfInhXGrrVQjlqvOeFI82Bu0KzcpPz/h4kQgFuKeUt6DdhRWlSdx25 XEqK0s/FkevPjtOoB/JkxYW4jiNvgODoavQkux5NKBI9ikgcsmk745PVkcrF9jPxo2uS FNcePlr0UwSD18fWxtJj7eHB2g3cOzAywb4sa4eEL644aAXZ3nM1FIz/oHOyyh3twGus 2r0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=gWxE/KKsGAGRNuWMBZchdW//NFYZ4z1sPA0PZe82a9E=; b=P0dRCAksGuaWR5Y67eJJ/HyL4HCJr7RK/ljlWgY4WwDj976z1wK5sQVK+Ww1cRfIY7 rTo1IfyrAiFc4qSf61s4IDGpX1saIuL15Lo0vxBatAjeCk80Cxhzijygj0wfycf982Bx B+QRZCaIlaq5wUnxmkIzXn4NEh4g+Per5TAI9dvp3jNvPhXn7JwPI/AyKQ/sD2+c07CU 4JK8zRzpm3XDfFIBDB+lyqkm0bQh5OkOu5sYubs9NNb1nBcBj8NTvjOVVUYIk1q++769 ZuIG9CuAMYgdjUCeHYg4sIy66RotagSr62T7WpkVEuC3bNfcUiKJvP9XZW5yP4iQm08u nZ9w== X-Gm-Message-State: APjAAAUae2M0ySC/X982J/PZc2YuAoLh5VABgGwzpOwTlSKIRaVaHCiu F5xEOsK6EZjGF2e23XoDBxzh1aX+gYK/5Q== X-Received: by 2002:a37:5257:: with SMTP id g84mr43399596qkb.247.1571261052011; Wed, 16 Oct 2019 14:24:12 -0700 (PDT) Received: from [192.168.1.169] (pool-71-255-246-27.washdc.fios.verizon.net. [71.255.246.27]) by smtp.gmail.com with ESMTPSA id 22sm83356qkj.0.2019.10.16.14.24.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Oct 2019 14:24:11 -0700 (PDT) Subject: Re: [PATCH 0/4] thermal: Introduce support for monitoring falling temperatures. To: rui.zhang@intel.com, edubezval@gmail.com, daniel.lezcano@linaro.org, vincent.guittot@linaro.org, bjorn.andersson@linaro.org, robh+dt@kernel.org References: <1568859503-19725-1-git-send-email-thara.gopinath@linaro.org> Cc: amit.kucheria@verdurent.com, mark.rutland@arm.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org From: Thara Gopinath Message-ID: <5DA78A7A.7030400@linaro.org> Date: Wed, 16 Oct 2019 17:24:10 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1568859503-19725-1-git-send-email-thara.gopinath@linaro.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/18/2019 10:18 PM, Thara Gopinath wrote: > Thermal framework today supports monitoring for rising temperatures and > subsequently initiating cooling action in case of a trip point being > crossed. There are scenarios where a SoC needs some warming action to be > activated if the temperature falls below a cetain allowable limit. > Since warming action can be considered mirror opposite of cooling action, > most of the thermal framework can be re-used to achieve this. > > To enable thermal framework to monitor falling temperature, a new parameter > is added to the thermal trip point binding in the device tree to indicate > the direction(rising/falling) of temperature monitoring. Thermal DT > driver is extended to capture this information from the device tree > entries and to reflect it in the thermal framework as a new enum > variable in the thermal trip point structure. > As an initial attempt, step-wise governor is extended to support > bi-directional monitoring of temprature if a trip point is hit, depending > on the newly introduced enum variable. Finally thermal sysfs entries are > extended to indicate the trip point monitor direction. > > Patch series introducing various resources that are used as warming devices > on Qualcomm sdm845: > https://lkml.org/lkml/2019/7/29/749 (already merged) > > https://lkml.org/lkml/2019/9/10/727 (under review) Gentle reminder for reviews! > > > Thara Gopinath (4): > dt-bindings: thermal: Introduce monitor-falling binding to thermal > trip point description > thermal: Thermal core and sysfs changes needed to support > bi-directional monitoring of trip points. > thermal: of-thermal: Extend thermal dt driver to support > bi-directional monitoring of a thermal trip point. > thermal: step_wise: Extend thermal step-wise governor to monitor > falling temperature. > > .../devicetree/bindings/thermal/thermal.txt | 8 +++ > drivers/thermal/of-thermal.c | 22 ++++++++ > drivers/thermal/step_wise.c | 59 +++++++++++++++------ > drivers/thermal/thermal_sysfs.c | 60 ++++++++++++++++++++-- > include/linux/thermal.h | 10 ++++ > include/uapi/linux/thermal.h | 2 +- > 6 files changed, 141 insertions(+), 20 deletions(-) > -- Warm Regards Thara