Skip to content

Add max-power platform profile

Derek J. Clark linux-acpi linux-doc lkml platform-driver-x86 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 3 repliesIn review
  2. v33 patches 7 repliesSuperseded
  3. v23 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches8 repliesSuperseded

Changes in v4 from the cover letter

- prevent platform_profile_cycle() from selecting max_power.
v3: https://lore.kernel.org/platform-driver-x86/[email protected]/
- Rename the vendor specific "extreme" to a vendor agnositic "max-power"
to better allign with the "low-power" platform profile.
v2: https://lore.kernel.org/platform-driver-x86/[email protected]/
- Drop patch 3/3, keep extreme mode quirks table
- Add Legion Go 2 to quirks table
- Fix nits from Mario
v1: https://lore.kernel.org/platform-driver-x86/[email protected]/

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3acpi: platform_profile - Add max-power profile optionDocumentation/ABI/testing/sysfs-class-platform-profile drivers/acpi/platform_profile.c include/linux/platform_profile.h+8 -21 reply
2/3platform/x86: lenovo-wmi-gamezone Use max-power rather than balanced-performanceDocumentation/wmi/devices/lenovo-wmi-gamezone.rst drivers/platform/x86/lenovo/wmi-gamezone.c+20 -290 replies
3/3platform/x86: wmi-gamezone: Add Legion Go 2 Quirksdrivers/platform/x86/lenovo/wmi-gamezone.c+16 -10 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMario Limonciello (AMD)Rafael J. Wysocki (Intel)Armin WolfMark Pearson
SeriesR-b
1/3R-b A-b R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/3] Add max-power platform profile

This series adds a new "max-power" platform profile mode and uses it for the lenovo-wmi-gamezone driver. It also adds the Lenovo Legion Go 2 to the extreme mode quirks table.

On some Lenovo Legion devices there is a thermal mode called extreme that corresponds to setting ppt/spl vlaues to the maximum achievable by the cooling solution. This correlates strongly with an overall power draw that exceeds the DC power draw capability of the internal battery. This mode being mapped to performance when extreme mode is detected as supported, with the actual performance mode being set to balanced-performance, has led to some misinformation being promulgated that performance is always a bad setting in Linux for these devices. There is also some confusion that the mode labeled performance in userspace, which corresponds to a red LED in Windows, shows as purple when set using the hardware extreme mode.

I'll also note that as the hard TDP limits are refreshed when on AC or DC by the ACPI notifier of lenovo-wmi-other method driver, no special handling of the battery is needed for safety limiting extreme mode.

---
v4:
- prevent platform_profile_cycle() from selecting max_power.
v3: https://lore.kernel.org/platform-driver-x86/[email protected]/
- Rename the vendor specific "extreme" to a vendor agnositic "max-power"
to better allign with the "low-power" platform profile.
v2: https://lore.kernel.org/platform-driver-x86/[email protected]/
- Drop patch 3/3, keep extreme mode quirks table
- Add Legion Go 2 to quirks table
- Fix nits from Mario
v1: https://lore.kernel.org/platform-driver-x86/[email protected]/

Derek J. Clark (3):
acpi: platform_profile - Add max-power profile option platform/x86: lenovo-wmi-gamezone Use max-power rather than
balanced-performance
platform/x86: wmi-gamezone: Add Legion Go 2 Quirks

 .../ABI/testing/sysfs-class-platform-profile  |  2 ++
 .../wmi/devices/lenovo-wmi-gamezone.rst       | 31 ++++++++--------
 drivers/acpi/platform_profile.c               |  7 ++--
 drivers/platform/x86/lenovo/wmi-gamezone.c    | 35 +++++++++++--------
 include/linux/platform_profile.h              |  1 +
 5 files changed, 44 insertions(+), 32 deletions(-)
Signature · 1 line
2.51.2