drm/i915: Reclaim GTT space for failed PPGTT
authorBen Widawsky <ben@bwidawsk.net>
Sat, 26 Jan 2013 00:41:04 +0000 (16:41 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 31 Jan 2013 10:50:08 +0000 (11:50 +0100)
commite78891ca7648a14dda5760be7b03eba7c628a804
tree2b41cc4fa29873d501b7a09c827770da5f531528
parenta54c0c279f3864171fe53c66e769d5a137c5c651
drm/i915: Reclaim GTT space for failed PPGTT

When the PPGTT init fails, we may as well reuse the space that we were
reserving for the PPGTT PDEs.

This also fixes an extraneous mutex_unlock.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c