Patch "drm/msm: Switch ordering of runpm put vs devfreq_idle" has been added to the 5.15-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/msm: Switch ordering of runpm put vs devfreq_idle

to the 5.15-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-msm-switch-ordering-of-runpm-put-vs-devfreq_idle.patch
and it can be found in the queue-5.15 subdirectory.

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



commit 36c7f8a8ff5121d9ff0ec8473fd479ab51c3698a
Author: Rob Clark <robdclark@xxxxxxxxxxxx>
Date:   Wed Jun 8 09:13:34 2022 -0700

    drm/msm: Switch ordering of runpm put vs devfreq_idle
    
    [ Upstream commit 49e477610087a02c3604061b8f3ee3a25a493987 ]
    
    In msm_devfreq_suspend() we cancel idle_work synchronously so that it
    doesn't run after we power of the hw or in the resume path.  But this
    means that we want to ensure that idle_work is not scheduled *after* we
    no longer hold a runpm ref.  So switch the ordering of pm_runtime_put()
    vs msm_devfreq_idle().
    
    v2. Only move the runpm _put_autosuspend, and not the _mark_last_busy()
    
    Fixes: 9bc95570175a ("drm/msm: Devfreq tuning")
    Signed-off-by: Rob Clark <robdclark@xxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20210927152928.831245-1-robdclark@xxxxxxxxx
    Reviewed-by: Akhil P Oommen <quic_akhilpo@xxxxxxxxxxx>
    Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20220608161334.2140611-1-robdclark@xxxxxxxxx
    Signed-off-by: Rob Clark <robdclark@xxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c
index 2c46cd968ac4..b01d0a521c90 100644
--- a/drivers/gpu/drm/msm/msm_gpu.c
+++ b/drivers/gpu/drm/msm/msm_gpu.c
@@ -658,7 +658,6 @@ static void retire_submit(struct msm_gpu *gpu, struct msm_ringbuffer *ring,
 	msm_submit_retire(submit);
 
 	pm_runtime_mark_last_busy(&gpu->pdev->dev);
-	pm_runtime_put_autosuspend(&gpu->pdev->dev);
 
 	spin_lock_irqsave(&ring->submit_lock, flags);
 	list_del(&submit->node);
@@ -672,6 +671,8 @@ static void retire_submit(struct msm_gpu *gpu, struct msm_ringbuffer *ring,
 		msm_devfreq_idle(gpu);
 	mutex_unlock(&gpu->active_lock);
 
+	pm_runtime_put_autosuspend(&gpu->pdev->dev);
+
 	msm_gem_submit_put(submit);
 }
 



[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