mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-07 18:05:21 +02:00
drm/msm: Reduce fallout of fence signaling vs reclaim hangs
[ Upstream commit 4bea53b9c7
]
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/
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
edb39f621b
commit
9064a70eee
|
@ -76,7 +76,7 @@ static bool
|
||||||
wait_for_idle(struct drm_gem_object *obj)
|
wait_for_idle(struct drm_gem_object *obj)
|
||||||
{
|
{
|
||||||
enum dma_resv_usage usage = dma_resv_usage_rw(true);
|
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
|
static bool
|
||||||
|
|
Loading…
Reference in New Issue
Block a user