Skip to content

Add support for hidden choices to platform_profile

Mario Limonciello linux-acpi lkml platform-driver-x86 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ACPI: platform_profile: Add support for hidden choicesdrivers/acpi/platform_profile.c include/linux/platform_profile.h+76 -219 replies
2/3platform/x86/amd: pmf: Add 'quiet' to hidden choicesdrivers/platform/x86/amd/pmf/sps.c+9 -00 replies
3/3platform/x86/amd: pmf: Add balanced-performance to hidden choicesdrivers/platform/x86/amd/pmf/sps.c+2 -00 replies

Reviews trailers per patch

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

PatchDerek J. ClarkAntheas KapenekakisIlpo Järvinen
SeriesT-b T-b A-b
1/3
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 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/3] Add support for hidden choices to platform_profile

From: Mario Limonciello <[email protected]>

When two drivers provide platform profile handlers but use different strings to mean (essentially) the same thing the legacy interface won't export them because it only shows profiles common to multiple drivers.

This causes an unexpected behavior to people who have upgraded from an earlier kernel because if multiple drivers have bound platform profile handlers they might not be able to access profiles they were expecting.

Introduce a concept of a "hidden choice" that drivers can register and the platform profile handler code will utilize when using the legacy interface.

There have been some other attempts at solving this issue in other ways. This serves as an alternative to those attempts.

Mario Limonciello (3):
ACPI: platform_profile: Add support for hidden choices platform/x86/amd: pmf: Add 'quiet' to hidden choices platform/x86/amd: pmf: Add balanced-performance to hidden choices

 drivers/acpi/platform_profile.c    | 94 +++++++++++++++++++++++-------
 drivers/platform/x86/amd/pmf/sps.c | 11 ++++
 include/linux/platform_profile.h   |  3 +
 3 files changed, 87 insertions(+), 21 deletions(-)
Signature · 1 line
2.43.0