]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5df2a96745bcde2bf49ca4af2948c12e2b393779
treefb3faacd90e6d1ee7f4090c27780ce3ee6d0d4a7
parent57fb2af154619574d44b95b808d9073918a04efc
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