From: Daniel Vetter Date: Wed, 28 Sep 2011 09:57:23 +0000 (+0200) Subject: io-mapping: ensure io_mapping_map_atomic _is_ atomic X-Git-Tag: v3.2-rc1~135^2~2^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24dd85ff723f142093f44244764b9b5c152235b8;p=pandora-kernel.git io-mapping: ensure io_mapping_map_atomic _is_ atomic 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 Cc: stable@kernel.org Signed-off-by: Daniel Vetter Reviewed-by: Chris Wilson Signed-off-by: Keith Packard --- Reading git-diff-tree failed