mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] platform/x86: thinkpad_acpi: Fix fan speed reporting on Edge E330
@ 2026-08-06 15:44 Andrew Onyshchuk
  2026-08-12  0:22 ` Mark Pearson
  2026-08-18 14:08 ` Ilpo Järvinen
  0 siblings, 2 replies; 3+ messages in thread
From: Andrew Onyshchuk @ 2026-08-06 15:44 UTC (permalink / raw)
  To: platform-driver-x86
  Cc: mpearson-lenovo, derekjohn.clark, hmh, hansg, ilpo.jarvinen,
	ibm-acpi-devel, linux-kernel, Andrew Onyshchuk

The ThinkPad Edge E330 with H3 firmware uses the non-standard EC fan
register block. Without a matching quirk, thinkpad_acpi reads the legacy
tachometer registers and reports 0 RPM.

Add the H3 BIOS family to TPACPI_FAN_NS so the driver reads the fan
period from EC register 0x95 using the existing non-standard reporting
path.

Tested on a ThinkPad Edge E330 with BIOS H3ET77WW and EC H3EC35WW.

Signed-off-by: Andrew Onyshchuk <andryk.rv@gmail.com>
---
 drivers/platform/x86/lenovo/thinkpad_acpi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/platform/x86/lenovo/thinkpad_acpi.c b/drivers/platform/x86/lenovo/thinkpad_acpi.c
index 445e1403308e..cca76711c547 100644
--- a/drivers/platform/x86/lenovo/thinkpad_acpi.c
+++ b/drivers/platform/x86/lenovo/thinkpad_acpi.c
@@ -8840,6 +8840,7 @@ static const struct tpacpi_quirk fan_quirk_table[] __initconst = {
 	TPACPI_Q_LNV3('R', '0', 'T', TPACPI_FAN_NS),	/* 11e Gen5 GL */
 	TPACPI_Q_LNV3('R', '1', 'D', TPACPI_FAN_NS),	/* 11e Gen5 GL-R */
 	TPACPI_Q_LNV3('R', '0', 'V', TPACPI_FAN_NS),	/* 11e Gen5 KL-Y */
+	TPACPI_Q_LNV('H', '3', TPACPI_FAN_NS),		/* Edge E330 */
 	TPACPI_Q_LNV3('N', '1', 'O', TPACPI_FAN_NOFAN),	/* X1 Tablet (2nd gen) */
 	TPACPI_Q_LNV3('R', '0', 'Q', TPACPI_FAN_DECRPM),/* L480 */
 	TPACPI_Q_LNV('8', 'F', TPACPI_FAN_TPR),		/* ThinkPad x120e */

base-commit: 0d839570765118029aa8bf4a95444c6a11aacf85
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] platform/x86: thinkpad_acpi: Fix fan speed reporting on Edge E330
  2026-08-06 15:44 [PATCH] platform/x86: thinkpad_acpi: Fix fan speed reporting on Edge E330 Andrew Onyshchuk
@ 2026-08-12  0:22 ` Mark Pearson
  2026-08-18 14:08 ` Ilpo Järvinen
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Pearson @ 2026-08-12  0:22 UTC (permalink / raw)
  To: Andrew Onyshchuk, platform-driver-x86
  Cc: Derek J . Clark, Henrique de Moraes Holschuh, Hans de Goede,
	Ilpo Järvinen, ibm-acpi-devel, linux-kernel


On Thu, Aug 6, 2026, at 11:44 AM, Andrew Onyshchuk wrote:
> The ThinkPad Edge E330 with H3 firmware uses the non-standard EC fan
> register block. Without a matching quirk, thinkpad_acpi reads the legacy
> tachometer registers and reports 0 RPM.
>
> Add the H3 BIOS family to TPACPI_FAN_NS so the driver reads the fan
> period from EC register 0x95 using the existing non-standard reporting
> path.
>
> Tested on a ThinkPad Edge E330 with BIOS H3ET77WW and EC H3EC35WW.
>
> Signed-off-by: Andrew Onyshchuk <andryk.rv@gmail.com>
> ---
>  drivers/platform/x86/lenovo/thinkpad_acpi.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/platform/x86/lenovo/thinkpad_acpi.c 
> b/drivers/platform/x86/lenovo/thinkpad_acpi.c
> index 445e1403308e..cca76711c547 100644
> --- a/drivers/platform/x86/lenovo/thinkpad_acpi.c
> +++ b/drivers/platform/x86/lenovo/thinkpad_acpi.c
> @@ -8840,6 +8840,7 @@ static const struct tpacpi_quirk 
> fan_quirk_table[] __initconst = {
>  	TPACPI_Q_LNV3('R', '0', 'T', TPACPI_FAN_NS),	/* 11e Gen5 GL */
>  	TPACPI_Q_LNV3('R', '1', 'D', TPACPI_FAN_NS),	/* 11e Gen5 GL-R */
>  	TPACPI_Q_LNV3('R', '0', 'V', TPACPI_FAN_NS),	/* 11e Gen5 KL-Y */
> +	TPACPI_Q_LNV('H', '3', TPACPI_FAN_NS),		/* Edge E330 */
>  	TPACPI_Q_LNV3('N', '1', 'O', TPACPI_FAN_NOFAN),	/* X1 Tablet (2nd 
> gen) */
>  	TPACPI_Q_LNV3('R', '0', 'Q', TPACPI_FAN_DECRPM),/* L480 */
>  	TPACPI_Q_LNV('8', 'F', TPACPI_FAN_TPR),		/* ThinkPad x120e */
>
> base-commit: 0d839570765118029aa8bf4a95444c6a11aacf85
> -- 
> 2.34.1

Afraid this platform is old enough (~14 years I believe?) that I have no easy way to confirm if it's correct or not - so glad you figured it out!

Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>

Mark

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] platform/x86: thinkpad_acpi: Fix fan speed reporting on Edge E330
  2026-08-06 15:44 [PATCH] platform/x86: thinkpad_acpi: Fix fan speed reporting on Edge E330 Andrew Onyshchuk
  2026-08-12  0:22 ` Mark Pearson
@ 2026-08-18 14:08 ` Ilpo Järvinen
  1 sibling, 0 replies; 3+ messages in thread
From: Ilpo Järvinen @ 2026-08-18 14:08 UTC (permalink / raw)
  To: platform-driver-x86, Andrew Onyshchuk
  Cc: mpearson-lenovo, derekjohn.clark, hmh, hansg, ibm-acpi-devel,
	linux-kernel

On Thu, 06 Aug 2026 08:44:17 -0700, Andrew Onyshchuk wrote:

> The ThinkPad Edge E330 with H3 firmware uses the non-standard EC fan
> register block. Without a matching quirk, thinkpad_acpi reads the legacy
> tachometer registers and reports 0 RPM.
> 
> Add the H3 BIOS family to TPACPI_FAN_NS so the driver reads the fan
> period from EC register 0x95 using the existing non-standard reporting
> path.
> 
> [...]

Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.

FYI [if applicable to your patch], as per Linus' policy change, also
fixes are mostly routed through for-next unless the fix is for a
commit introduced in the most recent cycle or is clearly a regression
fix.

The list of commits applied:
[1/1] platform/x86: thinkpad_acpi: Fix fan speed reporting on Edge E330
      commit: 051292bf7697e72a760401b6883c55a98beecc5b

--
 i.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-18 14:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-06 15:44 [PATCH] platform/x86: thinkpad_acpi: Fix fan speed reporting on Edge E330 Andrew Onyshchuk
2026-08-12  0:22 ` Mark Pearson
2026-08-18 14:08 ` Ilpo Järvinen

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®