Re: [RFC PATCH v3 0/5] platform/x86: huawei-wmi: expose native firmware power profiles

From: Zheng Shuyang

Date: Wed Nov 25 2026 - 10:12:22 EST


Hi Eren and Fuwei,

On Wed, Nov 25, 2026 at 08:17:27AM +0000, Eren Özen wrote:
> Zheng, did your s2idle test on FMB-P start in performance mode?

Yes, my earlier v2 s2idle test started in performance mode. I just ran
dedicated s2idle and fast-write checks on FMB-P (BIOS 1.16, Arch
7.3.5-arch1-1) with power-profiles-daemon stopped, on both unmodified v3
and v3 with your two changes folded in:

Unmodified RFC v3:
- s2idle starting in performance (plugged in, ~9 s): on resume, FMB-P
preserved performance (cached=performance, GTUB=1, ODVP2=1). Unlike
CREM-WXX9, BIOS 1.16 does not clear Turbo across a plugged-in s2idle.
- s2idle starting in performance with AC unplugged during sleep (~11 s):
on wake (AC=0), cached platform_profile, GTUB, and ODVP all matched
balanced (GTUB=0, ODVP1=1).
- Fast writes (6 rounds x 50 balanced/performance pairs, alternating
final mode): 0/6 stale rounds (cached == GTUB after every round).

RFC v3 + both of your changes (method resume sync + 0x2a0/0x2a1 using
huawei_wmi_profile_sync()):
- Built with W=1 without warnings.
- Fast writes (same 6 x 50 pairs): 0/6 stale rounds.
- Fn+P and s2idle starting in performance (~7 s) kept cached
platform_profile, GTUB, and ODVP in sync with no kernel warnings, and
module unload/reload was clean.

So on FMB-P, \GTUB is already updated by the time 0x2a0/0x2a1 arrives,
and both of your changes work cleanly here without regressions.

Note: Gemini helped with the test scripts and drafting this report; I
performed the physical steps on the machine and verified the results.

Thanks,
Zheng Shuyang