Bug 38529 - gen6 (SNB) GPU still stalling besides latest kernel 3.0-rc4
Summary: gen6 (SNB) GPU still stalling besides latest kernel 3.0-rc4
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: high major
Assignee: Chris Wilson
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-21 08:21 UTC by nkalkhof
Modified: 2011-06-30 03:32 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
xorg.log (42.40 KB, text/plain)
2011-06-21 08:22 UTC, nkalkhof
no flags Details
dmesg (44.68 KB, text/plain)
2011-06-21 08:23 UTC, nkalkhof
no flags Details
deep hwinfo (457.78 KB, text/plain)
2011-06-21 08:23 UTC, nkalkhof
no flags Details
Apply HWSTAM workaround for BSD ring as well (1.61 KB, patch)
2011-06-21 09:06 UTC, Chris Wilson
no flags Details | Splinter Review

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.