Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/msm: Reduce fallout of fence signaling vs reclaim hangs

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@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/568031/

+1 -1
+1 -1
drivers/gpu/drm/msm/msm_gem_shrinker.c
··· 75 75 wait_for_idle(struct drm_gem_object *obj) 76 76 { 77 77 enum dma_resv_usage usage = dma_resv_usage_rw(true); 78 - return dma_resv_wait_timeout(obj->resv, usage, false, 1000) > 0; 78 + return dma_resv_wait_timeout(obj->resv, usage, false, 10) > 0; 79 79 } 80 80 81 81 static bool