drm/amdgpu: use DMA_RESV_USAGE_KERNEL
authorChristian König <christian.koenig@amd.com>
Mon, 4 Apr 2022 10:57:30 +0000 (12:57 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 7 Apr 2022 10:53:54 +0000 (12:53 +0200)
commitc35fcfa344c7544c899610dd5e512f7d630a152c
tree236d206ae99ca430f31cc59051be3bcebf27447b
parentb29895e18304feb7e8afc6388db7ece60327b23c
drm/amdgpu: use DMA_RESV_USAGE_KERNEL

Wait only for kernel fences before kmap or UVD direct submission.

This also makes sure that we always wait in amdgpu_bo_kmap() even when
returning a cached pointer.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220407085946.744568-6-christian.koenig@amd.com
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c