]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commitdf0700e53047662c167836bd6fdeea55d5d8dcfa
tree49b7a7b78bc83e091a1453c6df92b127f6f5118f
parentbb9d2d050503c69695557b8b741276686ca2a396
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