drm/amdgpu/pm: handle fan properly when card is powered down
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Jan 2018 21:41:50 +0000 (16:41 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:18:49 +0000 (14:18 -0500)
commit5ec36e2d7030c17bd00c9766f9b97b421eae8cdf
tree1ab279ad59d5be75668d6465d7bd83876ae00974
parent6f05c4e9d1a1a743eca76ddbad788386d7bb534e
drm/amdgpu/pm: handle fan properly when card is powered down

Return an error if the user tried to check or set the fan
parameters while the card is powered down (e.g., on a PX/HG
system for example).  This makes the fan consistent with the
temperature stuff.

Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c