Patch "drm/panthor: Record devfreq busy as soon as a job is started" has been added to the 6.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/panthor: Record devfreq busy as soon as a job is started

to the 6.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-panthor-record-devfreq-busy-as-soon-as-a-job-is-.patch
and it can be found in the queue-6.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit ccc934e9be4881f00c5e194d188f1e2990632f8b
Author: Steven Price <steven.price@xxxxxxx>
Date:   Wed Jul 3 16:56:46 2024 +0100

    drm/panthor: Record devfreq busy as soon as a job is started
    
    [ Upstream commit 896868eded124059023be0af92d68cdaf9b4de70 ]
    
    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: de8548813824 ("drm/panthor: Add the scheduler logical block")
    Signed-off-by: Steven Price <steven.price@xxxxxxx>
    Reviewed-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx>
    Reviewed-by: Liviu Dudau <liviu.dudau@xxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20240703155646.80928-1-steven.price@xxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/panthor/panthor_sched.c b/drivers/gpu/drm/panthor/panthor_sched.c
index 9a0ff48f7061d..463bcd3cf00f3 100644
--- a/drivers/gpu/drm/panthor/panthor_sched.c
+++ b/drivers/gpu/drm/panthor/panthor_sched.c
@@ -2939,6 +2939,7 @@ queue_run_job(struct drm_sched_job *sched_job)
 			pm_runtime_get(ptdev->base.dev);
 			sched->pm.has_ref = true;
 		}
+		panthor_devfreq_record_busy(sched->ptdev);
 	}
 
 	/* Update the last fence. */




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux