drm/amd/amdgpu: post card if there is real hw resetting performed
authorJim Qu <Jim.Qu@amd.com>
Fri, 10 Feb 2017 07:59:59 +0000 (15:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Feb 2017 21:12:58 +0000 (16:12 -0500)
commitc836fec5ce8eb0d0c08fa0ea5fb71df3290d1601
tree9c2a020087a83f67d2d41c456343f0361d776f68
parent9ca70356a9260403c1bda40d942935e55d00c11c
drm/amd/amdgpu: post card if there is real hw resetting performed

Check whether we need to post rather than whether the asic is
posted.  There are some cases (e.g., GPU reset or resume from
hibernate) where we need to force post even if the asic has
been posted.

Signed-off-by: Jim Qu <Jim.Qu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/cik.c
drivers/gpu/drm/amd/amdgpu/vi.c