dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/ttm: Schedule out if possibe in bo delayed delete worker
@ 2020-04-09  1:31 xinhui pan
  2020-04-09 12:35 ` Christian König
  0 siblings, 1 reply; 10+ messages in thread
From: xinhui pan @ 2020-04-09  1:31 UTC (permalink / raw)
  To: amd-gfx; +Cc: xinhui pan, christian.koenig, dri-devel

The delayed delete list is per device which might be very huge. And in
a heavy workload test, the list might always not be empty. That will
trigger any RCU stall warnings or softlockups in non-preemptible kernels
Lets do schedule out if possible in that case.

Signed-off-by: xinhui pan <xinhui.pan@amd.com>
---
 drivers/gpu/drm/ttm/ttm_bo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index 9e07c3f75156..b8d853cab33b 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -541,6 +541,7 @@ static bool ttm_bo_delayed_delete(struct ttm_bo_device *bdev, bool remove_all)
 		}
 
 		ttm_bo_put(bo);
+		cond_resched();
 		spin_lock(&glob->lru_lock);
 	}
 	list_splice_tail(&removed, &bdev->ddestroy);
-- 
2.17.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-04-10  1:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-09  1:31 [PATCH] drm/ttm: Schedule out if possibe in bo delayed delete worker xinhui pan
2020-04-09 12:35 ` Christian König
2020-04-09 13:25   ` Lucas Stach
2020-04-09 13:38     ` Christian König
2020-04-09 14:07       ` Pan, Xinhui
2020-04-09 14:11         ` Pan, Xinhui
2020-04-09 14:24           ` Pan, Xinhui
2020-04-09 14:59             ` Christian König
2020-04-10  1:21               ` Pan, Xinhui
2020-04-10  1:23               ` Chunming Zhou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).