]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: EBUSY status handling added to i915_gem_fault().
authorDmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
Wed, 3 Oct 2012 14:15:26 +0000 (17:15 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Mar 2013 20:05:00 +0000 (13:05 -0700)
commit81da76ae314c66e32b8c06b0ce155a5b61670dd7
tree360ac46ec63c1a9fed6e2b255a895643b8dab47b
parentcb505e2eb68fe9e22afa220bf172f6aa090b7dca
drm/i915: EBUSY status handling added to i915_gem_fault().

commit e79e0fe380847493266fba557217e2773c61bd1b upstream.

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 <mika.kuoppala@intel.com>
Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/i915_gem.c