Bug 37090

Summary: [SNB] GPU hang when running 3DMMES/taiji when GPU semaphores disabled
Product: DRI Reporter: meng <mengmeng.meng>
Component: DRM/IntelAssignee: Chris Wilson <chris>
Status: CLOSED DUPLICATE QA Contact:
Severity: critical    
Priority: medium CC: jbarnes
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg
none
i915_error_state.log.tgz about GPU hung none

Description meng 2011-05-10 20:07:11 UTC
System Environment:
--------------------------
Platform:  Sugarbay(GT1)
Libdrm:    (master)2.4.25
Mesa:      (master)7074801ed7da5d4da71ed9fb41c4b54681f91854
Xserver:	   (master)xorg-server-1.10.0-313-g5cb31cd0cbf83fff5f17a475e7b0e45246b19bf3
Xf86_video_intel:(master)2.15.0-7-g3145530feed879082bcfab11ffc8e7fd0911c920
Cairo:  (master)b1c96f18526ad09f8a972feecaefe465c61307b5
Libva:  (master)0cfff4e0189efd46ec5a29dc3e11b8388ae67b00
Kernel: (drm-intel-fixes) dabc8ce34938f9fa2929f51d9fab730e78bd2184

Bug detailed description:
-------------------------
on desktop,GPU hang running 3DMMES/taijion on a Sugarbay(GT1) when its resolution isn't Maximum.Pls see attached dmesg.
Specifically:
1.It's Ok when running on the Maximum resolution.
2.It works fine on Sugarbay(GT2) and Huronriver.
3.It's kernel regression.By bisected,show that
a1656b9090f7008d2941c314f5a64724bea2ae37 is the first bad commit.
4.It's OK when add "i915.semaphores=1" in grub.conf with the commit a1656b9090.
 But it's still bad when add "i915.semaphores=1" in grub.conf with the commit dabc8ce349.

commit a1656b9090f7008d2941c314f5a64724bea2ae37
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Fri Mar 4 18:48:03 2011 +0000

    drm/i915: Disable GPU semaphores by default

    Andi Kleen narrowed his GPU hangs on his Sugar Bay (SNB desktop) rev 09
    down to the use of GPU semaphores, and we already know that they appear
    broken up to Huron River (mobile) rev 08. (I'm optimistic that disabling
    GPU semaphores is simply hiding another bug by the latency and
    side-effects of the additional device interaction it introduces...)

    However, use of semaphores is a massive performance improvement... Only
    as long as the system remains stable. Enable at your peril.

    Reported-by: Andi Kleen <andi-fd@firstfloor.org>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=33921
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>


Reproduce steps:
-------------------------
1.xinit&
2.gnome-session
2.LD_LIBRARY_PATH=lib:$LD_LIBRARY_PATH ../src/common/fm_oes_player/fm_oesplayer
(make sure:resolution less than the maximum resolution)
Comment 1 meng 2011-05-10 20:07:48 UTC
Created attachment 46580 [details]
dmesg
Comment 2 Chris Wilson 2011-05-10 23:47:59 UTC
Can you also please attach the /sys/kernel/debug/dri/0/i915_error_state?
Comment 3 meng 2011-05-11 00:17:32 UTC
Created attachment 46581 [details]
i915_error_state.log.tgz about GPU hung
Comment 4 Gordon Jin 2011-05-20 00:36:33 UTC
Promoting to P1, as GPU semaphores are set as disabled by default in 2.6.39.

Please neglect GT1. This is side-tracked by a mesa regression: bug#37348.
Comment 5 Gordon Jin 2011-05-22 18:41:16 UTC
This turns out to be a combination of bug#33394 and bug#37348.

*** This bug has been marked as a duplicate of bug 33394 ***
Comment 6 meng 2014-07-18 02:35:23 UTC
Verified it.
Comment 7 Elizabeth 2017-10-06 14:52:40 UTC
Closing old verified.

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.