drm/i915: Limit number of capture objects
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Sep 2018 11:57:47 +0000 (12:57 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Sep 2018 20:21:38 +0000 (21:21 +0100)
commit8e3ffa8d027554b5ba41131a31fcd96d248d1991
tree69fed9ef95b9fb8cfffc8c72866a87ab3c1c323f
parent8db601f09127eb974e6fcf7fb30c70344d5727f6
drm/i915: Limit number of capture objects

If we fail to allocate an array for a large number of user requested
capture objects, reduce the array size and try to grab at least some of
the objects!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180911115810.8917-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gpu_error.c