[PATCH v3 1/2] platform/x86: hp-wmi: fix platform profile values for Victus 15-fb0xxx (8A3D)

From: Sourav Nayak

Date: Sat Nov 21 2026 - 02:16:46 EST


Currently Victus 15-fb0xxx (8A3D) takes victus_s_thermal_params,
which causes it to register as incorrect EC layout while cold boot.

- On other hand windows Omen Gaming Hub registers EC offset as 0x95,
- which is set in driver as HP_OMEN_EC_THERMAL_PROFILE_OFFSET.
- So, address it by adding victus_s_ec_thermal_params.

- Also perfcontrol modes as performance (0x1), default (0x0), quiet
(0x3) registers. So, add support for quiet mode.

Tested-by: Sourav Nayak <nonameblank007@xxxxxxxxx>
Signed-off-by: Sourav Nayak <nonameblank007@xxxxxxxxx>
---
drivers/platform/x86/hp/hp-wmi.c | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/drivers/platform/x86/hp/hp-wmi.c b/drivers/platform/x86/hp/hp-wmi.c
index 0069af86800e..0166b9cc4d9e 100644
--- a/drivers/platform/x86/hp/hp-wmi.c
+++ b/drivers/platform/x86/hp/hp-wmi.c
@@ -125,6 +125,13 @@ static const struct thermal_profile_params victus_s_thermal_params = {
.ec_tp_offset = HP_EC_OFFSET_UNKNOWN,
};

+static const struct thermal_profile_params victus_s_ec_thermal_params = {
+ .performance = HP_VICTUS_THERMAL_PROFILE_PERFORMANCE,
+ .balanced = HP_VICTUS_THERMAL_PROFILE_DEFAULT,
+ .low_power = HP_VICTUS_THERMAL_PROFILE_QUIET,
+ .ec_tp_offset = HP_OMEN_EC_THERMAL_PROFILE_OFFSET,
+};
+
static const struct thermal_profile_params omen_v1_thermal_params = {
.performance = HP_OMEN_V1_THERMAL_PROFILE_PERFORMANCE,
.balanced = HP_OMEN_V1_THERMAL_PROFILE_DEFAULT,
@@ -168,6 +175,11 @@ static const struct hp_wmi_board_params victus_s_board_params = {
.fan_profile = &victus_s_fan_profile_params,
};

+static const struct hp_wmi_board_params victus_s_ec_board_params = {
+ .thermal_profile = &victus_s_ec_thermal_params,
+ .fan_profile = &victus_s_fan_profile_params,
+};
+
static const struct hp_wmi_board_params omen_v1_board_params = {
.thermal_profile = &omen_v1_thermal_params,
.fan_profile = &victus_s_fan_profile_params,
@@ -251,7 +263,7 @@ static const struct dmi_system_id hp_wmi_feature_boards[] __initconst = {
},
{
.matches = { DMI_MATCH(DMI_BOARD_NAME, "8A3D") },
- .driver_data = (void *)&victus_s_board_params,
+ .driver_data = (void *)&victus_s_ec_board_params,
},
{
.matches = { DMI_MATCH(DMI_BOARD_NAME, "8A44") },
@@ -2395,10 +2407,14 @@ static int platform_profile_victus_s_get_ec(enum platform_profile_option *profil
* but logically it should have tp == 0x30 || tp == 0x31, as
* corrected by the Omen Gaming Hub on windows. Hence accept both
* of these values.
+ * Since boards like 8A3D write 0x3 to EC offset 0x95 to
+ * engage quiet mode. Map this to PLATFORM_PROFILE_LOW_POWER.
*/
if (tp == victus_s_thermal_params.performance ||
tp == omen_v1_thermal_params.performance) {
*profile = PLATFORM_PROFILE_PERFORMANCE;
+ } else if (tp == victus_s_ec_thermal_params.low_power) {
+ *profile = PLATFORM_PROFILE_LOW_POWER;
} else if (tp == victus_s_thermal_params.balanced ||
tp == omen_v1_thermal_params.balanced) {
/*
--
2.55.0