From: sashiko-bot@kernel.org
To: "André Draszik" <andre.draszik@linaro.org>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 5/6] thermal/drivers/samsung: acpm-tmu: fix IRQ storm
Date: Fri, 04 Dec 2026 10:23:50 +0000 [thread overview]
Message-ID: <sashiko-outbox-249592@kernel.org> (raw)
In-Reply-To: <20261204-b4-acpm-tmu-irq-storm-v2-5-614fe39140ce@linaro.org>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] thermal: acpm-tmu: ignoring low in acpm_tmu_set_trips()
breaks re-arming
--
commit abc25375b3a7d07fcb911c6b0a8a4096a41cd842
Author: André Draszik <andre.draszik@linaro.org>
thermal/drivers/samsung: acpm-tmu: fix IRQ storm
This commit stops the ACPM TMU IRQ storm by programming only the upper
trip bound into slot 0, parking its falling comparator via
set_hysteresis(), and only notifying the thermal core when
ACPM_TMU_INTPEND_RISE0 is pending.
> diff --git a/drivers/thermal/samsung/acpm-tmu.c b/drivers/thermal/samsung/acpm-tmu.c
> index 56f0b6c70519d..ff7a07dbd58aa 100644
> --- a/drivers/thermal/samsung/acpm-tmu.c
> +++ b/drivers/thermal/samsung/acpm-tmu.c
[ ... ]
> @@ -336,8 +362,7 @@ static int acpm_tmu_set_trips(struct thermal_zone_device *tz, int low, int high)
> {
> struct acpm_tmu_sensor *sensor = thermal_zone_device_priv(tz);
>
> - /* The core remembers this window even if programming fails. */
> - sensor->low = low;
> + /* The core remembers high even if programming fails; low relies on polling. */
> sensor->high = high;
>
> return acpm_tmu_program_thresholds(tz, NULL, INT_MAX);
[Severity: Medium]
Does discarding low in acpm_tmu_set_trips() break re-arming of rising
user-space thresholds below the lowest passive trip on unpolled zones?
On GS101, gs101-tmu.dtsi sets polling-delay = <0> with the lowest passive
trip at 70 C. If userspace registers a threshold at 50 C with both
THERMAL_THRESHOLD_WAY_UP and THERMAL_THRESHOLD_WAY_DOWN, the first upward
crossing fires RISE[0] and sets low = 50000 and high = 70000.
Because the zone is below 70 C, tz->passive stays 0 and
monitor_thermal_zone() schedules no polling. Cooling below 50 C never
runs __thermal_zone_device_update(), leaving tz->temperature stale above
50 C and RISE[0] at 70 C so later upward crossings of 50 C stop firing.
The same issue affects non-passive trips if userspace lowers a hot trip
below 70 C or raises the passive trips via sysfs, since OF trips have
THERMAL_TRIP_FLAG_RW_TEMP and crossing a non-passive trip leaves
tz->passive at 0, keeping it stuck in tz->trips_reached after cooling.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-b4-acpm-tmu-irq-storm-v2-0-614fe39140ce@linaro.org?part=5
next prev parent reply other threads:[~2026-12-04 10:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 10:05 [PATCH v2 0/6] thermal/drivers/samsung: acpm-tmu: fix IRQ storm and tune GS101 DT André Draszik
2026-12-04 10:05 ` [PATCH v2 1/6] arm64: dts: exynos: gs101: raise critical trips André Draszik
2026-12-04 10:05 ` [PATCH v2 2/6] arm64: dts: exynos: gs101: tune CPU thermal zones André Draszik
2026-12-04 10:05 ` [PATCH v2 3/6] firmware: samsung: acpm: add TMU set_hysteresis op André Draszik
2026-12-04 10:05 ` [PATCH v2 4/6] thermal/drivers/samsung: acpm-tmu: OR pending bits André Draszik
2026-12-04 10:05 ` [PATCH v2 5/6] thermal/drivers/samsung: acpm-tmu: fix IRQ storm André Draszik
2026-12-04 10:23 ` sashiko-bot [this message]
2026-12-04 10:05 ` [PATCH v2 6/6] thermal/drivers/samsung: acpm-tmu: add .get_trend() André Draszik
2026-12-04 10:21 ` sashiko-bot
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=sashiko-outbox-249592@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=andre.draszik@linaro.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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