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)
commit286e937efbc7177c114e80aae9b402131e3886c1
tree0c59ee5acbc6d3120bcd38f5c5640c97ba448e83
parent4b4967cbd2685f313411e6facf915fb2ae01d796
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