]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: hp-wmi: support omen thermal profile policy v1
authorEnver Balalic <balalic.enver@gmail.com>
Mon, 14 Mar 2022 12:14:53 +0000 (13:14 +0100)
committerHans de Goede <hdegoede@redhat.com>
Tue, 15 Mar 2022 09:49:37 +0000 (10:49 +0100)
commit68c2157b48bfc19eafa85adebb8b9de8d85728d3
tree0c59ee5acbc6d3120bcd38f5c5640c97ba448e83
parent72c2f6a1c1b3814a53ea1e956501bc849e45e0c7
platform/x86: hp-wmi: support omen thermal profile policy v1

As it turns out, these laptops have 2 thermal profile versions.
A previous patch added support for v0, this patch adds support
for v1 thermal policies that are in use on some devices.
We obtain the thermal policy version by querying the get system
design data WMI call and looking at the fourth byte it returns,
except if the system board DMI Board ID is in a specific array
that the windows command center app overrides to thermal policy
v0 for some reason.

Signed-off-by: Enver Balalic <balalic.enver@gmail.com>
Link: https://lore.kernel.org/r/20220314121453.kjszdciymtg6ctbq@omen
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/hp-wmi.c