dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/ttm: fix shared slot reservation during BO creation
@ 2018-12-05  8:38 Christian König
  2018-12-05 11:06 ` StDenis, Tom
  2018-12-05 14:58 ` Michel Dänzer
  0 siblings, 2 replies; 4+ messages in thread
From: Christian König @ 2018-12-05  8:38 UTC (permalink / raw)
  To: dri-devel, Tom.StDenis

Make sure we reserve at least one slot for pipelined BO moves
during BO creation.

Fixes: 5786b66c9e3b drm/ttm: drop the extra reservation for pipelined BO
moves

Signed-off-by: Christian König <christian.koenig@amd.com>
---
 drivers/gpu/drm/ttm/ttm_bo.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index 7db66e4088e2..ffd68b039d23 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -1264,6 +1264,9 @@ int ttm_bo_init_reserved(struct ttm_bo_device *bdev,
 		WARN_ON(!locked);
 	}
 
+	if (likely(!ret))
+		ret = reservation_object_reserve_shared(bo->resv, 1);
+
 	if (likely(!ret))
 		ret = ttm_bo_validate(bo, placement, ctx);
 
-- 
2.14.1

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

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

end of thread, other threads:[~2018-12-05 15:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-05  8:38 [PATCH] drm/ttm: fix shared slot reservation during BO creation Christian König
2018-12-05 11:06 ` StDenis, Tom
2018-12-05 14:58 ` Michel Dänzer
2018-12-05 15:04   ` Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox