Don't use hardware acceleration on Sandybridge rev 07 hardware or earlier.
PATCH 1/1 Don't use hardware acceleration on Sandybridge rev 07 hardware or earlier.
This is known to lock up the GPU even with the workaround in place.
--- src/intel_driver.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
src/intel_driver.c +7 -0
@@ -482,6 +482,13 @@ static Bool can_accelerate_2d(struct intel_screen_private *intel)if (drmIoctl (intel->drmSubFD,DRM_IOCTL_I915_GETPARAM , &gp))return FALSE; } +if (INTEL_INFO (intel)->gen ==60 ) { +struct pci_device *const device = intel->PciInfo; +/* Sandybridge rev07 locks up easily, even with the workaround +* in place. Thus use shadowfb by default. */ +if (device->revision <8 ) +return FALSE; + }return TRUE; }
Signature · 1 line
1.6.4.2
Re: [PATCH] Dont use hardware acceleration on Sandybridge rev 07 hardware or earlier.
Quoted 1 line · Matthias Hopf
This is known to lock up the GPU even with the workaround in place.
Before applying this patch, I'd like to know the results of using the FORCE_WAKE write before reading the ring buffer registers. Also as we are accumulating workarounds for SNB faster than is healthy, we should be careful about which one we mean at the time of the comment. -Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
Re: [PATCH] Dont use hardware acceleration on Sandybridge rev 07 hardware or earlier.
Quoted 7 lines · Chris Wilson
Quoted 1 line · Matthias Hopf
This is known to lock up the GPU even with the workaround in place.
Before applying this patch, I'd like to know the results of using the
FORCE_WAKEwrite before reading the ring buffer registers. Also as we are accumulating workarounds for SNB faster than is healthy, we should be careful about which one we mean at the time of the comment.
I know, I know. The patch is (one of) the results of the Novell-HP-Intel workshop in Taipei this week. It turned out that rev07 is too unstable. Keith and Eric can probably comment on this. Better than I can.
I'm currently unsure whether the FORCE_WAKE write is the workaround Eric was testing, but we used his intel_drm_next branch for that. Without that workaround in place the rev07 locked up basically immediately, while with the workaround it took a while (though not very long) to freeze the GPU.
Strictly speaking the patch is possibly not really required for upstream, as it's only about rev07. We will use it to be able to continue testing at Novell with these old revisions.
Thanks
CU
Matthias
Signature · 3 lines
Matthias Hopf <[email protected]> __ __ __ Maxfeldstr. 5 / 90409 Nuernberg (_ | | (_ |__ [email protected] Phone +49-911-74053-715 __) |_| __) |__ R & D www.mshopf.de
Re: [PATCH] Dont use hardware acceleration on Sandybridge rev 07 hardware or earlier.
Quoted 3 lines · Matthias Hopf
I know, I know. The patch is (one of) the results of the Novell-HP-Intel workshop in Taipei this week. It turned out that rev07 is too unstable. Keith and Eric can probably comment on this. Better than I can.
There's a work-around in the kernel for pre rev-8 hardware that ensures every time the blt ring is advanced by the CPU, the first command executes a batch buffer. So the hardware is obviously quite broken.
This workaround doesn't work perfectly, and the GPU will still lock up when executing commands out of the blt ring from time to time. As pre rev-8 hardware is all pre-production, the workarounds should be removed From the driver and all acceleration disabled.
Signature · 1 line
[email protected]
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH] Dont use hardware acceleration on Sandybridge rev 07 hardware or earlier.
Quoted 6 lines · Keith Packard
Quoted 3 lines · Matthias Hopf
I know, I know. The patch is (one of) the results of the Novell-HP-Intel workshop in Taipei this week. It turned out that rev07 is too unstable. Keith and Eric can probably comment on this. Better than I can.
Quoted 8 lines
There's a work-around in the kernel for pre rev-8 hardware that ensures every time the blt ring is advanced by the CPU, the first command executes a batch buffer. So the hardware is obviously quite broken.
This workaround doesn't work perfectly, and the GPU will still lock up when executing commands out of the blt ring from time to time. As pre rev-8 hardware is all pre-production, the workarounds should be removed From the driver and all acceleration disabled.
Ah ha! If it's the BLT workaround, then yes that can die in a very hot fire. Thanks for the explanation.
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
Re: [PATCH] Dont use hardware acceleration on Sandybridge rev 07 hardware or earlier.
In reply to Keith PackardQuoted 20 lines
Quoted 20 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Keith Packard
Sent: 2010年11月21日 12:00
To: Matthias Hopf; Chris Wilson
Cc: [email protected]
Subject: Re: [Intel-gfx] [PATCH] Dont use hardware acceleration on Sandybridge rev 07 hardware or earlier.Quoted 3 lines · Matthias Hopf
I know, I know. The patch is (one of) the results of the Novell-HP-Intel workshop in Taipei this week. It turned out that rev07 is too unstable. Keith and Eric can probably comment on this. Better than I can.
There's a work-around in the kernel for pre rev-8 hardware that ensures every time the blt ring is advanced by the CPU, the first command executes a batch buffer. So the hardware is obviously quite broken.
Quoted 5 lines
Quoted 5 lines
This workaround doesn't work perfectly, and the GPU will still lock up when executing commands out of the blt ring from time to time. As pre rev-8 hardware is all pre-production, the workarounds should be removed From the driver and all acceleration disabled.
Hi,
I can not reproduce the issue here on a pre rev-8 system.
Dose it still hang if disable RC6?
Set 0 for nit 18 in 0xA090?
Thanks
Zou Nanhai
Quoted 2 lines
Quoted 2 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH] Dont use hardware acceleration on Sandybridge rev 07 hardware or earlier.
We had two independent reports of rev07 failing even with the BLT workaround in place, so I applied the patch.
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre