Bug 38529

Summary: gen6 (SNB) GPU still stalling besides latest kernel 3.0-rc4
Product: xorg Reporter: nkalkhof
Component: Driver/intelAssignee: Chris Wilson <chris>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: high    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
xorg.log
none
dmesg
none
deep hwinfo
none
Apply HWSTAM workaround for BSD ring as well none

Description nkalkhof 2011-06-21 08:21:46 UTC
Hello All,

SNB GPU (i7-2620M) still hangs frequently with kernel 3.0-rc4
raising "drm:i915_hangcheck_ring_idle *ERROR* Hangcheck timer
elapsed... gen6 bsd ring idle". This happens when multiple
applications (mplayer decoding vaapi stream and some openGL game)
running at the same time. With either one running there is no
stalling. 

Changing /sys/module/i915/parameters/i915_enable_rc6 to 0 does *NOT* 
change the situation.

However setting /sys/module/i915/parameters/semaphores to 1 kills the stalling but also kills the x-server every couple of minutes or causes the system to freeze when xf86-video-intel is compiled with --enable-sna.

Could someone please confirm the issue?
Comment 1 nkalkhof 2011-06-21 08:22:38 UTC
Created attachment 48238 [details]
xorg.log
Comment 2 nkalkhof 2011-06-21 08:23:01 UTC
Created attachment 48239 [details]
dmesg
Comment 3 nkalkhof 2011-06-21 08:23:28 UTC
Created attachment 48240 [details]
deep hwinfo
Comment 4 Chris Wilson 2011-06-21 09:06:26 UTC
Created attachment 48241 [details] [review]
Apply HWSTAM workaround for BSD ring as well

Random patch of the day.
Comment 5 nkalkhof 2011-06-21 10:26:18 UTC
(In reply to comment #4)
> Created an attachment (id=48241) [details]
> Apply HWSTAM workaround for BSD ring as well
> 
> Random patch of the day.

Chris,

looks good so far. The patch prevents my system to stall even under heavy CPU and GPU load. Good work!

If there are no objections I'll close this bug.

Thanks and regards,
nic
Comment 6 Florian Mickler 2011-06-30 03:32:26 UTC
A patch referencing this bug report has been merged in Linux v3.0-rc5:

commit ec6a890dfed7dd245beba5e5bcdfcffbd934c284
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Tue Jun 21 18:37:59 2011 +0100

    drm/i915: Apply HWSTAM workaround for BSD ring on SandyBridge

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.