Bug 956362 - circular locking dependency
Summary: circular locking dependency
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11-drv-nouveau
Version: 19
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ben Skeggs
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-24 19:26 UTC by Jimmy Kloss
Modified: 2015-02-17 15:03 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-17 15:03:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
dmesg output (59.20 KB, text/plain)
2013-04-24 19:26 UTC, Jimmy Kloss
no flags Details

Description Jimmy Kloss 2013-04-24 19:26:43 UTC
Created attachment 739577 [details]
dmesg output

Description of problem:
When stoping X the Kernel complaints:
INFO: possible circular locking dependency detected

Version-Release number of selected component (if applicable):
Fedora 19 live image (nouveau testing day)
testday-2013-04-23-full-i686.iso


How reproducible:
https://fedoraproject.org/wiki/QA:Testcase_nouveau_restartx


Steps to Reproduce:
1. login (to gnome)
2. switch to VT
3. systemctl stop display-manager
  
Actual results:
Kernel complaints

Expected results:
No complaits

Additional info:
System remains usable. Starting the display manager again and login works.

Comment 1 Josh Boyer 2013-05-13 18:21:28 UTC
[   10.670697] nouveau  [     DRM] allocated 1024x768 fb: 0x9000, bo f3a6ab00
[   10.701502] fbcon: nouveaufb (fb0) is primary device

