Skip to contentSkip to conversation

platform/x86: asus-armoury: Add power limits for Asus G513QY

PATCH Superseded Shresth Sarthak Awasthi 2 participants 3 messages Jan 9 – Jan 15 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/x86: asus-armoury: Add power limits for Asus G513QY

Add the DMI entry and power limits for the Asus ROG Strix G15 Advantage Edition (G513QY). This laptop requires manual fan curves and specific APU/Platform PPT limits.

---
 drivers/platform/x86/asus-armoury.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
drivers/platform/x86/asus-armoury.h +16 -0
index 3ac7aea37838..c94da70de87f 100644
@@ -1316,6 +1316,22 @@ static const struct dmi_system_id power_limits[] = {
 			.requires_fan_curve = true,
 		},
 	},
+	{
+		.matches = {
+			DMI_MATCH(DMI_BOARD_NAME, "G513QY"),
+		},
+		.driver_data = &(struct power_data) {
+			.ac_data = &(struct power_limits) {
+				/* Advantage Edition Laptop, no PL1 or PL2 limits */
+				.ppt_apu_sppt_min = 15,
+				.ppt_apu_sppt_max = 100,
+				.ppt_platform_sppt_min = 190,
+				.ppt_platform_sppt_max = 190,
+			},
+			.dc_data = NULL,
+			.requires_fan_curve = true,
+		},
+	},
 	{
 		.matches = {
 			DMI_MATCH(DMI_BOARD_NAME, "G513R"),
Signature · 1 line
2.52.0
#1 lore raw

PATCH v2 1/1 platform/x86: asus-armoury: Add power limits for Asus G513QY

Add the DMI entry and power limits for the Asus ROG Strix G15 Advantage Edition (G513QY). This laptop requires manual fan curves and specific APU/Platform PPT limits.

---
Changes in v2:
- Fixed typo in ppt_platform_sppt_min (changed 190 to 70).

 drivers/platform/x86/asus-armoury.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
drivers/platform/x86/asus-armoury.h +16 -0
index 3ac7aea37838..6f2c18a2d93d 100644
@@ -1316,6 +1316,22 @@ static const struct dmi_system_id power_limits[] = {
 			.requires_fan_curve = true,
 		},
 	},
+	{
+		.matches = {
+			DMI_MATCH(DMI_BOARD_NAME, "G513QY"),
+		},
+		.driver_data = &(struct power_data) {
+			.ac_data = &(struct power_limits) {
+				/* Advantage Edition Laptop, no PL1 or PL2 limits */
+				.ppt_apu_sppt_min = 15,
+				.ppt_apu_sppt_max = 100,
+				.ppt_platform_sppt_min = 70,
+				.ppt_platform_sppt_max = 190,
+			},
+			.dc_data = NULL,
+			.requires_fan_curve = true,
+		},
+	},
 	{
 		.matches = {
 			DMI_MATCH(DMI_BOARD_NAME, "G513R"),
Signature · 1 line
2.52.0
maintainer
#2 lore raw
Quoted 5 lines · Shresth Sarthak Awasthi

Add the DMI entry and power limits for the Asus ROG Strix G15 Advantage Edition (G513QY). This laptop requires manual fan curves and specific APU/Platform PPT limits.

Thank you for your contribution, it has been applied to my local review-ilpo-fixes branch. Note it will show up in the public platform-drivers-x86/review-ilpo-fixes branch only once I've pushed my local branch there, which might take a while.

The list of commits applied:
[1/1] platform/x86: asus-armoury: Add power limits for Asus G513QY

      commit: 2e91919a67953609d34786807697410a6ffb760e

--
i.