Bug 44252

Summary: [IVB]GPU hang while playing video with myplayer
Product: xorg Reporter: Guang Yang <guang.a.yang>
Component: Driver/intelAssignee: Chris Wilson <chris>
Status: VERIFIED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: yi.sun
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg.log
none
i915_error_state none

Description Guang Yang 2011-12-28 18:08:24 UTC
System Environment:
--------------------------
Platform:        IvyBridge/SandyBridge
Kernel: (drm-intel-next)097354eb14fa94d31a09c64d640643f58e4a5a9a
Libdrm:         (master)2.4.29-3-gef20301a11afae50bfe127002913dbd0b81ddccc
Mesa:           (master)a5608a5098e059510ba3fc79c8c0ba928db60257
Xserver:        
(master) xorg-server-1.11.99.2-70-ga28ff2cf92c2b35e02eacca21af929afabbf6b83
Xf86_video_intel: (master)2.17.0-234-g655a96cd5f12ff7fe593e7da5f34c7c92ef9b87d

Bug detailed description:
-------------------------
Every time I playing video with myplayer while starting X,the GPU will hang .
then I have try another X version,it can work well.

Kernel: (drm-intel-next)097354eb14fa94d31a09c64d640643f58e4a5a9a
Libdrm: (master)2.4.27-1-g961bf9b5c2866ccb4fedf2b45b29fb688519d0db
Mesa: (7.11)b95767a57ad499a2ed7431e8b0b52966c6dc0a45
Xserver: (server-1.11-branch)xorg-server-1.11.1
Xf86_video_intel:
(master)2.16.901-31-g6fd0754e9c81164ca0fdcf96ba2bfb419568187f

Reproduce steps:
----------------
1. start X
2. use mplayer play a video.
Comment 1 Guang Yang 2011-12-28 18:09:19 UTC
Created attachment 54926 [details]
dmesg.log
Comment 2 Guang Yang 2011-12-28 18:09:59 UTC
Created attachment 54927 [details]
i915_error_state
Comment 3 Chris Wilson 2011-12-29 01:59:56 UTC
What is the command to play the video, as that looks more like a ddx command buffer than mesa? As you sure this is also reproducible on SNB? Since those two bugs would be significantly different code paths and completely different error state, it would be wise to open a separate bug with the i915_error_state/dmesg/Xorg.log from the SNB machine as well.
Comment 4 Guang Yang 2011-12-30 23:54:56 UTC
(In reply to comment #3)
> What is the command to play the video, as that looks more like a ddx command
> buffer than mesa? As you sure this is also reproducible on SNB? Since those two
> bugs would be significantly different code paths and completely different error
> state, it would be wise to open a separate bug with the
> i915_error_state/dmesg/Xorg.log from the SNB machine as well.

The commant to play the video is: mplayer -vo xv XXXXX.mpeg.
Here is the same bug with sandybridge:bug 44338.
Comment 5 Chris Wilson 2011-12-31 09:23:15 UTC
commit 770a953ff03bb8328c3f29e274d225528840f30c
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sat Dec 31 17:19:08 2011 +0000

    uxa/video: Clear all state structures before uploading
    
    A regression from eb859f644633e left some of the state uninitialised
    before uploading to the GPU leading to undefined behaviour.
    
    Reported-by: Alexey Shumitsky <alexey.shumitsky@gmail.com>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44338
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44252
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

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.