]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
thermal: int340x: processor_thermal: Add mailbox driver
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Thu, 26 Nov 2020 17:18:29 +0000 (09:18 -0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 10 Dec 2020 11:29:50 +0000 (12:29 +0100)
commit729a866af3b3f63ccdb91b3af61f3e07b668b757
tree66db63cb1bfaee261b49a602a20e6775b2dab00d
parent473be51142adba7ce769da728a37c8e80a343e27
thermal: int340x: processor_thermal: Add mailbox driver

Added processor thermal device mail box interface for workload hints
setting. These hints will give indication to hardware to better manage
power and thermals. The supported hints are:
idle
semi_active
burusty
sustained
battery_life

For example when the system is on battery, the hardware can be less
aggressive in power ramp up.

This will create an attribute group at
/sys/bus/pci/devices/0000:00:04.0/workload_request

This folder contains two attributes:
workload_available_types : (RO):  This shows available workload types
workload_type: (RW) : Allows to set and get current workload type
setting

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201126171829.945969-4-srinivas.pandruvada@linux.intel.com
drivers/thermal/intel/int340x_thermal/Makefile
drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
drivers/thermal/intel/int340x_thermal/processor_thermal_device.h
drivers/thermal/intel/int340x_thermal/processor_thermal_mbox.c [new file with mode: 0644]