aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2022-03-01 14:13:15 +0000
committerAlex Deucher <[email protected]>2022-03-04 18:03:30 +0000
commit48e9fbd1a28480caf2ac5ec6fcb79ac221735c5d (patch)
tree5163b4058319929ea5d68ef0b6254f31106d6a9d /drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
parentdrm/amdgpu: properly embed the IBs into the job (diff)
downloadkernel-48e9fbd1a28480caf2ac5ec6fcb79ac221735c5d.tar.gz
kernel-48e9fbd1a28480caf2ac5ec6fcb79ac221735c5d.zip
drm/amdgpu: initialize the vmid_wait with the stub fence
This way we don't need to check for NULL any more. Signed-off-by: Christian König <[email protected]> Reviewed-by: Andrey Grodzovsky <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
index be48487e2ca7..92a70fb57fa3 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
@@ -204,7 +204,7 @@ static int amdgpu_vmid_grab_idle(struct amdgpu_vm *vm,
unsigned i;
int r;
- if (ring->vmid_wait && !dma_fence_is_signaled(ring->vmid_wait))
+ if (!dma_fence_is_signaled(ring->vmid_wait))
return amdgpu_sync_fence(sync, ring->vmid_wait);
fences = kmalloc_array(id_mgr->num_ids, sizeof(void *), GFP_KERNEL);