]> git.karo-electronics.de Git - karo-tx-linux.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>
Wed, 28 May 2014 16:12:53 +0000 (18:12 +0200)
commit1edadfc0440cdce929c1126e3c45c183d6fa4813
tree5bc018eb75bcaff63a33dd00885a7cd4ea4cceb0
parenta70995de6e42423549dfa192b71110f67da8530e
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