All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] platform/x86: hp-wmi: fix platform profile issues on generic HP laptops
@ 2026-06-19 22:09 Marco Scardovi
  2026-06-19 22:09 ` [PATCH 1/1] " Marco Scardovi
  0 siblings, 1 reply; 6+ messages in thread
From: Marco Scardovi @ 2026-06-19 22:09 UTC (permalink / raw)
  To: moravec
  Cc: hansg, ilpo.jarvinen, krishna.chomal108, eliadevito, emreleno,
	rafael, linux-kernel, platform-driver-x86, regressions,
	regressions, Marco Scardovi

Hi everyone,

I was looking for [1] and come with a quick fix for it. Please review it
and let me know if you have any questions/suggestions.

TL;DR: The driver was blindly registering all 4 profiles (quiet, cool,
balanced, performance) without checking which ones were actually supported
by the BIOS.

This patch fixes a platform_profile regression on generic (non-Omen/non-Victus)
HP laptops, where switching or querying power profiles fails with the error:
"platform_profile: Failed to get profile for handler hp-wmi"

We resolve this by:
1. Dynamically probing supported thermal profiles at boot time.
2. Initializing and updating a cached active_platform_profile.
3. Falling back to the cached profile if the BIOS query fails or returns an
   unmapped value.

This has been verified to build cleanly and resolves the reported Bugzilla issues
221569 and 220008.

[1] https://lore.kernel.org/platform-driver-x86/a3b137df-1b21-4460-b003-58c5ca2d59d4@ukf.sk/

Marco Scardovi (1):
  platform/x86: hp-wmi: fix platform profile issues on generic HP laptops

 drivers/platform/x86/hp/hp-wmi.c | 53 +++++++++++++++++++++++++++++---
 1 file changed, 48 insertions(+), 5 deletions(-)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-06-23 16:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-19 22:09 [PATCH 0/1] platform/x86: hp-wmi: fix platform profile issues on generic HP laptops Marco Scardovi
2026-06-19 22:09 ` [PATCH 1/1] " Marco Scardovi
2026-06-20  9:36   ` Milan Oravec
2026-06-23 15:52   ` Krishna Chomal
2026-06-23 16:45     ` [PATCH v2 0/1] " Marco Scardovi
2026-06-23 16:45       ` [PATCH v2 1/1] " Marco Scardovi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.