drm/amdgpu: handle gang submit before VMID
authorChristian König <christian.koenig@amd.com>
Fri, 18 Nov 2022 12:32:30 +0000 (13:32 +0100)
committerChristian König <christian.koenig@amd.com>
Fri, 18 Nov 2022 16:52:15 +0000 (17:52 +0100)
commitb09d6acba1d9a23963fedf96b4191502a4fec25d
tree9dbe220198ba3016afd7470b0f05f1470d4a6783
parent5954acbacbd1946b96ce8ee799d309cb0cd3cb9d
drm/amdgpu: handle gang submit before VMID

Otherwise it can happen that not all gang members can get a VMID
assigned and we deadlock.

Signed-off-by: Christian König <christian.koenig@amd.com>
Tested-by: Timur Kristóf <timur.kristof@gmail.com>
Acked-by: Timur Kristóf <timur.kristof@gmail.com>
Fixes: 68ce8b242242 ("drm/amdgpu: add gang submit backend v2")
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221118153023.312582-1-christian.koenig@amd.com
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c