]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io-mapping: ensure io_mapping_map_atomic _is_ atomic
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 28 Sep 2011 09:57:23 +0000 (11:57 +0200)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:17:56 +0000 (11:17 -0800)
commitad5b1a7c0677321e9f62b922b2ac18801dd633d2
treed3df57b6c5ab7d2376294cad31a239b707d152b1
parent25bd8e0e7434d50524ead7a9ea9f88960d24eb1d
io-mapping: ensure io_mapping_map_atomic _is_ atomic

commit 24dd85ff723f142093f44244764b9b5c152235b8 upstream.

For the !HAVE_ATOMIC_IOMAP case the stub functions did not call
pagefault_disable/_enable. The i915 driver relies on the map
actually being atomic, otherwise it can deadlock with it's own
pagefault handler in the gtt pwrite fastpath.

This is exercised by gem_mmap_gtt from the intel-gpu-toosl gem
testsuite.

v2: Chris Wilson noted the lack of an include.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38115
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/io-mapping.h