]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit032de85981e519d0aa27c583858685e8568b8b6e
treeec3b73a526490f356fff72407542f1e18bde1271
parent765c258abf970eb7be6cbd4344d98b07e612603b
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