Skip to contentSkip to conversation

platform/x86: hp-wmi: add cTGP and PPAB support for Omen

PATCH In review ShaunV334 3 participants 5 messages Sep 3 – Oct 13 x86 platform drivers

lore
Share & tools
lore

ShaunV334

author
#0 lore raw

PATCH 1/1 platform/x86: hp-wmi: add cTGP and PPAB support for Omen

From: Shaun Varghese <[email protected]>

On supported Omen systems, the GPU can be limited to a lower power limit because cTGP and PPAB are not configured when changing the platform profile.

Configure the GPU cTGP and PPAB settings through the existing WMI 0x22 GPU thermal profile interface. Performance enables both cTGP and PPAB, Balanced enables PPAB, and Cool disables both.

This allows the NVIDIA GPU to make use of the additional power budget provided by the platform, improving GPU performance compared to the lower power limit.

Tested on an HP Omen Transcend 14 (board 8C58) RTX 4060. The GPU was limited to 35 W before this change. With cTGP/PPAB enabled, the GPU was able to reach and maintain its boost clocks, with power draw increasing to 57 W, benchmark performance improving by approximately 10–15%.

---
 drivers/platform/x86/hp/hp-wmi.c | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
drivers/platform/x86/hp/hp-wmi.c +30 -0
index b2773fc1aca4..54887a476c8e 100644
@@ -1771,9 +1771,15 @@ inline int omen_thermal_profile_ec_timer_set(u8 value)
 	return ec_write(HP_OMEN_EC_THERMAL_PROFILE_TIMER_OFFSET, value);
 }
 
+static int victus_s_gpu_thermal_profile_set(bool ctgp_enable,
+					    bool ppab_enable,
+					    u8 dstate);
+
 static int platform_profile_omen_set_ec(enum platform_profile_option profile)
 {
 	int err, tp, tp_version;
+	bool gpu_ctgp_enable;
+	bool gpu_ppab_enable;
 	enum hp_thermal_profile_omen_flags flags = 0;
 
 	tp_version = omen_get_thermal_policy_version();
@@ -1787,19 +1793,31 @@ static int platform_profile_omen_set_ec(enum platform_profile_option profile)
 			tp = HP_OMEN_V0_THERMAL_PROFILE_PERFORMANCE;
 		else
 			tp = HP_OMEN_V1_THERMAL_PROFILE_PERFORMANCE;
+
+		gpu_ctgp_enable = true;
+		gpu_ppab_enable = true;
 		break;
+
 	case PLATFORM_PROFILE_BALANCED:
 		if (tp_version == 0)
 			tp = HP_OMEN_V0_THERMAL_PROFILE_DEFAULT;
 		else
 			tp = HP_OMEN_V1_THERMAL_PROFILE_DEFAULT;
+
+		gpu_ctgp_enable = false;
+		gpu_ppab_enable = true;
 		break;
+
 	case PLATFORM_PROFILE_COOL:
 		if (tp_version == 0)
 			tp = HP_OMEN_V0_THERMAL_PROFILE_COOL;
 		else
 			tp = HP_OMEN_V1_THERMAL_PROFILE_COOL;
+
+		gpu_ctgp_enable = false;
+		gpu_ppab_enable = false;
 		break;
+
 	default:
 		return -EOPNOTSUPP;
 	}
@@ -1808,6 +1826,18 @@ static int platform_profile_omen_set_ec(enum platform_profile_option profile)
 	if (err < 0)
 		return err;
 
