]> 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)
commitb528385471caad62d1172f7df0bb6799002c1f38
tree49b7a7b78bc83e091a1453c6df92b127f6f5118f
parent15f658d952855d2094a5b93dc763e7c59339b5b7
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