Re: [PATCH 1/2] platform/x86: hp-wmi: Only use the low byte of the thermal profile
From: Shan Rizvi
Date: Sun Nov 29 2026 - 13:42:41 EST
Hi Samuel, Akhil, Hans, and Ilpo,
Corroborating this on an HP OmniBook X Flip Laptop 16-cc0xxx (board HP
8EA2, BIOS Insyde F.07):
- Disassembling SSDT4 shows the same GTPS/STPS layout: GTPS packs the
active thermal profile in byte 0 ((RDMB(0xC3) & 0x0F) - 1), EC status
flags in byte 1, and the posture/SAR byte RDMB(0x3D) (clamped to 0x04)
in byte 2; STPS writes only byte 0 back to EC 0xC3 and calls WPMF().
- On stock 7.2.15, HPWMI_THERMAL_PROFILE_QUERY (0x4c) returns 0x00041101
in balanced mode, causing /sys/class/platform-profile/platform-profile-1/profile
to fail with -EINVAL ("platform_profile: Failed to get profile for
handler hp-wmi").
- Masking to the low byte fixes platform_profile on 8EA2: initial read
returns "balanced" and round-tripping cool, quiet, performance, and
balanced all read back cleanly.
Also cross-referencing Akhil Boyapati's earlier patch for board 8C15
(<20261026030658.119596-1-boyakhil978@xxxxxxxxx>) and Ilpo's Nov 9
review requesting a named mask with FIELD_GET() and standard if (tp < 0)
error handling (<741290aa-a266-7589-5372-1554d281c632@xxxxxxxxxxxxxxx>):
I verified the FIELD_GET(HP_THERMAL_PROFILE_MASK, tp) variant on 8EA2 as
well.
Tested-by: Shan Rizvi <shan@xxxxxxxx>
Thanks,
Shan Rizvi