diff options
| author | Tvrtko Ursulin <[email protected]> | 2025-01-08 18:35:11 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-01-14 16:06:50 +0000 |
| commit | e996127ec1aabecc33e405de42e7e1cbfae39315 (patch) | |
| tree | 9202eef19bce02124afdf2686268ddab7450636a /drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c | |
| parent | drm/amdgpu: disable gfxoff with the compute workload on gfx12 (diff) | |
| download | kernel-e996127ec1aabecc33e405de42e7e1cbfae39315.tar.gz kernel-e996127ec1aabecc33e405de42e7e1cbfae39315.zip | |
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 <[email protected]>
Signed-off-by: Tvrtko Ursulin <[email protected]>
Cc: Christian König <[email protected]>
Cc: Danilo Krummrich <[email protected]>
Cc: Matthew Brost <[email protected]>
Cc: Philipp Stanner <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c index e209b5e101df..23b6f7a4aa4a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c @@ -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); } |
