public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Disable semaphores by default on SNB
@ 2011-12-23 21:33 Keith Packard
  2011-12-23 22:02 ` Keith Packard
  0 siblings, 1 reply; 2+ messages in thread
From: Keith Packard @ 2011-12-23 21:33 UTC (permalink / raw)
  To: intel-gfx
  Cc: linux-kernel, dri-devel, Keith Packard, Daniel Vetter,
	Eugeni Dodonov

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: Udo Steinberg <udo@hypervisor.org>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Eugeni Dodonov <eugeni@dodonov.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
---
 drivers/gpu/drm/i915/i915_gem_execbuffer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
index c681dc1..0d4d308 100644
--- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c
+++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
@@ -758,7 +758,7 @@ intel_enable_semaphores(struct drm_device *dev)
 
 	/* Enable semaphores on SNB when IO remapping is off */
 	if (INTEL_INFO(dev)->gen == 6)
-		return !intel_iommu_enabled;
+		return 0;
 
 	return 1;
 }
-- 
1.7.7.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/i915: Disable semaphores by default on SNB
  2011-12-23 21:33 [PATCH] drm/i915: Disable semaphores by default on SNB Keith Packard
@ 2011-12-23 22:02 ` Keith Packard
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Packard @ 2011-12-23 22:02 UTC (permalink / raw)
  To: intel-gfx; +Cc: linux-kernel, dri-devel, Daniel Vetter, Eugeni Dodonov

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

On Fri, 23 Dec 2011 13:33:07 -0800, Keith Packard <keithp@keithp.com> wrote:

>  	/* Enable semaphores on SNB when IO remapping is off */

Yeah, the comment is wrong now. I've updated this too:

-       /* Enable semaphores on SNB when IO remapping is off */
+       /* Enable semaphores on SNB */

-- 
keith.packard@intel.com

[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-23 22:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-23 21:33 [PATCH] drm/i915: Disable semaphores by default on SNB Keith Packard
2011-12-23 22:02 ` Keith Packard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox