mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bob Copeland <me@bobcopeland.com>
To: "Brandeburg, Jesse" <jesse.brandeburg@intel.com>
Cc: Linux kernel mailing list <linux-kernel@vger.kernel.org>,
	"airlied@linux.ie" <airlied@linux.ie>,
	"dri-devel@lists.sourceforge.net"
	<dri-devel@lists.sourceforge.net>,
	"keithp@keithp.com" <keithp@keithp.com>,
	Ingo Molnar <mingo@elte.hu>,
	"arjan@linux.intel.com" <arjan@linux.intel.com>
Subject: Re: 2.6.29-rc1: i915 lockdep warning
Date: Fri, 30 Jan 2009 14:42:16 -0500	[thread overview]
Message-ID: <b6c5339f0901301142x663cf336oeb623e73c185c71c@mail.gmail.com> (raw)
In-Reply-To: <F169D4F5E1F1974DBFAFABF47F60C10A19D36AEF@orsmsx507.amr.corp.intel.com>

On Tue, Jan 13, 2009 at 6:17 PM, Brandeburg, Jesse
<jesse.brandeburg@intel.com> wrote:
> [drm] Initialized i915 1.6.0 20080730 on minor 0
>
> =======================================================
> [ INFO: possible circular locking dependency detected ]
> 2.6.29-rc1 #1
> -------------------------------------------------------

Same here, this happens every time I start X, still in -rc3.  I can test
any patches.  This is Fedora 10.

=======================================================
[ INFO: possible circular locking dependency detected ]
2.6.29-rc3 #45
-------------------------------------------------------
Xorg/3108 is trying to acquire lock:
 (&mm->mmap_sem){----}, at: [<c016a148>] might_fault+0x48/0x84

but task is already holding lock:
 (&dev->struct_mutex){--..}, at: [<f82ded8c>]
i915_gem_execbuffer+0x124/0xa48 [i915]

which lock already depends on the new lock.


the existing dependency chain (in reverse order) is:

-> #2 (&dev->struct_mutex){--..}:
       [<c0140197>] __lock_acquire+0xfb9/0x12d3
       [<f82bdd47>] drm_vm_open+0x22/0x32 [drm]
       [<f82bdd47>] drm_vm_open+0x22/0x32 [drm]
       [<c01404fa>] lock_acquire+0x49/0x61
       [<f82bdd47>] drm_vm_open+0x22/0x32 [drm]
       [<c031300b>] mutex_lock_nested+0xe6/0x27d
       [<f82bdd47>] drm_vm_open+0x22/0x32 [drm]
       [<f82bdd47>] drm_vm_open+0x22/0x32 [drm]
       [<f82bdd47>] drm_vm_open+0x22/0x32 [drm]
       [<c012117c>] dup_mm+0x26d/0x31c
       [<c0121bd1>] copy_process+0x983/0xfaf
       [<c012b314>] do_sigaction+0x6a/0x13d
       [<c0122315>] do_fork+0x118/0x2a6
       [<c012b489>] sys_rt_sigaction+0x66/0x79
       [<c0102e77>] sysenter_exit+0xf/0x18
       [<c010165a>] sys_clone+0x22/0x26
       [<c0102e45>] sysenter_do_call+0x12/0x35
       [<ffffffff>] 0xffffffff

-> #1 (&mm->mmap_sem/1){--..}:
       [<c0140197>] __lock_acquire+0xfb9/0x12d3
       [<c0120fba>] dup_mm+0xab/0x31c
       [<c0120fba>] dup_mm+0xab/0x31c
       [<c01404fa>] lock_acquire+0x49/0x61
       [<c0120fba>] dup_mm+0xab/0x31c
       [<c0135605>] down_write_nested+0x2b/0x45
       [<c0120fba>] dup_mm+0xab/0x31c
       [<c0120fba>] dup_mm+0xab/0x31c
       [<c0121b2c>] copy_process+0x8de/0xfaf
       [<c0121bd1>] copy_process+0x983/0xfaf
       [<c0122315>] do_fork+0x118/0x2a6
       [<c01f4eaf>] copy_to_user+0x29/0xf8
       [<c0102e77>] sysenter_exit+0xf/0x18
       [<c010165a>] sys_clone+0x22/0x26
       [<c0102e45>] sysenter_do_call+0x12/0x35
       [<ffffffff>] 0xffffffff

