All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/ttm: ensure ttm_mem_io_free is called on bo destruction
@ 2010-11-04  0:03 Ben Skeggs
  2010-11-04  0:03 ` [PATCH 2/2] drm/ttm: track kmap io_reserve(), only unreserve on unmap where needed Ben Skeggs
  2010-11-04 11:24 ` [PATCH 1/2] drm/ttm: ensure ttm_mem_io_free is called on bo destruction Thomas Hellstrom
  0 siblings, 2 replies; 8+ messages in thread
From: Ben Skeggs @ 2010-11-04  0:03 UTC (permalink / raw)
  To: dri-devel; +Cc: Ben Skeggs

From: Ben Skeggs <bskeggs@redhat.com>

Nouveau will start to use ttm_mem_io_reserve to allocate BAR VM space
for VRAM mappings, and without this call GPU address space gets leaked.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
---
 drivers/gpu/drm/ttm/ttm_bo.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index dfa163b..c373cf9 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -472,6 +472,7 @@ static void ttm_bo_cleanup_memtype_use(struct ttm_buffer_object *bo)
 	wake_up_all(&bo->event_queue);
 	spin_unlock(&glob->lru_lock);
 
+	ttm_mem_io_free(bo->bdev, &tmp_mem);
 	ttm_bo_mem_put(bo, &tmp_mem);
 }
 
-- 
1.7.3.1

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

end of thread, other threads:[~2010-11-09 14:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-04  0:03 [PATCH 1/2] drm/ttm: ensure ttm_mem_io_free is called on bo destruction Ben Skeggs
2010-11-04  0:03 ` [PATCH 2/2] drm/ttm: track kmap io_reserve(), only unreserve on unmap where needed Ben Skeggs
2010-11-04 13:08   ` Thomas Hellstrom
2010-11-04 18:34     ` Thomas Hellstrom
2010-11-09  3:03       ` Ben Skeggs
2010-11-09  7:18         ` Thomas Hellstrom
2010-11-09 14:33           ` Jerome Glisse
2010-11-04 11:24 ` [PATCH 1/2] drm/ttm: ensure ttm_mem_io_free is called on bo destruction Thomas Hellstrom

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.