From: Chris Wilson Date: Fri, 7 Dec 2012 20:37:07 +0000 (+0000) Subject: drm/i915: Preallocate the drm_mm_node prior to manipulating the GTT drm_mm manager X-Git-Tag: v3.8-rc2~13^2~7^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc9dd7a20fde95aa81a8307cde79c2dff9f83f3d;p=pandora-kernel.git drm/i915: Preallocate the drm_mm_node prior to manipulating the GTT drm_mm manager As we may reap neighbouring objects in order to free up pages for allocations, we need to be careful not to allocate in the middle of the drm_mm manager. To accomplish this, we can simply allocate the drm_mm_node up front and then use the combined search & insert drm_mm routines, reducing our code footprint in the process. Fixes (partially) i-g-t/gem_tiled_swapping Reported-by: Mika Kuoppala Signed-off-by: Chris Wilson Reviewed-by: Jani Nikula [danvet: Again fixup atomic bikeshed.] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed