Commit ebbd857e authored by Keith Packard's avatar Keith Packard Committed by Linus Torvalds

drm/i915: Disable semaphores by default on SNB

Semaphores still cause problems on some machines:

> From Udo Steinberg:
>
> With Linux-3.2-rc6 I'm frequently seeing GPU hangs when large amounts of
> text scroll in an xterm, such as when extracting a tar archive. Such as this
> one (note the timestamps):
>
>  I can reproduce it fairly easily with something
>  as simple as:
>
>	  while true; do dmesg; done

This patch turns them off on SNB while leaving them on for IVB.
Reported-by: default avatarUdo Steinberg <udo@hypervisor.org>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Eugeni Dodonov <eugeni@dodonov.net>
Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7f54492f
...@@ -756,9 +756,9 @@ intel_enable_semaphores(struct drm_device *dev) ...@@ -756,9 +756,9 @@ intel_enable_semaphores(struct drm_device *dev)
if (i915_semaphores >= 0) if (i915_semaphores >= 0)
return i915_semaphores; return i915_semaphores;
/* Enable semaphores on SNB when IO remapping is off */ /* Disable semaphores on SNB */
if (INTEL_INFO(dev)->gen == 6) if (INTEL_INFO(dev)->gen == 6)
return !intel_iommu_enabled; return 0;
return 1; return 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment