platform/x86: asus-wmi: expose dGPU and CPU tunables for ROG
authorLuke D. Jones <luke@ljones.dev>
Fri, 30 Jun 2023 05:35:52 +0000 (17:35 +1200)
committerHans de Goede <hdegoede@redhat.com>
Wed, 12 Jul 2023 15:17:44 +0000 (17:17 +0200)
commite0b278e7b5da62c3ebb156a8b7d76a739da2d953
tree02df7317e2d8577042d9a329d8e7699af6affd1b
parentabac4259fc0a2b691af6c3916e420f374f7fd900
platform/x86: asus-wmi: expose dGPU and CPU tunables for ROG

Expose various CPU and dGPU tunables that are available on many ASUS
ROG laptops. The tunables shown in sysfs will vary depending on the CPU
and dGPU vendor.

All of these variables are write only and there is no easy way to find
what the defaults are. In general they seem to default to the max value
the vendor sets for the CPU and dGPU package - this is not the same as
the min/max writable value. Values written to these variables that are
beyond the capabilities of the CPU are ignored by the laptop.

Signed-off-by: Luke D. Jones <luke@ljones.dev>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230630053552.976579-9-luke@ljones.dev
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Documentation/ABI/testing/sysfs-platform-asus-wmi
drivers/platform/x86/asus-wmi.c
include/linux/platform_data/x86/asus-wmi.h