Skip to contentSkip to conversation

platform/asus: asus-armoury: GA403GM power limits and a MAINTAINERS fix

PATCH New Nikita Ivannikov 1 participant 3 messages Nov 25 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

cover platform/asus: asus-armoury: GA403GM power limits and a MAINTAINERS fix

This series adds power limits for the ASUS ROG Zephyrus G14 (2026) GA403GM and fixes a MAINTAINERS gap left by the move of the ASUS drivers to drivers/platform/asus/, which I noticed while preparing patch 1: get_maintainer.pl returned only [email protected] for a change to asus-armoury.h.

The two patches are independent. Patch 1 was tested on my GA403GM as described in its changelog.

I used an AI coding assistant (Claude Code) to find both issues, draft the changes and changelogs, and run the test; I reviewed everything before sending.

Nikita Ivannikov (2):
platform/asus: asus-armoury: add power limits quirk for GA403GM
MAINTAINERS: cover all files in drivers/platform/asus/

 MAINTAINERS                          |  2 ++
 drivers/platform/asus/asus-armoury.h | 32 ++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)

base-commit: 61c0dac952b9308884936d05cce97565a5c89af4

Signature · 1 line
2.56.1
#1 lore raw

PATCH 1/2 platform/asus: asus-armoury: add power limits quirk for GA403GM

Add a power limits quirk entry for the ASUS ROG Zephyrus G14 (2026) GA403GM (AMD Ryzen AI 9 465, NVIDIA GeForce RTX 5060 Laptop GPU). Without it, asus-armoury logs "No matching power limits found for this system" and the ppt_* and nv_* firmware attributes return -ENODEV.

No ThrottleGear XML is available for this model, so the limits are taken from the GA403WM entry. Both are the same Zephyrus G14 chassis (31.1 x 22.0 x 1.59 cm, 73 Wh battery) with an RTX 5060 Laptop GPU, and ASUS specifies the same GPU power for the GA403GM: 85 W TGP plus 15 W Dynamic Boost (100 W) in Manual mode, which matches the GA403WM nv_tgp_max and nv_dynamic_boost_max values.

Tested on a GA403GM (BIOS GA403GM.302) running 7.3.6 with this entry applied to the 7.3.6 asus-armoury.h: the ppt_*, nv_dynamic_boost, nv_temp_target and nv_tgp attributes are exposed with the ranges above, and ppt_pl1_spl=81 is rejected with -EINVAL. As on the GA403WM, PPT writes return -EBUSY until a custom fan curve is enabled; without one, PPT writes through the legacy asus-nb-wmi attributes are silently ignored by the firmware, so requires_fan_curve is needed here too. With the custom CPU fan curve enabled, PL1/PL2/PL3 values of 25/30/40 W and 80/80/80 W were accepted, and ryzenadj --info reported the matching STAPM, slow and fast limits. The NVIDIA attributes were only read.

---
 drivers/platform/asus/asus-armoury.h | 32 ++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
drivers/platform/asus/asus-armoury.h +32 -0
index 331c3bddf013..33b3014815a3 100644
@@ -1395,6 +1395,38 @@ static const struct dmi_system_id power_limits[] = {
 			.requires_fan_curve = true,
 		},
 	},
+	{
+		.matches = {
+			DMI_MATCH(DMI_BOARD_NAME, "GA403GM"),
+		},
+		.driver_data = &(struct power_data) {
+			.ac_data = &(struct power_limits) {
+				.ppt_pl1_spl_min = 15,
+				.ppt_pl1_spl_max = 80,
+				.ppt_pl2_sppt_min = 25,
+				.ppt_pl2_sppt_max = 80,
+				.ppt_pl3_fppt_min = 35,
+				.ppt_pl3_fppt_max = 80,
+				.nv_dynamic_boost_min = 0,
+				.nv_dynamic_boost_max = 15,
+				.nv_temp_target_min = 75,
+				.nv_temp_target_max = 87,
+				.nv_tgp_min = 55,
+				.nv_tgp_max = 85,
+			},
+			.dc_data = &(struct power_limits) {
+				.ppt_pl1_spl_min = 15,
+				.ppt_pl1_spl_max = 35,
+				.ppt_pl2_sppt_min = 25,
+				.ppt_pl2_sppt_max = 35,
+				.ppt_pl3_fppt_min = 35,
+				.ppt_pl3_fppt_max = 65,
+				.nv_temp_target_min = 75,
+				.nv_temp_target_max = 87,
+			},
+			.requires_fan_curve = true,
+		},
+	},
 	{
 		.matches = {
 			DMI_MATCH(DMI_BOARD_NAME, "GA403UI"),
Signature · 1 line
2.56.1
#2 lore raw

PATCH 2/2 MAINTAINERS: cover all files in drivers/platform/asus/

In reply to Nikita Ivannikov

Commit ef696e89f836 ("platform/asus: Move ASUS platform drivers out of drivers/platform/x86") moved the ASUS drivers to drivers/platform/asus/ and updated the ASUS entries, whose patterns only match *.c files. Before the move, the remaining files (asus-armoury.h, asus-wmi.h, Kconfig and Makefile) were covered by the drivers/platform/x86/ pattern of the X86 PLATFORM DRIVERS entry. Now no entry matches them, so get_maintainer.pl returns only [email protected] for a change to asus-armoury.h.

Add the ASUS headers to the ASUS NOTEBOOKS entry and, as the drivers are still maintained in the pdx86 tree, add the new directory to the X86 PLATFORM DRIVERS entry.

Fixes ef696e89f836 ("platform/asus: Move ASUS platform drivers out of drivers/platform/x86")
---
 MAINTAINERS | 2 ++
 1 file changed, 2 insertions(+)
MAINTAINERS +2 -0
index ba7650cb86b0..3ee17232ac0a 100644
@@ -4227,6 +4227,7 @@ L:	[email protected]
 S:	Maintained
 W:	https://asus-linux.org/
 F:	drivers/platform/asus/asus*.c
+F:	drivers/platform/asus/asus*.h
 F:	drivers/platform/asus/eeepc*.c
 
 ASUS TF103C DOCK DRIVER
@@ -30433,6 +30434,7 @@ L:	[email protected]
 S:	Maintained
 Q:	https://patchwork.kernel.org/project/platform-driver-x86/list/
 T:	git git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git
+F:	drivers/platform/asus/
 F:	drivers/platform/olpc/
 F:	drivers/platform/x86/
 F:	include/linux/platform_data/x86/
Signature · 1 line
2.56.1