Bug 70727 - [830] SNA causes GPU Hang on IBM X30 intel 82830 chipset.
Summary: [830] SNA causes GPU Hang on IBM X30 intel 82830 chipset.
Status: CLOSED INVALID
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86 (IA32) All
: medium normal
Assignee: Daniel Vetter
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-21 15:33 UTC by Michal P
Modified: 2017-07-24 22:57 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
/sys/class/drm/card0/error (1.97 MB, text/plain)
2013-10-21 15:33 UTC, Michal P
no flags Details
/sys/class/drm/card0/error (#define HAS_BROKEN_CS_TLB(dev) (0)) (696.58 KB, text/plain)
2013-10-22 07:28 UTC, Michal P
no flags Details

Description Michal P 2013-10-21 15:33:15 UTC
Created attachment 87932 [details]
/sys/class/drm/card0/error

Hi,
Linux x30 3.12.0-994-generic #201310160505 SMP Wed Oct 16 09:15:44 UTC 2013 i686 GNU/Linux from Ubuntu drm-intel-nightly.

On 3.11 and 3.12rc kernels the system freezes after few minutes, with drm-intel-nightly it continues witg acceleration disabled.

"AccelMethod" "uxa" works, but it's rather slow.

lcpci:
00:00.0 Host bridge: Intel Corporation 82830M/MG/MP Host Bridge (rev 04)
00:02.0 VGA compatible controller: Intel Corporation 82830M/MG Integrated Graphics Controller (rev 04)
00:02.1 Display controller: Intel Corporation 82830M/MG Integrated Graphics Controller
...
Comment 1 Chris Wilson 2013-10-21 15:41:18 UTC
The error-state is bogus...
Comment 2 Chris Wilson 2013-10-21 15:44:31 UTC
Please apply

diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 76e54352111e..d10a0c3156f1 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -1740,7 +1740,7 @@ struct drm_i915_file_private {
 #define OVERLAY_NEEDS_PHYSICAL(dev)    (INTEL_INFO(dev)->overlay_needs_physical)
 
 /* Early gen2 have a totally busted CS tlb and require pinned batches. */
-#define HAS_BROKEN_CS_TLB(dev)         (IS_I830(dev) || IS_845G(dev))
+#define HAS_BROKEN_CS_TLB(dev)         (0)
 
 /* With the 945 and later, Y tiling got adjusted so that it was 32 128-byte
  * rows, which changed the alignment requirements and fence programming.

so that we can capture the right GPU dump.
Comment 3 Daniel Vetter 2013-10-21 19:41:37 UTC
The the below patch help by any chance?

http://cgit.freedesktop.org/~danvet/xf86-video-intel/commit/
Comment 4 Chris Wilson 2013-10-21 22:53:52 UTC
It's not the usual incoherence...
Comment 5 Michal P 2013-10-22 07:28:15 UTC
Created attachment 87968 [details]
/sys/class/drm/card0/error (#define HAS_BROKEN_CS_TLB(dev)         (0))
Comment 6 Chris Wilson 2013-10-22 09:06:39 UTC
Can you please try this hack to xf86-video-intel:

diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index f959875..927a432 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -943,6 +943,9 @@ static bool test_has_caching(struct kgem *kgem)
        if (kgem->gen == 040)
                return false;
 
+       if (kgem->gen == 020)
+               return false;
+
        handle = gem_create(kgem->fd, 1);
        if (handle == 0)
                return false;
Comment 7 Michal P 2013-10-22 11:54:34 UTC
With #define HAS_BROKEN_CS_TLB(dev) (0)), i have a crash on SNA and UXA, but with patched from  Chris Wilson SNA works.
I have no errors for 2 hours, but with option "DRI" "false". Without it, glxgears makes GPU crash:

 4551.004051] [drm] stuck on render ring
[ 4551.004077] [drm] GPU crash dump saved to /sys/class/drm/card0/error
[ 4551.004083] [drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.
[ 4551.004088] [drm] Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel
[ 4551.004094] [drm] drm/i915 developers can then reassign to the right component if it's not a kernel issue.
[ 4551.004099] [drm] The gpu crash dump is required to analyze gpu hangs, so please always attach it.
[ 4551.014974] [drm:i915_reset] *ERROR* Failed to reset chip.
Comment 8 Chris Wilson 2013-10-22 12:09:40 UTC
Daniel, can you set your 830gm running through i-g-t, perhaps we need to beat the snoop tests a bit harder?
Comment 9 Chris Wilson 2013-10-28 11:19:59 UTC
The w/a may only be possible in the DDX, but at the moment this looks to be a hardware issue so we may be missing some protections in the kernel for example.
Comment 10 Chris Wilson 2014-09-05 09:28:33 UTC
I was waiting on Daniel doing some testing on 830..
Comment 11 Rodrigo Vivi 2014-10-15 20:09:00 UTC
Is it still happening on latest drm-intel-nightly and with latest xf86-video-intel?
Comment 12 Jani Nikula 2015-01-29 13:49:30 UTC
More than a year since we've heard from reporter, and apparently Daniel isn't testing with the 830 either... I'll close this next time I come across here.
Comment 13 Jesse Barnes 2015-03-25 22:08:07 UTC
Oh well, timed out.  Hopefully this is fixed.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.