Patch "drm/msm: Reduce fallout of fence signaling vs reclaim hangs" has been added to the 6.6-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: Reduce fallout of fence signaling vs reclaim hangs

to the 6.6-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-reduce-fallout-of-fence-signaling-vs-reclaim.patch
and it can be found in the queue-6.6 subdirectory.

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



commit a73631cf5e20c91c3c855b7ec02be6255b2af987
Author: Rob Clark <robdclark@xxxxxxxxxxxx>
Date:   Fri Nov 17 07:14:19 2023 -0800

    drm/msm: Reduce fallout of fence signaling vs reclaim hangs
    
    [ Upstream commit 4bea53b9c7c72fd12a0ceebe88a71723c0a514b8 ]
    
    Until various PM devfreq/QoS and interconnect patches land, we could
    potentially trigger reclaim from gpu scheduler thread, and under enough
    memory pressure that could trigger a sort of deadlock.  Eventually the
    wait will timeout and we'll move on to consider other GEM objects.  But
    given that there is still a potential for deadlock/stalling, we should
    reduce the timeout to contain the damage.
    
    Signed-off-by: Rob Clark <robdclark@xxxxxxxxxxxx>
    Patchwork: https://patchwork.freedesktop.org/patch/568031/
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/msm/msm_gem_shrinker.c b/drivers/gpu/drm/msm/msm_gem_shrinker.c
index f38296ad87434..0641f5bb8649a 100644
--- a/drivers/gpu/drm/msm/msm_gem_shrinker.c
+++ b/drivers/gpu/drm/msm/msm_gem_shrinker.c
@@ -76,7 +76,7 @@ static bool
 wait_for_idle(struct drm_gem_object *obj)
 {
 	enum dma_resv_usage usage = dma_resv_usage_rw(true);
-	return dma_resv_wait_timeout(obj->resv, usage, false, 1000) > 0;
+	return dma_resv_wait_timeout(obj->resv, usage, false, 10) > 0;
 }
 
 static bool




[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