]> 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)
commitbc65d1f5b855492065748085ac51a290b6a3b1ca
treeec3b73a526490f356fff72407542f1e18bde1271
parent07d44ef88a6e2c3b5814064d4c86f2d2725e738a
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