Skip to content

Commit 96a2f0f

Browse files
Lang Yualexdeucher
authored andcommitted
drm/amdgpu: fix a wrong ib reference
It should be p->job->ibs[j] instead of p->job->ibs[i] here. Fixes: cdc7893 ("drm/amdgpu: use job and ib structures directly in CS parsers") Signed-off-by: Lang Yu <Lang.Yu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent d55957f commit 96a2f0f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -783,15 +783,12 @@ static int amdgpu_cs_vm_handling(struct amdgpu_cs_parser *p)
783783
memcpy(ib->ptr, kptr, chunk_ib->ib_bytes);
784784
amdgpu_bo_kunmap(aobj);
785785

786-
r = amdgpu_ring_parse_cs(ring, p, p->job,
787-
&p->job->ibs[i]);
786+
r = amdgpu_ring_parse_cs(ring, p, p->job, ib);
788787
if (r)
789788
return r;
790789
} else {
791790
ib->ptr = (uint32_t *)kptr;
792-
r = amdgpu_ring_patch_cs_in_place(ring, p,
793-
p->job,
794-
&p->job->ibs[i]);
791+
r = amdgpu_ring_patch_cs_in_place(ring, p, p->job, ib);
795792
amdgpu_bo_kunmap(aobj);
796793
if (r)
797794
return r;

0 commit comments

Comments
 (0)