Skip to content

Commit 896868e

Browse files
author
Steven Price
committed
drm/panthor: Record devfreq busy as soon as a job is started
If a queue is already assigned to the hardware, then a newly submitted job can start straight away without waiting for the tick. However in this case the devfreq infrastructure isn't notified that the GPU is busy. By the time the tick happens the job might well have finished and no time will be accounted for the GPU being busy. Fix this by recording the GPU as busy directly in queue_run_job() in the case where there is a CSG assigned and therefore we just ring the doorbell. Fixes: de85488 ("drm/panthor: Add the scheduler logical block") Signed-off-by: Steven Price <[email protected]> Reviewed-by: Boris Brezillon <[email protected]> Reviewed-by: Liviu Dudau <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 6855052 commit 896868e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/panthor/panthor_sched.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2926,6 +2926,7 @@ queue_run_job(struct drm_sched_job *sched_job)
29262926
pm_runtime_get(ptdev->base.dev);
29272927
sched->pm.has_ref = true;
29282928
}
2929+
panthor_devfreq_record_busy(sched->ptdev);
29292930
}
29302931

29312932
done_fence = dma_fence_get(job->done_fence);

0 commit comments

Comments
 (0)