]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm/amdgpu: Add fan RPM setting via sysfs
authorRex Zhu <Rex.Zhu@amd.com>
Thu, 20 Sep 2018 06:30:55 +0000 (14:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Oct 2018 22:04:59 +0000 (17:04 -0500)
commitc2870527f700e919fbb543baef36032be5d626e0
treef996053555b057b64705719f88cb5c12c66333dd
parentd5f480372ca485806443afca50ef024623f8eb03
drm/amdgpu: Add fan RPM setting via sysfs

Add fan1_target for get/set fan speed in RPM unit
Add fan1_min/fan1_max for get min, max fan speed in RPM unit
Add fan1_enable to enable/disable the fan1 sensor

v3: drop the hardcode value of min/max rpm in comments pointed
    out by Alex.
v2: query the min/max rpm gpu support instand of hardcode value.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/include/kgd_pp_interface.h
drivers/gpu/drm/amd/powerplay/amd_powerplay.c