drm/i915: Report resv_obj allocation failure
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 30 Jul 2019 20:58:05 +0000 (21:58 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 2 Aug 2019 15:03:53 +0000 (16:03 +0100)
commitcd2a4eaf8c79daa41bdeb7251dbf66413291fd70
tree78099f13675bdd0f80faf84eec3de74129ed0832
parente4661f144497f588b6baa6f00d7f3e4d58b29077
drm/i915: Report resv_obj allocation failure

Since commit 64d6c500a384 ("drm/i915: Generalise GPU activity
tracking"), we have been prepared for i915_vma_move_to_active() to fail.
We can take advantage of this to report the failure for allocating the
shared-fence slot in the reservation_object.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190730205805.3733-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_vma.c