+	/*
+	 * Configure GPU cTGP / PPAB through WMI 0x22 according to
+	 * the selected platform profile.
+	 */
+	err = victus_s_gpu_thermal_profile_set(gpu_ctgp_enable,
+					       gpu_ppab_enable,
+					       1);
+	if (err < 0) {
+		pr_debug("hp-wmi: GPU cTGP/PPAB set returned %d\n", err);
+		return err;
+	}
+
 	if (has_omen_thermal_profile_ec_timer()) {
 		err = omen_thermal_profile_ec_timer_set(0);
 		if (err < 0)
Signature · 1 line
2.55.0
#1 lore raw
Quoted 83 lines · On Fri, Sep 04, 2026 at 01:26:26AM +0530, ShaunV334 wrote:

From: Shaun Varghese <[email protected]>

On supported Omen systems, the GPU can be limited to a lower power limit because cTGP and PPAB are not configured when changing the platform profile.

Configure the GPU cTGP and PPAB settings through the existing WMI 0x22 GPU thermal profile interface. Performance enables both cTGP and PPAB, Balanced enables PPAB, and Cool disables both.

This allows the NVIDIA GPU to make use of the additional power budget provided by the platform, improving GPU performance compared to the lower power limit.

Tested on an HP Omen Transcend 14 (board 8C58) RTX 4060. The GPU was limited to 35 W before this change. With cTGP/PPAB enabled, the GPU was able to reach and maintain its boost clocks, with power draw increasing to 57 W, benchmark performance improving by approximately 10–15%.

---
drivers/platform/x86/hp/hp-wmi.c | 30 ++++++++++++++++++++++++++++++

1 file changed, 30 insertions(+)
drivers/platform/x86/hp/hp-wmi.c +20 -0
index b2773fc1aca4..54887a476c8e 100644
@@ -1771,9 +1771,15 @@ inline int omen_thermal_profile_ec_timer_set(u8 value)
 	return ec_write(HP_OMEN_EC_THERMAL_PROFILE_TIMER_OFFSET, value);
 }
 
+static int victus_s_gpu_thermal_profile_set(bool ctgp_enable,
+					    bool ppab_enable,
+					    u8 dstate);
+
 static int platform_profile_omen_set_ec(enum platform_profile_option profile)
 {
 	int err, tp, tp_version;
+	bool gpu_ctgp_enable;
+	bool gpu_ppab_enable;
 	enum hp_thermal_profile_omen_flags flags = 0;
 
 	tp_version = omen_get_thermal_policy_version();
@@ -1787,19 +1793,31 @@ static int platform_profile_omen_set_ec(enum platform_profile_option profile)
 			tp = HP_OMEN_V0_THERMAL_PROFILE_PERFORMANCE;
 		else
 			tp = HP_OMEN_V1_THERMAL_PROFILE_PERFORMANCE;
+
+		gpu_ctgp_enable = true;
+		gpu_ppab_enable = true;
 		break;
+
 	case PLATFORM_PROFILE_BALANCED:
 		if (tp_version == 0)
 			tp = HP_OMEN_V0_THERMAL_PROFILE_DEFAULT;
 		else
 			tp = HP_OMEN_V1_THERMAL_PROFILE_DEFAULT;
+
+		gpu_ctgp_enable = false;
+		gpu_ppab_enable = true;
 		break;
+
 	case PLATFORM_PROFILE_COOL:
 		if (tp_version == 0)
 			tp = HP_OMEN_V0_THERMAL_PROFILE_COOL;
 		else
 			tp = HP_OMEN_V1_THERMAL_PROFILE_COOL;
+
+		gpu_ctgp_enable = false;
+		gpu_ppab_enable = false;
 		break;
+
 	default:
 		return -EOPNOTSUPP;
 	}
@@ -1808,6 +1826,18 @@ static int platform_profile_omen_set_ec(enum platform_profile_option profile)
 	if (err < 0)
 		return err;
 
+	/*
+	 * Configure GPU cTGP / PPAB through WMI 0x22 according to

drivers/platform/x86/hp/hp-wmi.c static int platform_profile_omen_set_ec(enum platform_profile_option profile) · line 1840

Quoted 10 lines
drivers/platform/x86/hp/hp-wmi.c +10 -0
+	 * the selected platform profile.
+	 */
+	err = victus_s_gpu_thermal_profile_set(gpu_ctgp_enable,
+					       gpu_ppab_enable,
+					       1);
+	if (err < 0) {
+		pr_debug("hp-wmi: GPU cTGP/PPAB set returned %d\n", err);
+		return err;
+	}
+

Hi,

platform_profile_omen_set_ec() is used by:
1. omen_thermal_profile_boards[]
2. omen_thermal_profile_force_v0_boards[]
3. omen_timed_thermal_profile_boards[]

Not all boards in those lists support cTGP / PPAB changes. Forcing WMI calls in potentially unsupported devices can lead to failure in switching platform profile as an unintended consequence.

This is why hp_wmi_feature_boards[] array exists in the first place: for devices supporting cTGP / PPAB changes (among other special WMI calls). I think you should consider moving 8C58 from omen_thermal_profile_boards[] to hp_wmi_feature_boards[]

In fact, after taking a look at the acpidump for 8C58, as provided by Big Dru [1], I think 8C58 supports all WMI calls in hp_wmi_feature_boards[]. Adding it to that list and mapping against omen_v1_legacy_board_params seems to be the right approach, in my opinion.

