Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1049086ybh; Mon, 13 Jul 2020 08:05:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyVeIMsRA8fTzPhPqePB2HyQQ9pObov64IsZSJwsiRZ/z7Jp0nvv803wulEduV5/ULZ6HV X-Received: by 2002:a17:906:57da:: with SMTP id u26mr189191ejr.157.1594652757624; Mon, 13 Jul 2020 08:05:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594652757; cv=none; d=google.com; s=arc-20160816; b=qOGXRk9sWdfkc3sHfuOCADusXOAMtdT0oVcodujqo501q/u0s24M0mGyKgaR1yyA1e zwcqttUxrgzYAWnY4k7faG0e5uVLTQS5e8Khww/7uyZvYAv4sZMVqe/jFp3050mRaRwL rJlAQdgxH7AB6eye4seQrxNYIyf127AKddvgSriGqoqc2RDuqDORwNcayR90RQB3hqpv gP0bS4OBOAhzCbxB3mJ0fgkbuOKry4JH6pNiZCvxUD9IfU3hVsOtelyg10cycca2AjCv t4CP9a0WW4AuP74RJ1OgCZMWx6xYctbGO0ME3Yd5WC7T3/BvAGhGC6exerc0d2uCouhp tUIQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=hj7ei/4/U37aYVFzIdiyRob1Gsg4Hui2K44614n1iwI=; b=Yz40lJUmN3cjqFRbbpn9y8XpoCB1NiJKlzuRpaNGSvhNmEzWhnqPZ2xEM66yhayswx gKOOgLStH9IZEXM+zZgMfKeQSQ0AtE0x4Ru9vSho29r0K8inFpEbqKNUuGAAcNtdrZnC diPNc5t6CRW7lWJRBlJXDbjuCBcxZmCawxzS8OhWBF9iOtc8XiwGYdo3WC7BtATNV/+L GKZ2ENOX24umGfG0ogWYxzH72YnPPI4gMY4dSDL2oeJSitD66Yr9bP5mTrYdUehFb50o MmxSWW7fcdCkBNVlRTeSJX5Q8IN1odZ5FmYuqRfxrDLJ4Y5GnJ6hedxeL719BDhXDZRU Newg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i2jn9oc2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id k8si8327530ejs.735.2020.07.13.08.05.33; Mon, 13 Jul 2020 08:05:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i2jn9oc2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729811AbgGMPDI (ORCPT + 99 others); Mon, 13 Jul 2020 11:03:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729581AbgGMPDI (ORCPT ); Mon, 13 Jul 2020 11:03:08 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03FB2C08C5DB for ; Mon, 13 Jul 2020 08:03:08 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id f139so13493357wmf.5 for ; Mon, 13 Jul 2020 08:03:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=hj7ei/4/U37aYVFzIdiyRob1Gsg4Hui2K44614n1iwI=; b=i2jn9oc2zspqjTVmpnmwS8848CCRuvu5xsFu2vw3OlfkIRw7Fr77HxcgYjRAE3Mcyt XR7yS0fAqYT11ZspWkctOR1T6sUV0edIcASIZGPkgG5KiUkwqfj4mxdtR24+h1qNsXxN mSKEpGM4GcfiIjZwQvj1SesY0iKuwzcXeoZhrGx0oOfDhVnYzgdcyPwn93Esm1bxPHPR +Rjuax6h6eB+6Z/9CbF4kMjHffa8MbtXlMJrTqUNHOwHy15TFfWSSaHhqTzuRgLYLDSF oUm93NAXxBB6D2mhQntN0BOXU96MYVIZlw0MrXH2jTFNgO34gR1B/1beSyJUIS6ml78h iN5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=hj7ei/4/U37aYVFzIdiyRob1Gsg4Hui2K44614n1iwI=; b=nGYGogoquweoFLdqFHZLNtoYRZ6CE04y+wpmWjk8WFREmJKz97aI6hj+QNHyn7Nx9n Wa7DWWqB60wLPA5TDvea88evFWSH2u1RtuwV946tKJ8i7OP1waFC1DyO2eBpeUcFOTUA nA4a3ys7C0OnPzKlv+f2ccdur7T2+roVdx254d6qwpPl/mn9woHUV8on4Nq1Y6h11++6 AUOWoonMMOmmt9yp2VfHQ4WuKjs1lXpb8Xym7hfduWu/1Bv6+gSiFcAGJEv/gjLLztgx imQv80TOavmCkGmcGee+0jFykdkMOS5K/gO//c5k3jNoHO6Cu7JbglDyyVoyr+B8kReb 9rBQ== X-Gm-Message-State: AOAM5332+tt586IunC9Djjp+fDuhZmTP/+NsnC2VfOvMHbNBSJaymjFW rWckdQajZVQcOtKAO7OgNSaKAZd46Bs= X-Received: by 2002:a1c:e285:: with SMTP id z127mr353808wmg.162.1594652586275; Mon, 13 Jul 2020 08:03:06 -0700 (PDT) Received: from ?IPv6:2a01:e34:ed2f:f020:501b:b12d:3463:93f8? ([2a01:e34:ed2f:f020:501b:b12d:3463:93f8]) by smtp.googlemail.com with ESMTPSA id v6sm24316475wrr.85.2020.07.13.08.03.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Jul 2020 08:03:05 -0700 (PDT) Subject: Re: [RFC PATCH 0/4] thermal: Introduce support for monitoring falling temperature To: Thara Gopinath , rui.zhang@intel.com, robh+dt@kernel.org Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200710135154.181454-1-thara.gopinath@linaro.org> From: Daniel Lezcano Message-ID: <7437ee89-e76d-0c82-9860-5c6076ad8a30@linaro.org> Date: Mon, 13 Jul 2020 17:03:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200710135154.181454-1-thara.gopinath@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/07/2020 15:51, Thara Gopinath wrote: > Thermal framework today supports monitoring for rising temperatures and > subsequently initiating cooling action in case of a thermal trip point > being crossed. There are scenarios where a SoC need some warming action to > be activated if the temperature falls below a cetain permissible limit. > Since warming action can be considered mirror opposite of cooling action, > most of the thermal framework can be re-used to achieve this. > > This patch series is yet another attempt to add support for monitoring > falling temperature in thermal framework. Unlike the first attempt[1] > (where a new property was added to thermal trip point binding to indicate > direction of temperature monitoring), this series introduces a new trip > point type (THERMAL_TRIP_COLD) to indicate a trip point at which falling > temperature monitoring must be triggered. This patch series uses Daniel > Lezcano's recently added thermal genetlink interface[2] to notify userspace > of falling temperature and rising temperature at the cold trip point. This > will enable a user space engine to trigger the relevant mitigation for > falling temperature. At present, no support is added to any of the thermal > governors to monitor and mitigate falling temperature at the cold trip > point;rather all governors return doing nothing if triggered for a cold > trip point. As future extension, monitoring of falling temperature can be > added to the relevant thermal governor. I agree we need a cold trip point in order to introduce the functioning temperature range in the thermal framework. Rui, what is your opinion ? -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog