drm/amdgpu: move explicit sync check into the CS
authorChristian König <christian.koenig@amd.com>
Thu, 29 Sep 2022 11:05:56 +0000 (13:05 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 3 Nov 2022 11:45:20 +0000 (12:45 +0100)
commit1b2d5eda5ad785d0dd13484141b78d2ac366c169
tree4c3f4885e4af7ef8c81f4593d4483676d0b81adc
parentf7d66fb2ea43a3016e78a700a2ca6c77a74579f9
drm/amdgpu: move explicit sync check into the CS

This moves the memory allocation out of the critical code path.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221014084641.128280-8-christian.koenig@amd.com
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
drivers/gpu/drm/amd/amdgpu/amdgpu_job.h