mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] platform/x86: asus-armoury: add power limits quirk for FX707ZC4
@ 2026-11-19 19:12 Vyacheslav Vankevich
  0 siblings, 0 replies; only message in thread
From: Vyacheslav Vankevich @ 2026-11-19 19:12 UTC (permalink / raw)
  To: platform-driver-x86; +Cc: linux-kernel, Vyacheslav Vankevich

Add PPT power limits for the ASUS TUF Gaming F17 FX707ZC4
(Intel Core i5-12500H, NVIDIA GeForce RTX 3050 Laptop).

The EC starts with a 5 W package limit, which clamps the CPU to 400 MHz
until userspace writes working limits. The firmware ignores PPT writes
unless a custom fan curve is active, so mark the quirk with
requires_fan_curve.

Limits validated on the hardware (BIOS FX707ZC4.311, 2024-10-18):
- AC: PL1 25-90 W (default 45), PL2 35-115 W (default 90)
- DC: PL1 25-45 W (default 35), PL2 35-60 W (default 60)

Signed-off-by: Vyacheslav Vankevich <crazycoder@yandex.ru>
---
 drivers/platform/x86/asus-armoury.h | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

--- a/drivers/platform/x86/asus-armoury.h
+++ b/drivers/platform/x86/asus-armoury.h
@@ -1229,6 +1229,30 @@
 	},
 	{
 		.matches = {
+			DMI_MATCH(DMI_BOARD_NAME, "FX707ZC4"),
+		},
+		.driver_data = &(struct power_data) {
+			.ac_data = &(struct power_limits) {
+				.ppt_pl1_spl_min = 25,
+				.ppt_pl1_spl_def = 45,
+				.ppt_pl1_spl_max = 90,
+				.ppt_pl2_sppt_min = 35,
+				.ppt_pl2_sppt_def = 90,
+				.ppt_pl2_sppt_max = 115,
+			},
+			.dc_data = &(struct power_limits) {
+				.ppt_pl1_spl_min = 25,
+				.ppt_pl1_spl_def = 35,
+				.ppt_pl1_spl_max = 45,
+				.ppt_pl2_sppt_min = 35,
+				.ppt_pl2_sppt_def = 60,
+				.ppt_pl2_sppt_max = 60,
+			},
+			.requires_fan_curve = true,
+		},
+	},
+	{
+		.matches = {
 			DMI_MATCH(DMI_BOARD_NAME, "G533QS"),
 		},
 		.driver_data = &(struct power_data) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-19 19:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19 19:12 [PATCH] platform/x86: asus-armoury: add power limits quirk for FX707ZC4 Vyacheslav Vankevich

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®