Skip to content

Commit

Permalink
amdgpu/uvd: get ring reference from rq scheduler
Browse files Browse the repository at this point in the history
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 <David.Wu3@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
David (Ming Qiang) Wu authored and Alex Deucher committed Dec 5, 2024
1 parent 12f325b commit 47f402a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ static int uvd_v7_0_ring_patch_cs_in_place(struct amdgpu_cs_parser *p,
struct amdgpu_job *job,
struct amdgpu_ib *ib)
{
struct amdgpu_ring *ring = to_amdgpu_ring(job->base.sched);
struct amdgpu_ring *ring = amdgpu_job_ring(job);
unsigned i;

/* No patching necessary for the first instance */
Expand Down

0 comments on commit 47f402a

Please sign in to comment.