aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.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_ring.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_ring.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
index 35bcb6dc1816..7f33ae87cb41 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
@@ -193,6 +193,7 @@ int amdgpu_ring_init(struct amdgpu_device *adev, struct amdgpu_ring *ring,
adev->rings[ring->idx] = ring;
ring->num_hw_submission = sched_hw_submission;
ring->sched_score = sched_score;
+ ring->vmid_wait = dma_fence_get_stub();
r = amdgpu_fence_driver_init_ring(ring);
if (r)
return r;