Skip to contentSkip to conversation

hwmon: (yogafan) Add support for Lenovo Yoga 9 2-in-1 14ILL10

PATCH New KuwaLee 2 participants 2 messages Nov 20

Subsystems (3)
lore
Share & tools
lore

KuwaLee

author
#0 lore raw

PATCH 1/1 hwmon: (yogafan) Add support for Lenovo Yoga 9 2-in-1 14ILL10

From: LI-JIA-EN <[email protected]>

The Lenovo Yoga 9 2-in-1 14ILL10 (DMI product name 83LC) currently matches the generic "Yoga" quirk, which looks up \_SB.PCI0.LPC0.EC0.FANS. That object does not exist on this Intel Lunar Lake platform, so probe fails with -ENODEV and no hwmon device is registered.

The DSDT exposes two 8-bit fan tachometer fields in the EC0 namespace, used by the vendor WMI fan speed queries (feature IDs 0x04030001 and 0x04030002) with a multiplier of 100:

\_SB.PC00.LPCB.EC0.FANS (fan 1, EC offset 0x06) \_SB.PC00.LPCB.EC0.FA2S (fan 2, EC offset 0x03)

This is the same layout as the Yoga Pro 9 16IMH9 (83DN), so reuse yoga_pro_83dn_cfg and add a DMI entry matching product name 83LC ahead of the generic Yoga entry. Document the model in the reference table.

Tested on a Yoga 9 2-in-1 14ILL10 (BIOS Q9CN31WW): both fans read 0 RPM when idle and rise to a few thousand RPM under CPU load.

---
 Documentation/hwmon/yogafan.rst | 1 +
 drivers/hwmon/yogafan.c         | 8 ++++++++
 2 files changed, 9 insertions(+)
Documentation/hwmon/yogafan.rst +1 -0
index 239c7b5..ff272c5 100644
@@ -93,6 +93,7 @@ immediately to ensure the user knows the fan has stopped.
  80V2 / 81C3    | Yoga 710/720        | 0x06      | \_SB.PCI0.LPC0.EC0.FAN0        |  8-bit | 100
  83E2           | Yoga Pro 7          | 0xFE      | \_SB.PCI0.LPC0.EC0.FANS        |  8-bit | 100
  83DN           | Yoga Pro 9 16IMH9   | 0x06/0xFE | \_SB.PC00.LPCB.EC0.FANS/FA2S   |  8-bit | 100
+ 83LC           | Yoga 9 2in1 14ILL10 | 0x06/0x03 | \_SB.PC00.LPCB.EC0.FANS/FA2S   |  8-bit | 100
  82A2 / 82A3    | Yoga Slim 7         | 0x06      | \_SB.PCI0.LPC0.EC0.FANS        |  8-bit | 100
  81YM / 82FG    | IdeaPad 5           | 0x06      | \_SB.PCI0.LPC0.EC0.FAN0        |  8-bit | 100
  82JW / 82JU    | Legion 5 (AMD)      | 0xFE/0xFF | \_SB.PCI0.LPC0.EC0.FANS (Fan1) | 16-bit | 1
drivers/hwmon/yogafan.c +8 -0
index 6d1284c..7772e83 100644
@@ -285,6 +285,14 @@ static const struct dmi_system_id yogafan_quirks[] = {
 		},
 		.driver_data = (void *)&yoga_pro_83dn_cfg,
 	},
+	{
+		.ident = "Lenovo Yoga 9 2-in-1 14ILL10 (83LC)",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "83LC"),
+		},
+		.driver_data = (void *)&yoga_pro_83dn_cfg,
+	},
 	{
 		.ident = "Lenovo Yoga",
 		.matches = {
Signature · 1 line
2.56.1
#1 lore raw
Sashiko has reviewed this patch and found no issues.
Quoted 20 lines

From: LI-JIA-EN <[email protected]>

The Lenovo Yoga 9 2-in-1 14ILL10 (DMI product name 83LC) currently matches the generic "Yoga" quirk, which looks up \_SB.PCI0.LPC0.EC0.FANS. That object does not exist on this Intel Lunar Lake platform, so probe fails with -ENODEV and no hwmon device is registered.

The DSDT exposes two 8-bit fan tachometer fields in the EC0 namespace, used by the vendor WMI fan speed queries (feature IDs 0x04030001 and 0x04030002) with a multiplier of 100:

\_SB.PC00.LPCB.EC0.FANS (fan 1, EC offset 0x06) \_SB.PC00.LPCB.EC0.FA2S (fan 2, EC offset 0x03)

This is the same layout as the Yoga Pro 9 16IMH9 (83DN), so reuse yoga_pro_83dn_cfg and add a DMI entry matching product name 83LC ahead of the generic Yoga entry. Document the model in the reference table.

Quoted 4 lines

Tested on a Yoga 9 2-in-1 14ILL10 (BIOS Q9CN31WW): both fans read 0 RPM when idle and rise to a few thousand RPM under CPU load.

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1