]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: add gang submit backend v2
authorChristian König <christian.koenig@amd.com>
Wed, 2 Mar 2022 15:26:53 +0000 (16:26 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Sep 2022 16:40:32 +0000 (12:40 -0400)
commit1119b2a6fe1e934b85c35426a0037b9db1926acf
tree2405418f61d1a63f04f8502d8c85df90e3b32b03
parentfba45844e28e70889950b60ea0ee4b04d2451210
drm/amdgpu: add gang submit backend v2

Allows submitting jobs as gang which needs to run on multiple
engines at the same time.

Basic idea is that we have a global gang submit fence representing when the
gang leader is finally pushed to run on the hardware last.

Jobs submitted as gang are never re-submitted in case of a GPU reset since this
won't work and will just deadlock the hardware immediately again.

v2: fix logic inversion, improve documentation, fix rcu

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
drivers/gpu/drm/amd/amdgpu/amdgpu_job.h