drm/amdgpu: use separate status for buffer funcs availability v2
authorChristian König <christian.koenig@amd.com>
Thu, 1 Mar 2018 10:09:15 +0000 (11:09 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Mar 2018 20:37:24 +0000 (15:37 -0500)
commit81988f9c3d9907d7df0ea97e8e4842064b88b7b8
treeec3b73a526490f356fff72407542f1e18bde1271
parent380383f23594790be97639ea220e8d3e86afff85
drm/amdgpu: use separate status for buffer funcs availability v2

The ring status can change during GPU reset, but we still need to be
able to schedule TTM buffer moves in the meantime.

Otherwise we can ran into problems because of aborted move/fill
operations during GPU resets.

v2: still check if ring is available during direct submit.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Chunming zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h