drm: Change create block to reserve node
authorBen Widawsky <ben@bwidawsk.net>
Fri, 5 Jul 2013 21:41:03 +0000 (14:41 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 8 Jul 2013 20:04:33 +0000 (22:04 +0200)
commit338710e7aff3428dc8170a03704a8ae981b58dcd
tree5c95329df3cd1114ddd3f59181f36fc4cbd5ab96
parentb3a070cccb9135f8bec63d9f194ddaa422136fb0
drm: Change create block to reserve node

With the previous patch we no longer actually create a node, we simply
find the correct hole and occupy it. This very well could have been
squashed with the last patch, but since I already had David's review, I
figured it's easiest to keep it distinct.

Also update the users in i915. Conveniently this is the only user of the
interface.

CC: David Airlie <airlied@linux.ie>
CC: <dri-devel@lists.freedesktop.org>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Acked-by: David Airlie <airlied@linux.ie>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_mm.c
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_stolen.c
include/drm/drm_mm.h