drm/amd/powerplay/vega20: enable fan RPM and pwm settings V2
authorEvan Quan <evan.quan@amd.com>
Tue, 18 Sep 2018 10:04:44 +0000 (18:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Oct 2018 21:45:58 +0000 (16:45 -0500)
commit031db09017da532d4dc7bbba8c734cfc80f49f34
tree5f08fd546f0338b355782bb61f872d59f8421956
parent42fae99520090423ad639af889d7376774df7fdf
drm/amd/powerplay/vega20: enable fan RPM and pwm settings V2

Manual fan RPM and pwm setting on vega20 are
available now.

V2: correct the register for fan speed setting and
    avoid divide-by-zero

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/include/asic_reg/thm/thm_11_0_2_offset.h
drivers/gpu/drm/amd/include/asic_reg/thm/thm_11_0_2_sh_mask.h
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_thermal.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_thermal.h