Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: Use DRM scheduler API in amdgpu_xcp_release_sched

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>

authored by

Tvrtko Ursulin and committed by
Alex Deucher
e996127e 2affe2bb

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c
··· 427 427 return; 428 428 429 429 sched = entity->entity.rq->sched; 430 - if (sched->ready) { 430 + if (drm_sched_wqueue_ready(sched)) { 431 431 ring = to_amdgpu_ring(entity->entity.rq->sched); 432 432 atomic_dec(&adev->xcp_mgr->xcp[ring->xcp_id].ref_cnt); 433 433 }