]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Disable snooping (userptr, set-cache-level) on gen4
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 6 Sep 2017 19:24:24 +0000 (20:24 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Sep 2017 09:41:19 +0000 (10:41 +0100)
commitf72bca3dd6b4556b235820f937ea4e332b6a4959
tree49b7a7b78bc83e091a1453c6df92b127f6f5118f
parent7c22f058594bc7fc74bd6c9eae9124821e73091f
drm/i915: Disable snooping (userptr, set-cache-level) on gen4

The original gen4 has an issue where writes (both render and blt) into
snoopable pages are lost. We've previously worked around this in
userspace (ddx, igt) by simply not requesting snoopable buffers, but upon
rediscovering this problem for a third time, make the kernel reject such
requests with -ENODEV.

This disables snooping on userspace buffers for i965g and i965gm (original
gen4) machines.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170906192424.26970-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/intel_device_info.c