[1]: https://lore.kernel.org/platform-driver-x86/CAAC6SV4BY3oXpokdBETs9n-NYoxrENJWp7Qs=E2ZK7=Yz=f4mw@mail.gmail.com

Quoted 6 lines
drivers/platform/x86/hp/hp-wmi.c +0 -0
 	if (has_omen_thermal_profile_ec_timer()) {
 		err = omen_thermal_profile_ec_timer_set(0);
 		if (err < 0)
Signature · 1 line
2.55.0
author
#2 lore raw

PATCH v2 1/1 platform/x86: hp-wmi: add Omen Transcend 14 8C58 support

From: Shaun Varghese <[email protected]>

Thanks for the information, I've currently added 8C58 to hp_wmi_feature_boards[]
and removed it from omen_thermal_profile_boards[] as suggested. Manual PWM fan control
is confirmed to be working but the GPU is still missing that additional +15w from 'Smart Performance Gain'. That will require further investigation.

Add the HP Omen Transcend 14 board name 8C58 to the hp_wmi feature board table using the existing omen_v1_legacy_board_params.

Remove 8C58 from the omen thermal profile board list so that the board uses the appropriate feature-board handling.

---
v2:
- Drop the CTGP/PPAB changes from v1.
- Add 8C58 to hp_wmi_feature_boards using
omen_v1_legacy_board_params.

---
 drivers/platform/x86/hp/hp-wmi.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/platform/x86/hp/hp-wmi.c +4 -1
index b2773fc1a..e55ed5b3c 100644
@@ -209,7 +209,6 @@ static const char * const omen_thermal_profile_boards[] = {
 	"8900", "8901", "8902", "8912", "8917", "8918", "8949", "894A", "89EB",
 	"8A15", "8A42", "8A43",
 	"8BAD",
-	"8C58",
 	"8E41",
 };
 
@@ -299,6 +298,10 @@ static const struct dmi_system_id hp_wmi_feature_boards[] __initconst = {
 		.matches = { DMI_MATCH(DMI_BOARD_NAME, "8BD5") },
 		.driver_data = (void *)&victus_s_board_params,
 	},
+	{
+		.matches = { DMI_MATCH(DMI_BOARD_NAME, "8C58") },
+		.driver_data = (void *)&omen_v1_legacy_board_params,
+	},
 	{
 		.matches = { DMI_MATCH(DMI_BOARD_NAME, "8C76") },
 		.driver_data = (void *)&omen_v1_board_params,
Signature · 1 line
2.55.0
maintainer
#3 lore raw

Re: [PATCH v2] platform/x86: hp-wmi: add Omen Transcend 14 8C58 support

Quoted 9 lines · On Sun, 06 Sep 2026 18:31:14 +0530, ShaunV334 wrote:

Thanks for the information, I've currently added 8C58 to hp_wmi_feature_boards[]
and removed it from omen_thermal_profile_boards[] as suggested. Manual PWM fan control
is confirmed to be working but the GPU is still missing that additional +15w from 'Smart Performance Gain'. That will require further investigation.

Add the HP Omen Transcend 14 board name 8C58 to the hp_wmi feature board table using the existing omen_v1_legacy_board_params.

[...]

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: hp-wmi: add Omen Transcend 14 8C58 support

      commit: 4dabecbb202e872dc8cd4c4b5ee7076b75e23162

--
i.

maintainer
#4 lore raw

Re: [PATCH v2] platform/x86: hp-wmi: add Omen Transcend 14 8C58 support

Quoted 17 lines · Ilpo Järvinen
Quoted 9 lines · On Sun, 06 Sep 2026 18:31:14 +0530, ShaunV334 wrote:

Thanks for the information, I've currently added 8C58 to hp_wmi_feature_boards[]
and removed it from omen_thermal_profile_boards[] as suggested. Manual PWM fan control
is confirmed to be working but the GPU is still missing that additional +15w from 'Smart Performance Gain'. That will require further investigation.

Add the HP Omen Transcend 14 board name 8C58 to the hp_wmi feature board table using the existing omen_v1_legacy_board_params.

[...]

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.

Quoted 8 lines

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: hp-wmi: add Omen Transcend 14 8C58 support

      commit: 4dabecbb202e872dc8cd4c4b5ee7076b75e23162

I had to dropped this patch because it's lacking a proper Signed-off-by tag.

Please see Documentation/process/submitting-patches.rst for more information on what is required and send a new version with the problem corrected.

Signature · 1 line
 i.