From: Andrew Morton <akpm@linux-foundation.org>
To: Jiri Slaby <jirislaby@gmail.com>
Cc: airlied@linux.ie, eric@anholt.net, keithp@keithp.com,
dri-devel@lists.sourceforge.net,
Linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: i915 X lockup
Date: Fri, 27 Feb 2009 02:32:31 -0800 [thread overview]
Message-ID: <20090227023231.76e7c65f.akpm@linux-foundation.org> (raw)
In-Reply-To: <49A7B253.906@gmail.com>
On Fri, 27 Feb 2009 10:28:51 +0100 Jiri Slaby <jirislaby@gmail.com> wrote:
> everytime I run X, it gets stuck. Currently running on mmotm
> 2009-02-26-16-58, but I think this is wider problem. I had i915 disabled
> for a long time (until I noticed today).
>
> SysRq : Show Locks Held
>
> Showing all locks held in the system:
> 3 locks held by events/0/10:
> #0: (events){+.+.+.}, at: [<ffffffff8025223d>] worker_thread+0x19d/0x340
> #1: (&(&dev_priv->mm.retire_work)->work){+.+...}, at:
> [<ffffffff8025223d>] worker_thread+0x19d/0x340
> #2: (&dev->struct_mutex){+.+.+.}, at: [<ffffffff804057ba>]
> i915_gem_retire_work_handler+0x3a/0x90
> 1 lock held by mingetty/3899:
> #0: (&tty->atomic_read_lock){+.+.+.}, at: [<ffffffff803cb5de>]
> n_tty_read+0x48e/0x8e0
> 1 lock held by mingetty/3900:
> #0: (&tty->atomic_read_lock){+.+.+.}, at: [<ffffffff803cb5de>]
> n_tty_read+0x48e/0x8e0
> 1 lock held by mingetty/3901:
> #0: (&tty->atomic_read_lock){+.+.+.}, at: [<ffffffff803cb5de>]
> n_tty_read+0x48e/0x8e0
> 1 lock held by X/4007:
> #0: (&dev->struct_mutex){+.+.+.}, at: [<ffffffff8040563c>]
> i915_gem_throttle_ioctl+0x2c/0x60
> 2 locks held by bash/4105:
> #0: (sysrq_key_table_lock){......}, at: [<ffffffff803de366>]
> __handle_sysrq+0x26/0x190
> #1: (tasklist_lock){.+.+..}, at: [<ffffffff80266c1f>]
> debug_show_all_locks+0x3f/0x1c0
I assume that i915_gem_throttle_ioctl->i915_gem_ring_throttle is stuck
in i915_wait_request(), holding struct_mutex. That of course makes
keventd block.
Perhaps i915_wait_request() is waiting for keventd to do something,
which is the deadlock. That "something" could be to simply finish its
current call to i915_gem_retire_work_handler().
But worse, it could be some completely other keventd handler which
isn't getting run, because that keventd instance is stuck over in
i915_gem_retire_work_handler().
IOW, the usual keventd problem.
next prev parent reply other threads:[~2009-02-27 10:41 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-27 9:28 i915 X lockup Jiri Slaby
2009-02-27 10:01 ` Peter Zijlstra
2009-02-27 10:12 ` Jiri Slaby
2009-02-27 10:14 ` Jiri Slaby
2009-02-27 10:32 ` Andrew Morton [this message]
2009-02-27 13:04 ` Sitsofe Wheeler
2009-02-27 13:49 ` Jiri Slaby
2009-02-27 23:12 ` Sitsofe Wheeler
2009-02-28 0:20 ` Eric Anholt
2009-02-28 8:31 ` Jiri Slaby
2009-02-28 8:47 ` Andrew Morton
2009-02-28 9:00 ` Eric Anholt
2009-02-28 18:24 ` Bruno Prémont
2009-02-28 19:57 ` Eric Anholt
2009-02-28 17:11 ` Keith Packard
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=20090227023231.76e7c65f.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=airlied@linux.ie \
--cc=dri-devel@lists.sourceforge.net \
--cc=eric@anholt.net \
--cc=jirislaby@gmail.com \
--cc=keithp@keithp.com \
--cc=linux-kernel@vger.kernel.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