Re: [PATCH v5 0/2] platform/x86: panasonic-laptop: add platform_profile support

From: Wu Zhipeng

Date: Fri Dec 04 2026 - 03:52:29 EST


Hi Alex,

A correction to my Tested-by: the numbers and the tag stand, but a few
statements were imprecise.

Test environment: Debian 13, 7.3.4+deb13-amd64, built out-of-tree against
that kernel's headers, on AC. sv off, power-profiles-daemon stopped and
masked, thermald not running.

Source identity: pre-image ef2ada1b, post-1/2 06b45043, post-2/2 and the
built .c cb0b9bd4 -- the built file matches the post-2/2 blob.

Mapping (CEFM/EPLE): cool 0x0/0x1, quiet 0x1/0x1, performance 0x0/0x0;
SEFM 1 + SEPL 0 reads back as custom.

Both nodes -- /sys/firmware/acpi/platform_profile and
/sys/class/platform-profile/platform-profile-0/profile -- accept and read
back cool/quiet/performance; they differ only in the errno when rejecting a
value the driver does not support. custom is read-only (EINVAL on the
legacy node, EOPNOTSUPP on the class node); max-power is a valid
platform_profile value but this driver does not expose it, so writing it
returns EOPNOTSUPP on both.

Two scripted s2idle checks (cool and quiet) kept the profile across resume,
and a write after resume still reached the EC; no module, ACPI or resume
errors in dmesg.

The 3x4 AC campaign used direct EC writes (SEFM/SEPL via acpi_call); the
module was loaded only to report platform_profile. Medians of 3 rounds:
cool 10.09 W / 47 C, quiet 9.92 W / 54 C, performance 24.22 W / 74 C,
custom 25.16 W / 84 C -- the fan toggle moves temperature at essentially
equal package power.

Evidence: tag v5-test-20261204 (v5-ac-4state-20261204 for the campaign) in
https://github.com/numuly/cf-sv1-2-platform-profile-evidence

Tested-by: Wu Zhipeng <zepwu@xxxxxxxxxxx>