mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] platform/x86: ideapad-laptop: Add V14 G2 ITL to ideapad_dytc_v4_allow_table[]
@ 2026-11-16 17:18 Arnav Kapoor
  2026-11-16 17:31 ` Rong Zhang
  0 siblings, 1 reply; 2+ messages in thread
From: Arnav Kapoor @ 2026-11-16 17:18 UTC (permalink / raw)
  To: Hans de Goede, Ilpo Järvinen
  Cc: Ike Panhc, Mark Pearson, Derek J . Clark, Rong Zhang,
	platform-driver-x86, linux-kernel, 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.

Add the V14 G2 ITL to ideapad_dytc_v4_allow_table[].

Signed-off-by: Arnav Kapoor <kapoorarnav43@gmail.com>
---
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(+)

diff --git a/drivers/platform/x86/lenovo/ideapad-laptop.c b/drivers/platform/x86/lenovo/ideapad-laptop.c
index 91a8d11c79c5..ebd4bf6c8798 100644
--- a/drivers/platform/x86/lenovo/ideapad-laptop.c
+++ b/drivers/platform/x86/lenovo/ideapad-laptop.c
@@ -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
-- 
2.53.0


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

* Re: [PATCH] platform/x86: ideapad-laptop: Add V14 G2 ITL to ideapad_dytc_v4_allow_table[]
  2026-11-16 17:18 [PATCH] platform/x86: ideapad-laptop: Add V14 G2 ITL to ideapad_dytc_v4_allow_table[] Arnav Kapoor
@ 2026-11-16 17:31 ` Rong Zhang
  0 siblings, 0 replies; 2+ messages in thread
From: Rong Zhang @ 2026-11-16 17:31 UTC (permalink / raw)
  To: Arnav Kapoor, Hans de Goede, Ilpo Järvinen
  Cc: Ike Panhc, Mark Pearson, Derek J . Clark, platform-driver-x86,
	linux-kernel

Hi Arnav,

On Mon, 2026-11-16 at 22:48 +0530, Arnav Kapoor wrote:
> 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[].
> 
> Signed-off-by: Arnav Kapoor <kapoorarnav43@gmail.com>

Reviewed-by: Rong Zhang <i@rong.moe>

> ---
> 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

> 
>  drivers/platform/x86/lenovo/ideapad-laptop.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/platform/x86/lenovo/ideapad-laptop.c b/drivers/platform/x86/lenovo/ideapad-laptop.c
> index 91a8d11c79c5..ebd4bf6c8798 100644
> --- a/drivers/platform/x86/lenovo/ideapad-laptop.c
> +++ b/drivers/platform/x86/lenovo/ideapad-laptop.c
> @@ -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

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

end of thread, other threads:[~2026-11-16 17:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-16 17:18 [PATCH] platform/x86: ideapad-laptop: Add V14 G2 ITL to ideapad_dytc_v4_allow_table[] Arnav Kapoor
2026-11-16 17:31 ` Rong Zhang

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®