From: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
To: "Rafael J. Wysocki (Intel)" <rafael@kernel.org>,
Gaurav Kohli <gaurav.kohli@oss.qualcomm.com>
Cc: Daniel Lezcano <daniel.lezcano@kernel.org>,
Zhang Rui <rui.zhang@intel.com>,
Lukasz Luba <lukasz.luba@arm.com>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] thermal: core: warn on non-critical trips at or above critical temp
Date: Tue, 28 Jul 2026 00:12:48 +0200 [thread overview]
Message-ID: <c372d0ee-7b55-4483-8e44-ea6c68c3501d@oss.qualcomm.com> (raw)
In-Reply-To: <CAJZ5v0hD7OvQfOUja7mC+nXpH2cDfYjeGMgf7WKREXt3rSNOEw@mail.gmail.com>
On 7/22/26 21:43, Rafael J. Wysocki (Intel) wrote:
> On Fri, Jul 10, 2026 at 11:12 AM Gaurav Kohli
> <gaurav.kohli@oss.qualcomm.com> wrote:
>>
>> Thermal zones can be registered or updated with non-critical trips at or
>> above the critical trip temperature. Such trips cannot provide useful
>> mitigation before critical trip handling runs, and a HOT trip at that
>> temperature can coincide with shutdown.
>>
>> Warn at registration time and on trip temperature changes to surface
>> misconfigured platform data and incorrect dynamic updates early. When
>> multiple critical trips exist, warn against the lowest one.
>>
>> Signed-off-by: Gaurav Kohli <gaurav.kohli@oss.qualcomm.com>
>
> There are a couple of reasons why I don't like this, the most
> important one being the overhead: two walks over all trips added to
> every trip temperature update is a bit of a stretch.
>
> Moreover, the messages produced by this code may not even be noticed
> on systems in the field and users may not be able to do anything about
> them, so the benefit is questionable.
Would it make sense to sort the trip points when they are registered.
Then limit the changes to the interval between trip-1 and trip+1 ?
next prev parent reply other threads:[~2026-07-27 22:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-10 9:11 Gaurav Kohli
2026-07-22 19:43 ` Rafael J. Wysocki (Intel)
2026-07-27 22:12 ` Daniel Lezcano [this message]
2026-08-24 16:31 ` Rafael J. Wysocki (Intel)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c372d0ee-7b55-4483-8e44-ea6c68c3501d@oss.qualcomm.com \
--to=daniel.lezcano@oss.qualcomm.com \
--cc=daniel.lezcano@kernel.org \
--cc=gaurav.kohli@oss.qualcomm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lukasz.luba@arm.com \
--cc=rafael@kernel.org \
--cc=rui.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®