Re: [PATCH] thermal: core: warn on non-critical trips at or above critical temp

From: Daniel Lezcano

Date: Mon Jul 27 2026 - 18:13:17 EST


On 7/22/26 21:43, Rafael J. Wysocki (Intel) wrote:
On Fri, Jul 10, 2026 at 11:12 AM Gaurav Kohli
<gaurav.kohli@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx>

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 ?