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
  2026-11-19 14:43 ` Ilpo Järvinen
  0 siblings, 2 replies; 4+ 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] 4+ 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
  2026-11-26  7:24   ` Arnav Kapoor
  2026-11-19 14:43 ` Ilpo Järvinen
  1 sibling, 1 reply; 4+ 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] 4+ 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
@ 2026-11-19 14:43 ` Ilpo Järvinen
  1 sibling, 0 replies; 4+ messages in thread
From: Ilpo Järvinen @ 2026-11-19 14:43 UTC (permalink / raw)
  To: Hans de Goede, Arnav Kapoor
  Cc: Ike Panhc, Mark Pearson, Derek J . Clark, Rong Zhang,
	platform-driver-x86, linux-kernel

On Mon, 16 Nov 2026 22:48:10 +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.
> 
> [...]

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.


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

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

Hi Rong,

On Tue, 2026-11-17 at 01:31 +0800, Rong Zhang wrote:
> > Fn+Q does not switch profiles on
> > this model.
>
> Even on Windows?
>
> If Windows can switch profiles, you may improve the relevant Linux
> drivers.

Sorry for the slow answer, and a correction: Fn+Q does switch profiles
on Linux. I only checked for a key event in my first test and didn't
watch the profile itself. With allow_v4_dytc=Y, each Fn+Q press moves
/sys/firmware/acpi/platform_profile to the next profile
(low-power -> balanced -> performance -> low-power).

Fn+Q produces no WMI event, no keyboard scancode and no VPC event, so
the firmware/EC seems to switch the profile itself, and ideapad-laptop
just follows it through DYTC. Nothing more is needed in the drivers
for it.

Thanks for the review,
Arnav

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

end of thread, other threads:[~2026-11-26  7:24 UTC | newest]

Thread overview: 4+ 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
2026-11-26  7:24   ` Arnav Kapoor
2026-11-19 14:43 ` 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®