From: Zheng Shuyang <yhshzh0@gmail.com>
To: Fuwei Xie <12313607@mail.sustech.edu.cn>
Cc: "Hans de Goede" <hansg@kernel.org>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Eren Özen" <erenozen@protonmail.com>,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH v2 0/2] platform/x86: huawei-wmi: native Turbo profiles with capability detection
Date: Wed, 25 Nov 2026 00:25:48 +0800 [thread overview]
Message-ID: <20261124162548.55861-1-yhshzh0@gmail.com> (raw)
In-Reply-To: <69C3BBDEF214121E+20261118161311.17252-1-12313607@mail.sustech.edu.cn>
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@gmail.com> # HONOR MagicBook Pro 14 (FMB-P), BIOS 1.16
Thanks,
Zheng Shuyang
prev parent reply other threads:[~2026-11-24 16:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 16:13 Fuwei Xie
2026-11-18 22:19 ` Eren Özen
2026-11-24 16:25 ` Zheng Shuyang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124162548.55861-1-yhshzh0@gmail.com \
--to=yhshzh0@gmail.com \
--cc=12313607@mail.sustech.edu.cn \
--cc=erenozen@protonmail.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®