Microhangs of Xorg: drm:i915_hangcheck_ring_idle

Asked by tobyS

Hi,

I just installed a fresh Natty on my brand new Thinkpad X220. Everything works quite fine, except for that I'm experiencing "micro hangs" in the X server: Every few seconds, the system seems to hang for about 0.5-1 seconds, but then resumes normal operation, filling in typed characters from the buffer or completing the current mouse movement.

Whenever this phenomenon occurs, I get the following line in /var/log/syslog:

Jun 8 17:36:31 tango kernel: [19380.993923] [drm:i915_hangcheck_ring_idle] *ERROR* Hangcheck timer elapsed... blt ring idle [waiting on 7717165, at 7717165], missed IRQ?
Jun 8 17:36:41 tango kernel: [19390.990968] [drm:i915_hangcheck_ring_idle] *ERROR* Hangcheck timer elapsed... blt ring idle [waiting on 7724235, at 7724235], missed IRQ?
Jun 8 17:36:55 tango kernel: [19404.493498] [drm:i915_hangcheck_ring_idle] *ERROR* Hangcheck timer elapsed... blt ring idle [waiting on 7739750, at 7739750], missed IRQ?
Jun 8 17:36:57 tango kernel: [19406.990282] [drm:i915_hangcheck_ring_idle] *ERROR* Hangcheck timer elapsed... blt ring idle [waiting on 7740994, at 7740994], missed IRQ?

I uploaded the output of lshw here for further info about hardware details: http://files.schlitt.info/tmp/x220_hw.txt

Does anyone know of a solution to this problem?

Thanks in advance,
Toby

Question information

Revision history for this message
delance (olivier-delance) said :
#1

Please subscribe bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/507504 and ask assistance from other subscribers, to verify you have the same bug. If not, reopen the question. Nota Bene: by subscribing, you will be notified of release of fix.

Revision history for this message
tobyS (tobias-schlitt) said :
#2

I doubt #507504 this is the same bug as described here, for several reasons:

1. The behavior here is different the, the bug describes full hangs of Xorg, not temporal issues
2. The error message is different ("drm:i915_hangcheck_elapsed" there vs. "drm:i915_hangcheck_ring_idle" here)
3. Bug #507504 is marked a duplicate of #477256 which has a release fixed.

To explain the issue in further detail:

Every few (2-20) seconds the X screen is not updated for about 0.5-2 seconds. After that, X resumes normal operation until the next hiccup. The issue typically occurs while I'm typing (as I do now), scrolling or moving the mouse. For example I now typed "while I'm typing", but only "while I'm t" occurred immediately on the screen, then X hung for ~1.5 seconds and then rest ("yping") appears.

Btw. sys load avg. is 0.06 0.10 0.13 and I have no IO wait at all (just to exclude the most obvious reasons).

Shall I open a new bug and collect additional info using apport?

Revision history for this message
tobyS (tobias-schlitt) said :
#3

Oops, I missed to thank you for your answer. :/ So, thanks anyway!

Revision history for this message
delance (olivier-delance) said :
#4

I'm not expert in this field, but yes, I think you should open a bug.

Revision history for this message
TobiThu (tober) said :
#5

I installed natty too on a Lenovo Thinkpad X220 and got the same error.
What kind of information could I provide to help solving this problem?

Revision history for this message
tobyS (tobias-schlitt) said :
#6

There is a workaround provided in https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/761065/comments/16 which helped me for now. 2 comments further down there is an instruction to make the fix permanent through GRUB, if it helps you.

Revision history for this message
Thomas Hood (jdthood) said :
#7

The https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/761065/comments/16 trick works for me too.

Fresh ThinkPad X220 natty amd64.