Skip to content

Commit

Permalink
drm/amdgpu: Use DRM scheduler API in amdgpu_xcp_release_sched
Browse files Browse the repository at this point in the history
Lets use the existing helper instead of peeking into the structure
directly.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Danilo Krummrich <dakr@redhat.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Philipp Stanner <pstanner@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Tvrtko Ursulin authored and Alex Deucher committed Jan 14, 2025
1 parent 2affe2b commit e996127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ void amdgpu_xcp_release_sched(struct amdgpu_device *adev,
return;

sched = entity->entity.rq->sched;
if (sched->ready) {
if (drm_sched_wqueue_ready(sched)) {
ring = to_amdgpu_ring(entity->entity.rq->sched);
atomic_dec(&adev->xcp_mgr->xcp[ring->xcp_id].ref_cnt);
}
Expand Down

0 comments on commit e996127

Please sign in to comment.