drm/amdgpu: use dma_resv_for_each_fence for CS workaround v2
authorChristian König <christian.koenig@amd.com>
Wed, 3 Nov 2021 12:22:42 +0000 (13:22 +0100)
committerChristian König <christian.koenig@amd.com>
Sun, 3 Apr 2022 16:50:49 +0000 (18:50 +0200)
commit644704740b8282c9ee9483a38666ee4a4561c37c
treee52a528e97e849db42f01345bdcdcb67bd50b1b5
parent9b53fddf3f1e908aab422cd990b5fbb44d2fe33c
drm/amdgpu: use dma_resv_for_each_fence for CS workaround v2

Get the write fence using dma_resv_for_each_fence instead of accessing
it manually.

v2: add TODO comment

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: amd-gfx@lists.freedesktop.org
Link: https://patchwork.freedesktop.org/patch/msgid/20220321135856.1331-9-christian.koenig@amd.com
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c