From: Stephen Hemminger Subject: lockdep splat with current 3.3 kernel in Date: Thu, 19 Jan 2012 15:32:23 -0800 Message-ID: <20120119153223.23685335@nehalam.linuxnetplumber.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail.vyatta.com (mail.vyatta.com [76.74.103.46]) by gabe.freedesktop.org (Postfix) with ESMTP id AD9F89E807 for ; Thu, 19 Jan 2012 15:38:48 -0800 (PST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: David Airlie Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org This showed when just moving around and doing normal activity. [17580.856410] skge 0000:09:00.0: eth3: disabling interface [18640.814641] [18640.814646] ====================================================== [18640.814649] [ INFO: possible circular locking dependency detected ] [18640.814654] 3.2.0-net+ #7 Not tainted [18640.814656] ------------------------------------------------------- [18640.814659] Xorg/2113 is trying to acquire lock: [18640.814662] (&rdev->ib_pool.mutex){+.+.+.}, at: [] radeon_ib_get+0x6c/0x1f9 [radeon] [18640.814700] [18640.814701] but task is already holding lock: [18640.814704] (&rdev->r600_blit.mutex){+.+.+.}, at: [] r600_copy_blit+0x38/0xa8 [radeon] [18640.814736] [18640.814737] which lock already depends on the new lock. [18640.814738] [18640.814741] [18640.814742] the existing dependency chain (in reverse order) is: [18640.814745] [18640.814746] -> #2 (&rdev->r600_blit.mutex){+.+.+.}: [18640.814753] [] lock_acquire+0xbf/0xfe [18640.814760] [] __mutex_lock_common+0x4c/0x360 [18640.814767] [] mutex_lock_nested+0x2f/0x36 [18640.814772] [] r600_copy_blit+0x38/0xa8 [radeon] [18640.814801] [] radeon_move_blit+0x230/0x275 [radeon] [18640.814827] [] radeon_bo_move+0x105/0x12c [radeon] [18640.814850] [] ttm_bo_handle_move_mem+0x1b6/0x2bd [ttm] [18640.814860] [] ttm_bo_evict+0x2be/0x307 [ttm] [18640.814869] [] ttm_mem_evict_first+0x170/0x19c [ttm] [18640.814879] [] ttm_bo_mem_space+0x284/0x2d4 [ttm] [18640.814888] [] ttm_bo_move_buffer+0xc3/0x119 [ttm] [18640.814898] [] ttm_bo_validate+0xc2/0x100 [ttm] [18640.814907] [] ttm_bo_init+0x341/0x37a [ttm] [18640.814917] [] radeon_bo_create+0x1d9/0x262 [radeon] [18640.814940] [] radeon_gem_object_create+0x56/0xe6 [radeon] [18640.814969] [] radeon_gem_create_ioctl+0x4b/0x81 [radeon] [18640.814997] [] drm_ioctl+0x2bf/0x38b [drm] [18640.815010] [] do_vfs_ioctl+0x46e/0x4af [18640.815017] [] sys_ioctl+0x56/0x7a [18640.815022] [] system_call_fastpath+0x16/0x1b [18640.815028] [18640.815029] -> #1 (&rdev->vram_mutex){+.+.+.}: [18640.815036] [] lock_acquire+0xbf/0xfe [18640.815041] [] __mutex_lock_common+0x4c/0x360 [18640.815047] [] mutex_lock_nested+0x2f/0x36 [18640.815052] [] radeon_bo_create+0x194/0x262 [radeon] [18640.815077] [] radeon_sa_bo_manager_init+0x42/0x64 [radeon] [18640.815106] [] radeon_ib_pool_init+0x55/0x115 [radeon] [18640.815134] [] rv770_init+0x186/0x227 [radeon] [18640.815162] [] radeon_device_init+0x4df/0x571 [radeon] [18640.815180] [] radeon_driver_load_kms+0x9c/0x101 [radeon] [18640.815200] [] drm_get_pci_dev+0x164/0x269 [drm] [18640.815216] [] radeon_pci_probe+0x9d/0xa5 [radeon] [18640.815239] [] local_pci_probe+0x44/0x75 [18640.815246] [] pci_device_probe+0xd0/0xff [18640.815251] [] driver_probe_device+0xb5/0x150 [18640.815257] [] __driver_attach+0x5e/0x81 [18640.815263] [] bus_for_each_dev+0x5c/0x88 [18640.815269] [] driver_attach+0x1e/0x20 [18640.815274] [] bus_add_driver+0xb0/0x206 [18640.815280] [] driver_register+0x98/0x105 [18640.815285] [] __pci_register_driver+0x66/0xd2 [18640.815290] [] drm_pci_init+0x8a/0xef [drm] [18640.815307] [] loop_unregister_transfer+0x20/0x48 [loop] [18640.815314] [] do_one_initcall+0x7f/0x13a [18640.815321] [] sys_init_module+0x114/0x267 [18640.815326] [] system_call_fastpath+0x16/0x1b [18640.815332] [18640.815332] -> #0 (&rdev->ib_pool.mutex){+.+.+.}: [18640.815339] [] __lock_acquire+0xa29/0xd06 [18640.815344] [] lock_acquire+0xbf/0xfe [18640.815349] [] __mutex_lock_common+0x4c/0x360 [18640.815355] [] mutex_lock_nested+0x2f/0x36 [18640.815360] [] radeon_ib_get+0x6c/0x1f9 [radeon] [18640.815389] [] r600_blit_prepare_copy+0x61/0xd4 [radeon] [18640.815418] [] r600_copy_blit+0x4e/0xa8 [radeon] [18640.815446] [] radeon_move_blit+0x230/0x275 [radeon] [18640.815469] [] radeon_bo_move+0x105/0x12c [radeon] [18640.815492] [] ttm_bo_handle_move_mem+0x1b6/0x2bd [ttm] [18640.815502] [] ttm_bo_evict+0x2be/0x307 [ttm] [18640.815511] [] ttm_mem_evict_first+0x170/0x19c [ttm] [18640.815520] [] ttm_bo_mem_space+0x284/0x2d4 [ttm] [18640.815530] [] ttm_bo_move_buffer+0xc3/0x119 [ttm] [18640.815539] [] ttm_bo_validate+0xc2/0x100 [ttm] [18640.815549] [] ttm_bo_init+0x341/0x37a [ttm] [18640.815558] [] radeon_bo_create+0x1d9/0x262 [radeon] [18640.815582] [] radeon_gem_object_create+0x56/0xe6 [radeon] [18640.815610] [] radeon_gem_create_ioctl+0x4b/0x81 [radeon] [18640.815638] [] drm_ioctl+0x2bf/0x38b [drm] [18640.815650] [] do_vfs_ioctl+0x46e/0x4af [18640.815656] [] sys_ioctl+0x56/0x7a [18640.815661] [] system_call_fastpath+0x16/0x1b [18640.815667] [18640.815667] other info that might help us debug this: [18640.815669] [18640.815671] Chain exists of: [18640.815672] &rdev->ib_pool.mutex --> &rdev->vram_mutex --> &rdev->r600_blit.mutex [18640.815680] [18640.815682] Possible unsafe locking scenario: [18640.815684] [18640.815686] CPU0 CPU1 [18640.815688] ---- ---- [18640.815690] lock(&rdev->r600_blit.mutex); [18640.815695] lock(&rdev->vram_mutex); [18640.815700] lock(&rdev->r600_blit.mutex); [18640.815705] lock(&rdev->ib_pool.mutex); [18640.815709] [18640.815710] *** DEADLOCK *** [18640.815711] [18640.815714] 2 locks held by Xorg/2113: [18640.815717] #0: (&rdev->vram_mutex){+.+.+.}, at: [] radeon_bo_create+0x194/0x262 [radeon] [18640.815747] #1: (&rdev->r600_blit.mutex){+.+.+.}, at: [] r600_copy_blit+0x38/0xa8 [radeon] [18640.815781] [18640.815782] stack backtrace: [18640.815786] Pid: 2113, comm: Xorg Not tainted 3.2.0-net+ #7 [18640.815789] Call Trace: [18640.815795] [] print_circular_bug+0x1f8/0x209 [18640.815800] [] __lock_acquire+0xa29/0xd06 [18640.815807] [] ? save_stack_trace+0x2c/0x49 [18640.815814] [] ? save_trace+0x3d/0xa7 [18640.815843] [] ? radeon_ib_get+0x6c/0x1f9 [radeon] [18640.815848] [] lock_acquire+0xbf/0xfe [18640.815876] [] ? radeon_ib_get+0x6c/0x1f9 [radeon] [18640.815882] [] __mutex_lock_common+0x4c/0x360 [18640.815910] [] ? radeon_ib_get+0x6c/0x1f9 [radeon] [18640.815915] [] ? mark_held_locks+0x6d/0x95 [18640.815921] [] ? _raw_write_unlock_irqrestore+0x45/0x52 [18640.815951] [] ? radeon_ib_get+0x6c/0x1f9 [radeon] [18640.815956] [] ? trace_hardirqs_on_caller+0x12d/0x164 [18640.815961] [] mutex_lock_nested+0x2f/0x36 [18640.815991] [] radeon_ib_get+0x6c/0x1f9 [radeon] [18640.816020] [] r600_blit_prepare_copy+0x61/0xd4 [radeon] [18640.816049] [] r600_copy_blit+0x4e/0xa8 [radeon] [18640.816073] [] radeon_move_blit+0x230/0x275 [radeon] [18640.816096] [] radeon_bo_move+0x105/0x12c [radeon] [18640.816107] [] ttm_bo_handle_move_mem+0x1b6/0x2bd [ttm] [18640.816117] [] ttm_bo_evict+0x2be/0x307 [ttm] [18640.816127] [] ttm_mem_evict_first+0x170/0x19c [ttm] [18640.816137] [] ttm_bo_mem_space+0x284/0x2d4 [ttm] [18640.816142] [] ? lock_release+0x166/0x189 [18640.816152] [] ttm_bo_move_buffer+0xc3/0x119 [ttm] [18640.816169] [] ? kzalloc.constprop.6+0x2d/0x2f [drm] [18640.816180] [] ttm_bo_validate+0xc2/0x100 [ttm] [18640.816189] [] ttm_bo_init+0x341/0x37a [ttm] [18640.816214] [] radeon_bo_create+0x1d9/0x262 [radeon] [18640.816237] [] ? radeon_bo_clear_va+0xb3/0xb3 [radeon] [18640.816261] [] ? radeon_ttm_fault+0x59/0x67 [radeon] [18640.816289] [] radeon_gem_object_create+0x56/0xe6 [radeon] [18640.816318] [] radeon_gem_create_ioctl+0x4b/0x81 [radeon] [18640.816324] [] ? might_fault+0x8e/0x95 [18640.816337] [] drm_ioctl+0x2bf/0x38b [drm] [18640.816365] [] ? radeon_gem_pwrite_ioctl+0x28/0x28 [radeon] [18640.816372] [] ? up_read+0x20/0x37 [18640.816377] [] ? do_page_fault+0x319/0x38b [18640.816383] [] do_vfs_ioctl+0x46e/0x4af [18640.816389] [] ? time_hardirqs_off+0x15/0x2a [18640.816394] [] ? error_sti+0x5/0x6 [18640.816399] [] ? trace_hardirqs_off_caller+0x3f/0x9c [18640.816404] [] ? retint_swapgs+0x13/0x1b [18640.816410] [] sys_ioctl+0x56/0x7a [18640.816415] [] system_call_fastpath+0x16/0x1b [20583.954616] sky2 0000:04:00.0: eth1: remove debugfs # lspci -vv -s 02:00.0 02:00.0 VGA compatible controller: ATI Technologies Inc RV710 [Radeon HD 4350] (prog-if 00 [VGA controller]) Subsystem: PC Partner Limited Device 0e13 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- Kernel driver in use: radeon