]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Consolidate common error handling in intel_pin_and_map_ringbuffer_obj
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Apr 2016 11:11:10 +0000 (12:11 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Apr 2016 16:11:08 +0000 (17:11 +0100)
commite033f33d3faa9a9870eb148803071fc8a04ca23e
treef8ffe234744f3bc9a151b49007815076b72dec81
parent8e8370c1053ebb1265e4523f89310b0cf7cb5e03
drm/i915: Consolidate common error handling in intel_pin_and_map_ringbuffer_obj

After we pin the ringbuffer into the GGTT, all error paths need to unpin
it again. Move this common step into one block, and make the unable to
iomap error code consistent (i.e. treat it as out of memory to avoid
confusing it with a invalid argument).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1460113874-17366-3-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_ringbuffer.c