-> #0 (&mm->mmap_sem){----}:
       [<c013fec7>] __lock_acquire+0xce9/0x12d3
       [<c0314559>] _spin_unlock+0x25/0x3a
       [<c01404fa>] lock_acquire+0x49/0x61
       [<c016a148>] might_fault+0x48/0x84
       [<c016a165>] might_fault+0x65/0x84
       [<c016a148>] might_fault+0x48/0x84
       [<c01f4eaf>] copy_to_user+0x29/0xf8
       [<f82df5ec>] i915_gem_execbuffer+0x984/0xa48 [i915]
       [<c016a148>] might_fault+0x48/0x84
       [<f82b951a>] drm_ioctl+0x1a9/0x221 [drm]
       [<f82dec68>] i915_gem_execbuffer+0x0/0xa48 [i915]
       [<c0186102>] vfs_ioctl+0x49/0x5f
       [<c0186656>] do_vfs_ioctl+0x46c/0x4a7
       [<c03144c8>] _spin_unlock_irq+0x2b/0x40
       [<c0125cd9>] do_setitimer+0x15d/0x2af
       [<c0125e70>] sys_setitimer+0x45/0x6f
       [<c01866bd>] sys_ioctl+0x2c/0x42
       [<c0102e45>] sysenter_do_call+0x12/0x35
       [<ffffffff>] 0xffffffff

other info that might help us debug this:

1 lock held by Xorg/3108:
 #0:  (&dev->struct_mutex){--..}, at: [<f82ded8c>]
i915_gem_execbuffer+0x124/0xa48 [i915]

stack backtrace:
Pid: 3108, comm: Xorg Not tainted 2.6.29-rc3 #45
Call Trace:
 [<c013eeb5>] print_circular_bug_tail+0xa4/0xae
 [<c013fec7>] __lock_acquire+0xce9/0x12d3
 [<c0314559>] _spin_unlock+0x25/0x3a
 [<c01404fa>] lock_acquire+0x49/0x61
 [<c016a148>] might_fault+0x48/0x84
 [<c016a165>] might_fault+0x65/0x84
 [<c016a148>] might_fault+0x48/0x84
 [<c01f4eaf>] copy_to_user+0x29/0xf8
 [<f82df5ec>] i915_gem_execbuffer+0x984/0xa48 [i915]
 [<c016a148>] might_fault+0x48/0x84
 [<f82b951a>] drm_ioctl+0x1a9/0x221 [drm]
 [<f82dec68>] i915_gem_execbuffer+0x0/0xa48 [i915]
 [<c0186102>] vfs_ioctl+0x49/0x5f
 [<c0186656>] do_vfs_ioctl+0x46c/0x4a7
 [<c03144c8>] _spin_unlock_irq+0x2b/0x40
 [<c0125cd9>] do_setitimer+0x15d/0x2af
 [<c0125e70>] sys_setitimer+0x45/0x6f
 [<c01866bd>] sys_ioctl+0x2c/0x42
 [<c0102e45>] sysenter_do_call+0x12/0x35

-- 
Bob Copeland %% www.bobcopeland.com

      reply	other threads:[~2009-01-30 19:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-13 23:17 Brandeburg, Jesse
2009-01-30 19:42 ` Bob Copeland [this message]

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=b6c5339f0901301142x663cf336oeb623e73c185c71c@mail.gmail.com \
    --to=me@bobcopeland.com \
    --cc=airlied@linux.ie \
    --cc=arjan@linux.intel.com \
    --cc=dri-devel@lists.sourceforge.net \
    --cc=jesse.brandeburg@intel.com \
    --cc=keithp@keithp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /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

all inboxes | Powered by JetHome®