drm/amd/powerplay: use hardware fan control if no powerplay fan table
authorEvan Quan <evan.quan@amd.com>
Thu, 27 Jun 2019 03:01:04 +0000 (11:01 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 1 Jul 2019 14:14:05 +0000 (09:14 -0500)
commitf78c581e22d4b33359ac3462e8d0504735df01f4
tree8209d75bb22154f68b22fe6b5a05b916f7c520bd
parent665d6d4e32313a7952bb3339647f74c3a6b0d78a
drm/amd/powerplay: use hardware fan control if no powerplay fan table

Otherwise, you may get divided-by-zero error or corrput the SMU fan
control feature.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Tested-by: Slava Abramov <slava.abramov@amd.com>
Acked-by: Slava Abramov <slava.abramov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/powerplay/hwmgr/process_pptables_v1_0.c
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c