drm/i915: pre-alloc instead of drm_mm search/get_block
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 27 Jul 2013 14:21:27 +0000 (16:21 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 7 Aug 2013 00:16:26 +0000 (10:16 +1000)
commit06e78edff18195f8e416e6961fea7d88118a5c63
tree4caa1d1f5463b5d760c0cc94fb54c1ae13ef68d9
parent78af329a85bee7dd4671c67abfecde37b0057b10
drm/i915: pre-alloc instead of drm_mm search/get_block

i915 is the last user of the weird search+get_block drm_mm API. Convert it
to an explicit kmalloc()+insert_node(). This drops the last user of the
node-cache in drm_mm. We can remove it now in a follow-up patch.

v2:
 - simplify error path in i915_setup_compression()
v3:
 - simplify error path even more

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_gem_stolen.c