Bug 88281 - [gen4] GPU hang in Chrome
Summary: [gen4] GPU hang in Chrome
Status: RESOLVED DUPLICATE of bug 80568
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Ian Romanick
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-10 21:46 UTC by Hudson
Modified: 2015-04-30 18:14 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
/sys/class/drm/card0/error (849.09 KB, text/plain)
2015-01-10 21:46 UTC, Hudson
Details
dmesg while error occurs (92.59 KB, text/plain)
2015-01-10 21:47 UTC, Hudson
Details
/var/log/syslog while crash occurs (123.74 KB, text/plain)
2015-01-10 21:53 UTC, Hudson
Details

Description Hudson 2015-01-10 21:46:25 UTC
Created attachment 112075 [details]
/sys/class/drm/card0/error

Got this on dmesg while opening youtube videos on google-chrome-stable.
Attachment area contains the gpu crash dump which is required to analyze gpu hangs.
Comment 1 Hudson 2015-01-10 21:47:10 UTC
Created attachment 112076 [details]
dmesg while error occurs
Comment 2 Hudson 2015-01-10 21:53:28 UTC
Created attachment 112077 [details]
/var/log/syslog while crash occurs
Comment 3 Hudson 2015-01-10 22:01:52 UTC
This crash only occurs while using Chrome. When trying to reproduce crash using Firefox, everything goes fine.
Comment 4 Hudson 2015-01-10 22:25:55 UTC
This also only happens when using YouTube. While using other websites with video on demand, no problem.
Comment 5 Hudson 2015-01-10 22:54:57 UTC
Tried to continue watching videos with youtube, using HTML5 player. But the same problem happens. (I've tried this to lookup if it was a flashplayer issue)

I've removed Pepper-Flash from /home/<user>/.config/google-chrome/Default/Pepper Data/Shockwave Flash/

Once Youtube frontend don't find pepper-flash, it opens in HTML5.

One video was played normally, but at the end (last seconds to end clip) the same issue happened again.

Regards.
Comment 6 Hudson 2015-01-10 22:55:50 UTC
I'm using ubuntu, decided to install other linux distro.
Comment 7 Matt Turner 2015-03-06 23:25:37 UTC
I suspect this may be another duplicate of the bug 80568, fixed (worked-around) by this commit:

commit c4fd0c9052dd391d6f2e9bb8e6da209dfc7ef35b
Author: Kenneth Graunke <kenneth@whitecape.org>
Date:   Sat Jan 17 23:21:15 2015 -0800

    i965: Work around mysterious Gen4 GPU hangs with minimal state changes.
    
    Gen4 hardware appears to GPU hang frequently when using Chromium, and
    also when running 'glmark2 -b ideas'.  Most of the error states contain
    3DPRIMITIVE commands in quick succession, with very few state packets
    between them - usually VERTEX_BUFFERS/ELEMENTS and CONSTANT_BUFFER.
    
    I trimmed an apitrace of the glmark2 hang down to two draw calls with a
    glUniformMatrix4fv call between the two.  Either draw by itself works
    fine, but together, they hang the GPU.  Removing the glUniform call
    makes the hangs disappear.  In the hardware state, this translates to
    removing the CONSTANT_BUFFER packet between the two 3DPRIMITIVE packets.
    
    Flushing before emitting CONSTANT_BUFFER packets also appears to make
    the hangs disappear.  I observed a slowdown in glxgears by doing it all
    the time, so I've chosen to only do it when BRW_NEW_BATCH and
    BRW_NEW_PSP are unset (i.e. we haven't done a CS_URB_STATE change or
    already flushed the whole pipeline).
    
    I'd much rather understand the problem, but at this point, I don't see
    how we'd ever be able to track it down further.  We have no real tools,
    and the hardware people moved on years ago.  I've analyzed 20+ error
    states and read every scrap of documentation I could find.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80568
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85367
    Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
    Acked-by: Matt Turner <mattst88@gmail.com>
    Cc: "10.4 10.3" <mesa-stable@lists.freedesktop.org>

It's in git, and backports are in Mesa 10.4.x for x > 3. Please try upgrading to >10.4.3. If it's resolved by such an upgrade, please mark as a duplicate of bug 80568.
Comment 8 Matt Turner 2015-04-30 18:14:50 UTC
No reply. Marking as duplicate.

*** This bug has been marked as a duplicate of bug 80568 ***


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.