From patchwork Fri Jul 10 13:51:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 235236 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp474433ilg; Fri, 10 Jul 2020 06:51:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7s9Cu/JA0wVF1Rnh3RAEpfSahG2JeYK8FpCLK/kf0OwUn9Dv3WdrRWjFmCF+ajXpkvdvv X-Received: by 2002:a50:93a2:: with SMTP id o31mr29948264eda.203.1594389118198; Fri, 10 Jul 2020 06:51:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594389118; cv=none; d=google.com; s=arc-20160816; b=iz+nqGVZuO84yqDcX5lyLLaTReIZxTAx8mO5OsQoUIhb3yoWotEM9aqQ1t5+Cs1B52 dYN2sg+BMQ23KonAAlGrT0obTJv8XAdNuqjbi/WTzaPoEiAH91vrxKAfGVpv7MlVHnvC w6hRpahXjD2oQgtqQvxQpB8UprkrsfmcSAorkHDmnAy7/csj/pewB4tI36B0e9pqASpo UQqBFs852Zh9uyQV05k3G7eDrTMI7EHbGWEiC4J2IDbkBQU718Ba90cV62caPVy9gRnf OKyCTUfKkyqvQVgNh/l4a4rxLFQCAbMCVvThOCSNxBwqLyHkonpNz9HBnyfNRS3DJAqs wxyQ== 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=iYqCIF6KZ/Ty40V04tlDqdaSDhuASJh31NFoEVj7acVn7lZh9Qw85Wu/V/sJHbX8rs oYfTJC3Dwt9TsvJIXlglBUkJ/2dp4JJGI98o97I1FTakutBTtO3WpwQLw9oWUc7XAHCk kV7PnZ0fPrrg4cCgWYG72YsqNh09sgEJUSSMmx0Hhj4l1igzfnBnWKcJMFkDq8no70Zl F5vbzW8KvG6mshgzTMRLxKW0PtEoI2b9T1XBuNELxxM7G581X92giMKsgrzP1L1ZATcq hpP4M//2FRUCQdMyld4qM7g1rYIWSSpsLvY2bh1To8oacKDeyZ1ulplqy7eWR8W8AxfA /3KQ== 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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 n9si4325793edo.13.2020.07.10.06.51.58; Fri, 10 Jul 2020 06:51:58 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1726962AbgGJNv5 (ORCPT + 6 others); Fri, 10 Jul 2020 09:51:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbgGJNv5 (ORCPT ); Fri, 10 Jul 2020 09:51:57 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14165C08C5DC for ; Fri, 10 Jul 2020 06:51:57 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id 6so4434742qtt.0 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=jGbs0mXEtr3etFsfS4oVrex9eHgN9K57V/dZQ4aH1KzFkSg1Bd+9GL5JqLmms6JlYd De13rUZ1Tu7diyhHHvqDTZ0XszxK5WOVVYHl7HjLkfMa/z1hlwMJyuiTBgLtd9PyZMyN Gqo2PbM8cIk/Be1ib+upifuxfn8aevMTCQ0ziQNJXatJMEygOQ3L08ZOeszLizhgSwxs lr6gRl5+uf/fngPS270DhquSGdAdjtnBMzzKC76s521uaKVqJJFgwWTz5VAwifhS40cg eyKbbSQ3g8ngH54T3MjSdQemAfXFViqm6LwoAvsFYNtbydZCfznzb7mQ7dIzQDgAckZ/ FISA== X-Gm-Message-State: AOAM5320TwXMAo5QSPllaqXb8gwiNHloqaC3x2uouGFmilyenYej3iOu 9qzPIlRcfsDm9tya4pCOFt8YSHo1gXo= 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 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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