summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>2024-09-24 11:51:45 +0200
committerAlex Deucher <alexander.deucher@amd.com>2024-10-08 15:43:43 +0200
commit89cfa73b612a711ad19c6323814f4d28535a0fca (patch)
tree157743462fdbaf64e90cedaef994a71d13b43419 /drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
parentdrm/amdgpu: Drop impossible condition from amdgpu_job_prepare_job (diff)
downloadlinux-89cfa73b612a711ad19c6323814f4d28535a0fca.tar.xz
linux-89cfa73b612a711ad19c6323814f4d28535a0fca.zip
drm/amdgpu: Remove the while loop from amdgpu_job_prepare_job
While loop makes it sound like amdgpu_vmid_grab() potentially needs to be called multiple times to produce a fence, while in reality all code paths either return an error, assign a valid job->vmid or assign a vmid which will be valid once the returned fence signals. Therefore we can remove the loop to make it clear the call does not need to be repeated. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com> Cc: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c')
0 files changed, 0 insertions, 0 deletions