Skip to contentSkip to conversation

platform/x86: ideapad-laptop: Add V14 G2 ITL to ideapad_dytc_v4_allow_table[]

PATCH In review Arnav Kapoor 3 participants 3 messages Nov 16 – Nov 19

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/x86: ideapad-laptop: Add V14 G2 ITL to ideapad_dytc_v4_allow_table[]

The Lenovo V14 G2 ITL (82KA) uses DYTC version 4 for platform profile control, so ideapad-laptop currently skips it and logs:

DYTC_VERSION 4 support may not work. Pass ideapad_laptop.allow_v4_dytc=Y on the kernel commandline to enable

With allow_v4_dytc=Y, platform_profile registers with low-power, balanced and performance. Each profile reads back after it is set, no ACPI errors are logged when switching, and the firmware applies it:
with all CPUs busy on AC power, the sustained package power was about 14 W in low-power, 17 W in balanced and 24 W in performance.

Add the V14 G2 ITL to ideapad_dytc_v4_allow_table[].

---
Tested on a V14 G2 ITL (BIOS GGCN55WW) with the 7.0 kernel's ideapad-laptop and allow_v4_dytc=Y, which takes the same path as this table entry; the patch itself is build-tested (W=1) on pdx86 for-next. Package power is the RAPL energy
counter over the last 20 s of a 45 s all-CPU busy loop, on AC, with 60 s of cooldown between profiles. Fn+Q does not switch profiles on this model.

 drivers/platform/x86/lenovo/ideapad-laptop.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/platform/x86/lenovo/ideapad-laptop.c +7 -0
index 91a8d11c79c5..ebd4bf6c8798 100644
@@ -1134,6 +1134,13 @@ static const struct dmi_system_id ideapad_dytc_v4_allow_table[] = {
 			DMI_MATCH(DMI_PRODUCT_VERSION, "IdeaPad 5 15ITL05")
 		}
 	},
+	{
+		/* V14 G2 ITL */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_VERSION, "V14 G2 ITL")
+		}
+	},
 	{}
 };
 

base-commit: a362539b42193dcdb17f8fba40031a515c53885c

Signature · 1 line
2.53.0
Reviewed-by on v1 1/1
#1 lore raw

Hi Arnav,

Quoted 11 lines · Arnav Kapoor

The Lenovo V14 G2 ITL (82KA) uses DYTC version 4 for platform profile control, so ideapad-laptop currently skips it and logs:

DYTC_VERSION 4 support may not work. Pass ideapad_laptop.allow_v4_dytc=Y on the kernel commandline to enable

With allow_v4_dytc=Y, platform_profile registers with low-power, balanced and performance. Each profile reads back after it is set, no ACPI errors are logged when switching, and the firmware applies it:
with all CPUs busy on AC power, the sustained package power was about 14 W in low-power, 17 W in balanced and 24 W in performance.

Quoted 3 lines

Add the V14 G2 ITL to ideapad_dytc_v4_allow_table[].

Quoted 11 lines

---
Tested on a V14 G2 ITL (BIOS GGCN55WW) with the 7.0 kernel's ideapad-laptop and allow_v4_dytc=Y, which takes the same path as this table entry; the patch itself is build-tested (W=1) on pdx86 for-next. Package power is the RAPL energy
counter over the last 20 s of a 45 s all-CPU busy loop, on AC, with 60 s of cooldown between profiles.

Fn+Q does not switch profiles on
this model.

Even on Windows?

If Windows can switch profiles, you may improve the relevant Linux drivers.

Thanks,
Rong

Quoted 24 lines
 drivers/platform/x86/lenovo/ideapad-laptop.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/platform/x86/lenovo/ideapad-laptop.c +7 -0
index 91a8d11c79c5..ebd4bf6c8798 100644
@@ -1134,6 +1134,13 @@ static const struct dmi_system_id ideapad_dytc_v4_allow_table[] = {
 			DMI_MATCH(DMI_PRODUCT_VERSION, "IdeaPad 5 15ITL05")
 		}
 	},
+	{
+		/* V14 G2 ITL */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_VERSION, "V14 G2 ITL")
+		}
+	},
 	{}
 };
 

base-commit: a362539b42193dcdb17f8fba40031a515c53885c

maintainer
#2 lore raw
In reply to Arnav Kapoor
Quoted 5 lines · Arnav Kapoor

The Lenovo V14 G2 ITL (82KA) uses DYTC version 4 for platform profile control, so ideapad-laptop currently skips it and logs:

DYTC_VERSION 4 support may not work. Pass ideapad_laptop.allow_v4_dytc=Y on the kernel commandline to enable

Quoted 7 lines

With allow_v4_dytc=Y, platform_profile registers with low-power, balanced and performance. Each profile reads back after it is set, no ACPI errors are logged when switching, and the firmware applies it:
with all CPUs busy on AC power, the sustained package power was about 14 W in low-power, 17 W in balanced and 24 W in performance.

[...]

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: ideapad-laptop: Add V14 G2 ITL to ideapad_dytc_v4_allow_table[]

      commit: f60911c0c21228b5c2b28630b24441c8ae68ee62

--
i.