Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp558128ybt; Fri, 10 Jul 2020 06:53:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUGnpuM7NqScbVujytxXtkzdnBko8Da44CeASktPRc+4hrYdjEWm06na2d/gbtyVyETpYk X-Received: by 2002:a17:906:a892:: with SMTP id ha18mr62412254ejb.462.1594389191749; Fri, 10 Jul 2020 06:53:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594389191; cv=none; d=google.com; s=arc-20160816; b=z8zwLdIBXZEq2GBWpkPka8aF8BNf2A8/tHewvvi2KMlNAQb67a/XRxl348CXPCWaAK 9VUYkJogQnnbSXZ2tjEx7l98pEDsiww/FSrKfxwlwSrQReu7gl7TLCfp0xKlLHsxF4Hs +/Shd9U2Xo8TPwuXBTnwPTkl4P8hGeWaq1hY5CDdqPMkqBarLRkWTZ3XZB4feFJZ2RvX sCo9dzvRl8lfDn1crYHx4hSQdR/LV5fkYNG9tdsQ9kVxBuYlCqh4BdaI3poDu8VhqvPO qSMTTAMjDuS6TCrrnKjlz7B4emeMrmCxWqGYRkiTgxYmoCyVdMk3V2tTZkilfWYMHjjI Eauw== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=mD9V7UZ4VWyDxWe0RMtKVzjCoRnAKAU2sQu7+0bQiPk=; b=kU71ay5njR66/HDSX+Fs+fgj1n+EG9u5n5pnuF4YA6D/3VynXqF8IXoPvksfTI5YRM T13s/rGbHDMalusfC/OULrOOGBsP0TZwcDLwCTzI2bL+G5KXxPooJnJovTZ70bV02teH w6cdTHUovYFPVfzZ/61QKatc9MG83x87JN8k0zfyrYspfmqIDMovU8RvcPVhE+/1nqu4 ELh+9YPQBFablorifDCZj9WY5LowkR/tV68IGrVeBVgZrvcuXKLn4+sidkfpGIcL+ARp lpctIJxzxKqNhgA2gTxRl5XR2zsLhqivDMeSkzd8FKPMZu9fW7FxCGRpmr7A6/1tBMOb JWVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WqiItYKo; 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 c19si3791909ejr.522.2020.07.10.06.52.48; Fri, 10 Jul 2020 06:53:11 -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=WqiItYKo; 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 S1727782AbgGJNv5 (ORCPT + 99 others); Fri, 10 Jul 2020 09:51:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727074AbgGJNv5 (ORCPT ); Fri, 10 Jul 2020 09:51:57 -0400 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21D2CC08C5DD for ; Fri, 10 Jul 2020 06:51:57 -0700 (PDT) Received: by mail-qt1-x843.google.com with SMTP id o38so4417809qtf.6 for ; Fri, 10 Jul 2020 06:51:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mD9V7UZ4VWyDxWe0RMtKVzjCoRnAKAU2sQu7+0bQiPk=; b=WqiItYKo6aJJIGl1rr7X+RB9osWX1B+DB5otWhGQjHKVrRJGlIcJK1w0roY2sG4EoY VT8K80E9tG9Cr+i6LHHTLs0g6oUaQiY8oHENTfwrrYF3DfBPu8Vy7ePQe+gBXGdeyYAF cUQN3bR8KMqQSP2SQyKqE/mhYz6C5DxGD47gQaU7etBLtvD7vmD3qO7Zx9KjESXqOIP0 ibNCwRhEXjn1H8KEbDO4yEEJ+2yXQPEBMbD8E8MA6lG+Gnsbk6xY9SFCgg6R4ajgx5dy 5zKrwMOXG08neINui2kn/1VApOEWXziohOGomoNL4bfuFfjOu1YrEgm278xzct3DtrJ0 F0xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mD9V7UZ4VWyDxWe0RMtKVzjCoRnAKAU2sQu7+0bQiPk=; b=Oz6H7KQrjGZPLNu2c1kL0I6kY28a3nlGgkc2vbi4CiFS8TB0o5KdEcL+wnkxbOBuAC pv8KdFlwKBocewS/EVEkKdPdvkdG03t9yBFB3QJbESwsdJxFp6M63cRUwK7QpDLrSK64 O6L70WKWkVUCby/NAzEN94LECfdMt4nYzmmp51EZapDWYMmiWa7TeCgGDtPmkrNogP3/ yf/azkC8we8TeQTeLWQoNs+glKmK9plVW3BQLvOnTPukCi3vuvJ7T4bvLWLQoJwXF828 SMNyxGRGYU+MY0rgd7ZM24PVI6BbK1oNjGIt0AQ043kKB0mQEUkjU6KkgYyIFLzWCZM0 G7hg== X-Gm-Message-State: AOAM532LBACuxxC99EMk35zPxcDpOc5iTjSFmemNsoVJXrv2HcFR6xiT 4FZ7g78PQloKkjSTl8Urt8kt3Q== X-Received: by 2002:ac8:1972:: with SMTP id g47mr71075904qtk.180.1594389116195; Fri, 10 Jul 2020 06:51:56 -0700 (PDT) Received: from pop-os.fios-router.home (pool-71-255-246-27.washdc.fios.verizon.net. [71.255.246.27]) by smtp.googlemail.com with ESMTPSA id h197sm7574059qke.51.2020.07.10.06.51.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2020 06:51:55 -0700 (PDT) From: Thara Gopinath To: daniel.lezcano@linaro.org, rui.zhang@intel.com, robh+dt@kernel.org Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 0/4] thermal: Introduce support for monitoring falling temperature Date: Fri, 10 Jul 2020 09:51:50 -0400 Message-Id: <20200710135154.181454-1-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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/2020/6/3/1112 (under review) 1.https://lkml.org/lkml/2019/9/18/1180 2.https://lkml.org/lkml/2020/7/6/238 Thara Gopinath (4): dt-bindings:thermal:Add cold trip point type thermal: Add support for cold trip point thermal:core:Add genetlink notifications for monitoring falling temperature thermal: Modify thermal governors to do nothing for "cold" trip points .../devicetree/bindings/thermal/thermal.txt | 1 + drivers/thermal/gov_bang_bang.c | 8 +++++++ drivers/thermal/gov_fair_share.c | 8 +++++++ drivers/thermal/gov_power_allocator.c | 8 +++++++ drivers/thermal/gov_step_wise.c | 8 +++++++ drivers/thermal/thermal_core.c | 21 +++++++++++++------ drivers/thermal/thermal_of.c | 1 + include/uapi/linux/thermal.h | 1 + 8 files changed, 50 insertions(+), 6 deletions(-) -- 2.25.1