From: Takashi Iwai <tiwai@suse.de>
To: intel-gfx@lists.freedesktop.org
Subject: X hang with quirk VT switches
Date: Wed, 03 Dec 2014 15:45:35 +0100 [thread overview]
Message-ID: <s5h1togssfk.wl-tiwai@suse.de> (raw)
Hi,
while checking the reported bug about VT switch hang on openSUSE 13.2,
I also could reproduce a similar issue as reported: namely, X hangs
when repeatedly switching VT quickly.
For example, running the following on KDE results in the stall of X.
% for i in $(seq 1 100); do chvt 1; chvt 7; done
Looking at the sysrq-t output, it stalls at drm_read(). And after
putting some debug prints at event handling codes, it shows like:
drm_queue_vblank_event event_space=4064
send_vblank_event event_space=4064
drm_poll ENTER event_space=4064
drm_poll mask=0x41 event_space=4064
drm_poll ENTER event_space=4064
drm_poll mask=0x41 event_space=4064
drm_read ENTER event_space=4064
drm_read total=32 event_space=4096
drm_poll ENTER event_space=4096
drm_poll mask=0x0 event_space=4096
drm_read ENTER event_space=4096
drm_read ENTER event_space=4096
drm_read ENTER event_space=4096
So, after a vblank event, two poll calls succeeded, followed by one
drm_read(). After that, there were one poll call without event,
followed by three(!) drm_read() calls. The last three drm_read()
never exited, thus X stalled. So, this looks like a race or a
refcount issue somewhere.
Note that the problem disappears when passing drm.debug=0x0e. And it
doesn't seem to happen with a 2D desktop, either. The race window
is supposed to be fairly small.
The problem is reproduced reliably with xf86-video-intel 2.99.916 and
the latest Linus tree on a HP laptop with IVB. Also seen on HSW and
other chips, too.
Does this ring a bell to anyone?
thanks,
Takashi
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next reply other threads:[~2014-12-03 14:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-03 14:45 Takashi Iwai [this message]
2014-12-03 18:31 ` X hang with quirk VT switches Chris Wilson
2014-12-03 19:43 ` Takashi Iwai
2014-12-04 10:53 ` Takashi Iwai
2014-12-04 11:21 ` Chris Wilson
2014-12-04 11:44 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5h1togssfk.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox