Re: [PATCH] drm/ttm: fix the tt_populated check in ttm_tt_destroy()

2013-09-17 Thread Thomas Hellstrom
On 09/17/2013 06:21 AM, Ben Skeggs wrote: From: Ben Skeggs After a vmalloc failure in ttm_dma_tt_alloc_page_directory(), ttm_dma_tt_init() will call ttm_tt_destroy() to cleanup, and end up inside the driver's unpopulate() hook when populate() has never yet been called. On nouveau, the first is

[PATCH] drm/ttm: fix the tt_populated check in ttm_tt_destroy()

2013-09-17 Thread Ben Skeggs
From: Ben Skeggs After a vmalloc failure in ttm_dma_tt_alloc_page_directory(), ttm_dma_tt_init() will call ttm_tt_destroy() to cleanup, and end up inside the driver's unpopulate() hook when populate() has never yet been called. On nouveau, the first issue to be hit because of this is that dma_ad