drm/i915: EBUSY status handling added to i915_gem_fault().
authorDmitry Rogozhkin <[email protected]>
Wed, 3 Oct 2012 14:15:26 +0000 (17:15 +0300)
committerDaniel Vetter <[email protected]>
Thu, 4 Oct 2012 08:33:42 +0000 (10:33 +0200)
commite79e0fe380847493266fba557217e2773c61bd1b
tree97e55deebc73b06739e28811f592e5ca6231065c
parent2477367083b3eaa97f87993ab26627a02f350551
drm/i915: EBUSY status handling added to i915_gem_fault().

Subsequent threads returning EBUSY from vm_insert_pfn() was not handled
correctly. As a result concurrent access from new threads to
mmapped data caused SIGBUS.

Note that this fixes i-g-t/tests/gem_threaded_tiled_access.

Tested-by: Mika Kuoppala <[email protected]>
Signed-off-by: Dmitry Rogozhkin <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/i915/i915_gem.c