diff options
author | 2018-10-25 20:29:38 +0000 | |
---|---|---|
committer | 2018-10-25 20:29:38 +0000 | |
commit | 4b92460a01c7f4b6390874b17cce05554d315f26 (patch) | |
tree | b59f95fc1e0e77c90a5e23980751f0c9a5341659 | |
parent | The compilers already put static arrays in .rodata when not written to; (diff) | |
download | wireguard-openbsd-4b92460a01c7f4b6390874b17cce05554d315f26.tar.xz wireguard-openbsd-4b92460a01c7f4b6390874b17cce05554d315f26.zip |
New mesa uses the I915_MMAP_WC flag which we advertise but don't actually
implement. Knock out the I915_PARAM_MMAP_VERSION parameter that advertises
this flag until we actually implement it.
Fixes GPU hangs on GM45 chipset graphics.
ok deraadt@
-rw-r--r-- | sys/dev/pci/drm/i915/i915_dma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/i915/i915_dma.c b/sys/dev/pci/drm/i915/i915_dma.c index 54225532eea..51e673480b8 100644 --- a/sys/dev/pci/drm/i915/i915_dma.c +++ b/sys/dev/pci/drm/i915/i915_dma.c @@ -156,9 +156,11 @@ static int i915_getparam(struct drm_device *dev, void *data, case I915_PARAM_HAS_COHERENT_PHYS_GTT: value = 1; break; +#ifdef notyet case I915_PARAM_MMAP_VERSION: value = 1; break; +#endif case I915_PARAM_SUBSLICE_TOTAL: value = INTEL_INFO(dev)->subslice_total; if (!value) |