]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pp: Skip fan attributes if fan not present
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 27 Apr 2018 05:46:08 +0000 (13:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:44:18 +0000 (13:44 -0500)
commit63db61bcdafbb7016f8ce0858e16f3787ba46939
tree9d5b300afbb3ab4d2470fe9b6f4adfbd6fca083f
parent913ac5b0420020a4db7d9008f456b5de2b4a98c6
drm/amd/pp: Skip fan attributes if fan not present

With powerplay enabled, also need to skip fan attributes
if no fan present.

Reviewed-by: Huang Rui <ray.huang@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_pm.c
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c