Skip to content

Commit 47f402a

Browse files
davidwuAMDalexdeucher
authored andcommitted
amdgpu/uvd: get ring reference from rq scheduler
base.sched may not be set for each instance and should not be used for cases such as non-IB tests. Fixes: 2320c9e ("drm/sched: memset() 'job' in drm_sched_job_init()") Signed-off-by: David (Ming Qiang) Wu <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 12f325b commit 47f402a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ static int uvd_v7_0_ring_patch_cs_in_place(struct amdgpu_cs_parser *p,
12881288
struct amdgpu_job *job,
12891289
struct amdgpu_ib *ib)
12901290
{
1291-
struct amdgpu_ring *ring = to_amdgpu_ring(job->base.sched);
1291+
struct amdgpu_ring *ring = amdgpu_job_ring(job);
12921292
unsigned i;
12931293

12941294
/* No patching necessary for the first instance */

0 commit comments

Comments
 (0)