[PATCH 2/4] drm/ttm: replace drm_mm_pre_get() by direct alloc

2013-07-25 Thread Daniel Vetter
On Thu, Jul 25, 2013 at 03:56:00PM +0200, David Herrmann wrote: > Instead of calling drm_mm_pre_get() in a row, we now preallocate the node > and then use the atomic insertion functions. This has the exact same > semantics and there is no reason to use the racy pre-allocations. > > Note that ttm_b

[PATCH 2/4] drm/ttm: replace drm_mm_pre_get() by direct alloc

2013-07-25 Thread David Herrmann
Instead of calling drm_mm_pre_get() in a row, we now preallocate the node and then use the atomic insertion functions. This has the exact same semantics and there is no reason to use the racy pre-allocations. Note that ttm_bo_man_get_node() does not run in atomic context. Nouveau already uses GFP_

Re: [PATCH 2/4] drm/ttm: replace drm_mm_pre_get() by direct alloc

2013-07-25 Thread Daniel Vetter
On Thu, Jul 25, 2013 at 03:56:00PM +0200, David Herrmann wrote: > Instead of calling drm_mm_pre_get() in a row, we now preallocate the node > and then use the atomic insertion functions. This has the exact same > semantics and there is no reason to use the racy pre-allocations. > > Note that ttm_b

[PATCH 2/4] drm/ttm: replace drm_mm_pre_get() by direct alloc

2013-07-25 Thread David Herrmann
Instead of calling drm_mm_pre_get() in a row, we now preallocate the node and then use the atomic insertion functions. This has the exact same semantics and there is no reason to use the racy pre-allocations. Note that ttm_bo_man_get_node() does not run in atomic context. Nouveau already uses GFP_