drm/i915: Silence the WARN if the user tries to GTT mmap an incoherent object
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 28 May 2014 15:16:41 +0000 (16:16 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 5 Jun 2014 06:52:41 +0000 (08:52 +0200)
commitddeff6ee423178246a16875cae0bf033ce1e8455
treefb3faacd90e6d1ee7f4090c27780ce3ee6d0d4a7
parentdbb42748ac4929987c1449ecb296b39ef8956b62
drm/i915: Silence the WARN if the user tries to GTT mmap an incoherent object

If the user tries to mmap through the GTT an object that is marked as
snooped, we report an error rather than allow the GPU to hang the
machine. The choice of EINVAL, however, was unfortunate as we turn that
into a WARN rather than a quiet SIGBUS.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c