From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796379831; b=Cpt0jMCay1e+oDDXy8pxsbSHiKzviG4yJR7QcCU/j+kZRDHcMpblk5e+6/lAbaQbyxYX 9QnWs9J2N9rsAf7edX81zLyXMFldamZQIcNrRMmbcj2wxTHlLqBxDn5RXQFVsBaKwAg7G c0MOLs08M+El7B5gKTKkYEM6KHeaPwunYUHZCRtuIyxa2jlofMlRxHT91HYwxXk37/p21 qcZ1yPkYIRlzWrC/C3oESWC+Nb2YBjigGynEL1CUuzIC0vPUr3FpoZH5VLP/bGETxVNtv teCp8YIMDRMRbuSGi1D18htEPTWznSAdtMthYisw4fo4JJPHmV4OF4fgUHJo0bY5x9g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379831; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=NRjhEbSmOlzq2ILYSfpaoCBWriYCCLH7DM89Kwkj8yA=; b=Bu52CymDM8Jd8zdtlAE2SC5zDuPmYJzwTjGTQ1zqddszd43OBqyRZUJfNIfCOjbYEu6W qmYmYabaGEOGD7zzVVzNiqNojtWUaMxi/0KhhdyLvZKpi6pB/nJChu2W8e4k2uN20Oqne 4BeB+RVCXlKbIuzIgPZIeLOGRMRv3jMRrb13udi7cyeNUb6STADh5VkojQLWOsXBLi2S7 frOsFTEptcGh1LAtxM9GIj/2Xbf+CL3M2wOWiGYODWtlkeNPYNGdr9Oe0Nzj2Jl2kt7uf gV9J5ilvpkYaK5ARgTW+fYoJF1Fl8SkQlPan1UsQJ5mRpmaJ+xyTZoA59efYnIyAamA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Jv3Xxj4x; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B84C606A32D for ; Fri, 4 Dec 2026 10:23:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Jv3Xxj4x Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED7081F00897; Fri, 4 Dec 2026 10:23:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796379831; bh=NRjhEbSmOlzq2ILYSfpaoCBWriYCCLH7DM89Kwkj8yA=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Jv3Xxj4xCJFTdpvYxYTpESsyYURGRKomsoPcku2zv4ROzFnjAYYtYFaWNwwl01x0O Q3NPmz7AyU/z+bZ9OYsIpY8kOYqnsBBCl4f1uiqPOU/Xn2cowOW23GfHB9kQvcv58b cghRiUdcP/LLuNaYFibnCG8hKvDG4k9qo2mjRhRFGOpIs3OPA8xCsut/6i2EbjoANA 1+jzu1Plg65JV7TWMq1ZGMS2uyun58bPcEaEg1/SPfcs876W0Ye8KI31HXUKL66Nxt tDHeDk07oo8enBrQtH1X3YGQ8RKo5HmWu6VpzKi7NB59Npsb51hnp4a11SDuQ8TLAc UPsIM9SKiCG4g== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 5/6] thermal/drivers/samsung: acpm-tmu: fix IRQ storm Reply-To: sashiko-reviews@lists.linux.dev To: =?utf-8?b?QW5kcsOpIERyYXN6aWs=?= Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204-b4-acpm-tmu-irq-storm-v2-5-614fe39140ce@linaro.org> References: <20261204-b4-acpm-tmu-irq-storm-v2-0-614fe39140ce@linaro.org> <20261204-b4-acpm-tmu-irq-storm-v2-5-614fe39140ce@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 10:23:50 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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=C3=A9 Draszik 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_dev= ice *tz, int low, int high) > { > struct acpm_tmu_sensor *sensor =3D thermal_zone_device_priv(tz); > =20 > - /* The core remembers this window even if programming fails. */ > - sensor->low =3D low; > + /* The core remembers high even if programming fails; low relies on pol= ling. */ > sensor->high =3D high; > =20 > 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 =3D <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 =3D 50000 and high =3D 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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-b4-acpm-tm= u-irq-storm-v2-0-614fe39140ce@linaro.org?part=3D5