OSDN Git Service

platform/x86: hp-wmi: add support for thermal policy
authorElia Devito <eliadevito@gmail.com>
Sun, 4 Oct 2020 21:13:05 +0000 (23:13 +0200)
committerHans de Goede <hdegoede@redhat.com>
Wed, 7 Oct 2020 14:03:23 +0000 (16:03 +0200)
commit81c93798ef3ebd2109dc24371db3cc14cdf77777
tree066cd4cde01b39a70f07c321591d6409353122d5
parent1797d588af15174d4a4e7159dac8c800538e4f8c
platform/x86: hp-wmi: add support for thermal policy

HP Spectre notebooks (and probably other model as well)
support up to 4 thermal policy:
 - HP Recommended
 - Performance
 - Cool
 - Quiet

at least on HP Spectre x360 Convertible 15-df0xxx the firmware sets the
thermal policy to default but hardcode the odvp0 variable to 1, this causes
thermald to choose the wrong DPTF profile witch result in low performance
when notebook is on AC, calling thermal policy write command allow firmware
to correctly set the odvp0 variable.

Signed-off-by: Elia Devito <eliadevito@gmail.com>
Link: https://lore.kernel.org/r/20201004211305.11628-1-eliadevito@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/hp-wmi.c