[   10.791849] ======================================================
[   10.791850] [ INFO: possible circular locking dependency detected ]
[   10.791855] 3.9.0-0.rc5.git1.301.fc19.i686 #1 Not tainted
[   10.791856] -------------------------------------------------------
[   10.791859] systemd-udevd/145 is trying to acquire lock:
[   10.791902]  (&(&dev->vblank_time_lock)->rlock){-.....}, at: [<f7cdbe66>] drm_handle_vblank+0x36/0x390 [drm]
[   10.791902] 
but task is already holding lock:
[   10.791984]  (&(&event->lock)->rlock#2){-.....}, at: [<f7e1bba5>] nouveau_event_trigger+0x25/0xb0 [nouveau]
[   10.791985] 
which lock already depends on the new lock.

[   10.791986] 
the existing dependency chain (in reverse order) is:
[   10.791990] 
-> #1 (&(&event->lock)->rlock#2){-.....}:
[   10.791999]        [<c04ab0bb>] lock_acquire+0x8b/0x1b0
[   10.792006]        [<c0a3241b>] _raw_spin_lock_irqsave+0x5b/0x90
[   10.792021]        [<f7e1bb2a>] nouveau_event_get+0x1a/0x70 [nouveau]
[   10.792021]        [<f7e8c62c>] nouveau_drm_vblank_enable+0x3c/0x50 [nouveau]
[   10.792021]        [<f7cdb4f5>] drm_vblank_get+0xb5/0x230 [drm]
[   10.792021]        [<f7cdb7d5>] drm_vblank_pre_modeset.part.2+0x35/0x50 [drm]
[   10.792021]        [<f7cdb807>] drm_vblank_pre_modeset+0x17/0x20 [drm]
[   10.792021]        [<f7eabb75>] nv_crtc_prepare+0x65/0x1b0 [nouveau]
[   10.792021]        [<f7c899aa>] drm_crtc_helper_set_mode+0x25a/0x470 [drm_kms_helper]
[   10.792021]        [<f7c8af09>] drm_crtc_helper_set_config+0x8f9/0xa10 [drm_kms_helper]
[   10.792021]        [<f7ce3abc>] drm_mode_set_config_internal+0x1c/0x40 [drm]
[   10.792021]        [<f7c88d0d>] drm_fb_helper_set_par+0x4d/0xb0 [drm_kms_helper]
[   10.792021]        [<c07257fa>] fbcon_init+0x48a/0x4e0
[   10.792021]        [<c079787e>] visual_init+0x9e/0x100
[   10.792021]        [<c0799dda>] do_bind_con_driver+0x10a/0x2c0
[   10.792021]        [<c079a411>] do_take_over_console+0x41/0x50
[   10.792021]        [<c07212af>] do_fbcon_takeover+0x5f/0xc0
[   10.792021]        [<c072622f>] fbcon_event_notify+0x59f/0x6b0
[   10.792021]        [<c0a36049>] notifier_call_chain+0x59/0x130
[   10.792021]        [<c046e811>] __blocking_notifier_call_chain+0x51/0xa0
[   10.792021]        [<c046e87f>] blocking_notifier_call_chain+0x1f/0x30
[   10.792021]        [<c0716866>] fb_notifier_call_chain+0x16/0x20
[   10.792021]        [<c0717b8d>] register_framebuffer+0x19d/0x2d0
[   10.792021]        [<f7c89044>] drm_fb_helper_initial_config+0x2d4/0x480 [drm_kms_helper]
[   10.792021]        [<f7e9acec>] nouveau_fbcon_init+0xcc/0x120 [nouveau]
[   10.792021]        [<f7e8ce00>] nouveau_drm_load+0x3f0/0x5d0 [nouveau]
[   10.792021]        [<f7cdfbf3>] drm_get_pci_dev+0x143/0x270 [drm]
[   10.792021]        [<f7e8d1a6>] nouveau_drm_probe+0x1c6/0x230 [nouveau]
[   10.792021]        [<c06fe1af>] pci_device_probe+0x6f/0xb0
[   10.792021]        [<c07c419f>] driver_probe_device+0x7f/0x360
[   10.792021]        [<c07c4539>] __driver_attach+0x79/0x80
[   10.792021]        [<c07c255f>] bus_for_each_dev+0x4f/0x80
[   10.792021]        [<c07c3c7e>] driver_attach+0x1e/0x20
[   10.792021]        [<c07c388f>] bus_add_driver+0x1cf/0x2a0
[   10.792021]        [<c07c4afa>] driver_register+0x6a/0x130
[   10.792021]        [<c06fd09a>] __pci_register_driver+0x4a/0x50
[   10.792021]        [<f7cdfe15>] drm_pci_init+0xf5/0x100 [drm]
[   10.792021]        [<f7c93048>] nouveau_drm_init+0x48/0x1000 [nouveau]
[   10.792021]        [<c04011fa>] do_one_initcall+0x10a/0x160
[   10.792021]        [<c04b78f2>] load_module+0x1bf2/0x25a0
[   10.792021]        [<c04b8325>] sys_init_module+0x85/0xe0
[   10.792021]        [<c0a39f4d>] sysenter_do_call+0x12/0x38
[   10.792021] 
-> #0 (&(&dev->vblank_time_lock)->rlock){-.....}:
[   10.792021]        [<c04aaa68>] __lock_acquire+0x15f8/0x1630
[   10.792021]        [<c04ab0bb>] lock_acquire+0x8b/0x1b0
[   10.792021]        [<c0a3241b>] _raw_spin_lock_irqsave+0x5b/0x90
[   10.792021]        [<f7cdbe66>] drm_handle_vblank+0x36/0x390 [drm]
[   10.792021]        [<f7e8ca03>] nouveau_drm_vblank_handler+0x13/0x20 [nouveau]
[   10.792021]        [<f7e1bbec>] nouveau_event_trigger+0x6c/0xb0 [nouveau]
[   10.792021]        [<f7e4294d>] nv04_disp_intr+0x6d/0x90 [nouveau]
[   10.792021]        [<f7e39c52>] nouveau_mc_intr+0x92/0xf0 [nouveau]
[   10.792021]        [<f7e8edd7>] nouveau_irq_handler+0x57/0x60 [nouveau]
[   10.792021]        [<c04de5bd>] handle_irq_event_percpu+0x3d/0x320
[   10.792021]        [<c04de8d1>] handle_irq_event+0x31/0x50
[   10.792021]        [<c04e124e>] handle_fasteoi_irq+0x4e/0xe0
[   10.792021] 
other info that might help us debug this:

[   10.792021]  Possible unsafe locking scenario:

[   10.792021]        CPU0                    CPU1
[   10.792021]        ----                    ----
[   10.792021]   lock(&(&event->lock)->rlock#2);
[   10.792021]                                lock(&(&dev->vblank_time_lock)->rlock);
[   10.792021]                                lock(&(&event->lock)->rlock#2);
[   10.792021]   lock(&(&dev->vblank_time_lock)->rlock);
[   10.792021] 
 *** DEADLOCK ***

[   10.792021] 10 locks held by systemd-udevd/145:
[   10.792021]  #0:  (&__lockdep_no_validate__){......}, at: [<c07c44f8>] __driver_attach+0x38/0x80
[   10.792021]  #1:  (&__lockdep_no_validate__){......}, at: [<c07c4504>] __driver_attach+0x44/0x80
[   10.792021]  #2:  (drm_global_mutex){+.+.+.}, at: [<f7cdfb53>] drm_get_pci_dev+0xa3/0x270 [drm]
[   10.792021]  #3:  (registration_lock){+.+.+.}, at: [<c0717a0c>] register_framebuffer+0x1c/0x2d0
[   10.792021]  #4:  (&fb_info->lock){+.+.+.}, at: [<c0716cd8>] lock_fb_info+0x18/0x40
[   10.792021]  #5:  (console_lock){+.+.+.}, at: [<c0717b80>] register_framebuffer+0x190/0x2d0
[   10.792021]  #6:  ((fb_notifier_list).rwsem){.+.+.+}, at: [<c046e7f7>] __blocking_notifier_call_chain+0x37/0xa0
[   10.792021]  #7:  (&dev->mode_config.mutex){+.+.+.}, at: [<f7ce27fa>] drm_modeset_lock_all+0x1a/0x60 [drm]
[   10.792021]  #8:  (&crtc->mutex){+.+.+.}, at: [<f7ce2822>] drm_modeset_lock_all+0x42/0x60 [drm]
[   10.792021]  #9:  (&(&event->lock)->rlock#2){-.....}, at: [<f7e1bba5>] nouveau_event_trigger+0x25/0xb0 [nouveau]
[   10.792021] 
stack backtrace:
[   10.792021] Pid: 145, comm: systemd-udevd Not tainted 3.9.0-0.rc5.git1.301.fc19.i686 #1
[   10.792021] Call Trace:
[   10.792021]  [<c0a2790a>] print_circular_bug+0x1b6/0x1c0
[   10.792021]  [<c04aaa68>] __lock_acquire+0x15f8/0x1630
[   10.792021]  [<c04a8dbf>] ? mark_lock+0xbf/0x240
[   10.792021]  [<c04ab0bb>] lock_acquire+0x8b/0x1b0
[   10.792021]  [<f7cdbe66>] ? drm_handle_vblank+0x36/0x390 [drm]
[   10.792021]  [<c0a3241b>] _raw_spin_lock_irqsave+0x5b/0x90
[   10.792021]  [<f7cdbe66>] ? drm_handle_vblank+0x36/0x390 [drm]
[   10.792021]  [<f7cdbe66>] drm_handle_vblank+0x36/0x390 [drm]
[   10.792021]  [<f7e1bba5>] ? nouveau_event_trigger+0x25/0xb0 [nouveau]
[   10.792021]  [<c0a32441>] ? _raw_spin_lock_irqsave+0x81/0x90
[   10.792021]  [<f7e8ca03>] nouveau_drm_vblank_handler+0x13/0x20 [nouveau]
[   10.792021]  [<f7e1bbec>] nouveau_event_trigger+0x6c/0xb0 [nouveau]
[   10.792021]  [<f7e4294d>] nv04_disp_intr+0x6d/0x90 [nouveau]
[   10.792021]  [<f7e39c52>] nouveau_mc_intr+0x92/0xf0 [nouveau]
[   10.792021]  [<c047df9f>] ? sched_clock_cpu+0xdf/0x150
[   10.792021]  [<f7e8edd7>] nouveau_irq_handler+0x57/0x60 [nouveau]
[   10.792021]  [<c04de5bd>] handle_irq_event_percpu+0x3d/0x320
[   10.792021]  [<c04de8d1>] handle_irq_event+0x31/0x50
[   10.792021]  [<c04e1200>] ? unmask_irq+0x30/0x30
[   10.792021]  [<c04e124e>] handle_fasteoi_irq+0x4e/0xe0
[   10.792021]  <IRQ>  [<c0404c5c>] ? do_IRQ+0x3c/0xb0
[   10.792021]  [<c04a910c>] ? trace_hardirqs_on_caller+0xec/0x170
[   10.792021]  [<c0a3a478>] ? common_interrupt+0x38/0x40
[   10.792021]  [<c0a31c93>] ? _raw_spin_unlock_irqrestore+0x33/0x70
[   10.792021]  [<f7cdb4a5>] ? drm_vblank_get+0x65/0x230 [drm]
[   10.792021]  [<f7cdb7d5>] ? drm_vblank_pre_modeset.part.2+0x35/0x50 [drm]
[   10.792021]  [<f7cdb807>] ? drm_vblank_pre_modeset+0x17/0x20 [drm]
[   10.792021]  [<f7eabb75>] ? nv_crtc_prepare+0x65/0x1b0 [nouveau]
[   10.792021]  [<f7c899aa>] ? drm_crtc_helper_set_mode+0x25a/0x470 [drm_kms_helper]
[   10.792021]  [<c047dd45>] ? sched_clock_local+0x45/0x140
[   10.792021]  [<f7c8af09>] ? drm_crtc_helper_set_config+0x8f9/0xa10 [drm_kms_helper]
[   10.792021]  [<f7ce3abc>] ? drm_mode_set_config_internal+0x1c/0x40 [drm]
[   10.792021]  [<f7c88d0d>] ? drm_fb_helper_set_par+0x4d/0xb0 [drm_kms_helper]
[   10.792021]  [<c07257fa>] ? fbcon_init+0x48a/0x4e0
[   10.792021]  [<c079787e>] ? visual_init+0x9e/0x100
[   10.792021]  [<c0799dda>] ? do_bind_con_driver+0x10a/0x2c0
[   10.792021]  [<c0797da3>] ? do_register_con_driver+0x63/0x150
[   10.792021]  [<c079a411>] ? do_take_over_console+0x41/0x50
[   10.792021]  [<c07212af>] ? do_fbcon_takeover+0x5f/0xc0
[   10.792021]  [<c072622f>] ? fbcon_event_notify+0x59f/0x6b0
[   10.792021]  [<c0a36049>] ? notifier_call_chain+0x59/0x130
[   10.792021]  [<c046e811>] ? __blocking_notifier_call_chain+0x51/0xa0
[   10.792021]  [<c046e87f>] ? blocking_notifier_call_chain+0x1f/0x30
[   10.792021]  [<c0716866>] ? fb_notifier_call_chain+0x16/0x20
[   10.792021]  [<c0717b8d>] ? register_framebuffer+0x19d/0x2d0
[   10.792021]  [<f7c89044>] ? drm_fb_helper_initial_config+0x2d4/0x480 [drm_kms_helper]
[   10.792021]  [<c06d4694>] ? delay_tsc+0x44/0xa0
[   10.792021]  [<f7ea07ed>] ? NVWriteVgaSeq+0xad/0xd0 [nouveau]
[   10.792021]  [<f7e9acec>] ? nouveau_fbcon_init+0xcc/0x120 [nouveau]
[   10.792021]  [<f7e8ce00>] ? nouveau_drm_load+0x3f0/0x5d0 [nouveau]
[   10.792021]  [<c07c1c47>] ? device_register+0x17/0x20
[   10.792021]  [<f7ce0f9b>] ? drm_sysfs_device_add+0x7b/0xb0 [drm]
[   10.792021]  [<f7cdfbf3>] ? drm_get_pci_dev+0x143/0x270 [drm]
[   10.792021]  [<c06fc496>] ? pcibios_set_master+0x36/0xb0
[   10.792021]  [<f7e8d1a6>] ? nouveau_drm_probe+0x1c6/0x230 [nouveau]
[   10.792021]  [<c06fe1af>] ? pci_device_probe+0x6f/0xb0
[   10.792021]  [<c07c419f>] ? driver_probe_device+0x7f/0x360
[   10.792021]  [<c07c4539>] ? __driver_attach+0x79/0x80
[   10.792021]  [<c07c44c0>] ? __device_attach+0x40/0x40
[   10.792021]  [<c07c255f>] ? bus_for_each_dev+0x4f/0x80
[   10.792021]  [<c07c3c7e>] ? driver_attach+0x1e/0x20
[   10.792021]  [<c07c44c0>] ? __device_attach+0x40/0x40
[   10.792021]  [<c07c388f>] ? bus_add_driver+0x1cf/0x2a0
[   10.792021]  [<c06fdd80>] ? pci_pm_suspend+0x120/0x120
[   10.792021]  [<c06fdd80>] ? pci_pm_suspend+0x120/0x120
[   10.792021]  [<c07c4afa>] ? driver_register+0x6a/0x130
[   10.792021]  [<c06dc00c>] ? __raw_spin_lock_init+0x2c/0x50
[   10.792021]  [<c06fd09a>] ? __pci_register_driver+0x4a/0x50
[   10.792021]  [<f7cdfe15>] ? drm_pci_init+0xf5/0x100 [drm]
[   10.792021]  [<f7c93000>] ? 0xf7c92fff
[   10.792021]  [<f7c93048>] ? nouveau_drm_init+0x48/0x1000 [nouveau]
[   10.792021]  [<c04011fa>] ? do_one_initcall+0x10a/0x160
[   10.792021]  [<c0a27f18>] ? set_section_ro_nx+0x54/0x59
[   10.792021]  [<c04b78f2>] ? load_module+0x1bf2/0x25a0
[   10.792021]  [<c04b8325>] ? sys_init_module+0x85/0xe0
[   10.792021]  [<c046d13b>] ? up_write+0x1b/0x30
[   10.792021]  [<c053967b>] ? vm_mmap_pgoff+0x7b/0xa0
[   10.792021]  [<c0a39f4d>] ? sysenter_do_call+0x12/0x38
[   10.812411] Console: switching to colour frame buffer device 128x48
[   10.936240] nouveau 0000:01:06.0: fb0: nouveaufb frame buffer device
[   10.936243] nouveau 0000:01:06.0: registered panic notifier

Comment 2 Roger 2013-06-15 04:16:55 UTC
I get this too on x86 hardware.

ie. Dell Inspiron 8100 laptop, an old Intel 440BX 2x750P3 with recent AGP NVidia card.

Comment 3 Fedora End Of Life 2015-01-09 17:57:48 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2015-02-17 15:03:42 UTC
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.