From e7b6fc5a8bc0ea0739e61de59eef4fc31a078a77 Mon Sep 17 00:00:00 2001 From: Jerome Glisse Date: Thu, 10 Dec 2009 14:37:26 +0100 Subject: [PATCH] drm/ttm: Print debug information if ttm_buffer_object_init fail Print debug information on placement when failing to allocate memory. Signed-off-by: Jerome Glisse --- drivers/gpu/drm/ttm/ttm_bo.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index a835b6f..3d0caf1 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -1155,8 +1155,10 @@ int ttm_buffer_object_init(struct ttm_bo_device *bdev, placement.busy_placement = placements; placement.num_busy_placement = c; ret = ttm_buffer_object_validate(bo, &placement, interruptible, false); - if (ret) + if (ret) { + ttm_bo_mem_space_debug(bo, &placement); goto out_err; + } ttm_bo_unreserve(bo); return 0; -- 1.6.5.2