Re: [RFC PATCH v2 0/2] platform/x86: huawei-wmi: native Turbo profiles with capability detection
From: Zheng Shuyang
Date: Tue Nov 24 2026 - 11:25:58 EST
Hi Fuwei,
I tested RFC v2 on an HONOR MagicBook Pro 14 (2025, Mainland China SKU C233,
DMI: HONOR / FMB-P, Intel Core Ultra 5 225H, BIOS 1.16) running Arch Linux
(kernel 7.3.5-arch1-1, power-profiles-daemon 0.30). Both patches applied
cleanly to v7.3's drivers/platform/x86/huawei-wmi.c and built as a module
without warnings.
Test results:
- Capability detection found \GTUB and \STUB and registered platform_profile
("balanced performance") without altering the active mode (remained
performance / GTUB=1 across module load).
- Writing "balanced" / "performance" via sysfs and switching via
powerprofilesctl (balanced, performance, power-saver) updated GTUB and
flipped Intel DPTF INTC1042:00 odvp1/odvp2 as expected.
- Fn+P updated both /sys/firmware/acpi/platform_profile and
power-profiles-daemon 0.30 (powerprofilesctl get) immediately, with no
"Unknown key pressed" logs for 0x02a0/0x02a1/0x02a6. (Unlike Eren's
tuned-ppd observation, stock ppd 0.30 followed Fn+P right away.)
- Unplugging AC in performance mode dropped platform_profile, ppd, GTUB,
and ODVP back to balanced.
- s2idle suspend/resume preserved consistent profile state and switching
continued to work afterward. Existing features (battery thresholds,
fn_lock_state, micmute LED) and module unload/reload were clean.
Regarding your questions:
1. Capability gate: On this HONOR Arrow Lake unit, probing \GTUB/\STUB
worked out of the box without any DMI allowlist.
2. Keeping 0x2a6 in the refresh path: Strongly yes. On FMB-P BIOS 1.16,
0x2a6 is also emitted when a mode switch is rejected (on battery or
below 20% charge). Moreover, writing "performance" to platform_profile
on battery returned 0 in ~0.8 ms because \STUB writes CRWM=1
synchronously and the immediate \GTUB readback at 0.9 ms still sees 1;
within ~50 ms (observed at 51.8 ms) the EC asynchronously reverts CRWM
to 0 and emits 0x2a6. Having 0x2a6 trigger the deferred refresh is what
brought both platform_profile and power-profiles-daemon back to balanced.
(Note: BIOS 1.16 can also emit 0x2a5 for TBF2-restricted transitions.)
Tested-by: Zheng Shuyang <yhshzh0@xxxxxxxxx> # HONOR MagicBook Pro 14 (FMB-P), BIOS 1.16
Thanks,
Zheng Shuyang