From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751076AbWFBB3U (ORCPT ); Thu, 1 Jun 2006 21:29:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751079AbWFBB3U (ORCPT ); Thu, 1 Jun 2006 21:29:20 -0400 Received: from nz-out-0102.google.com ([64.233.162.194]:32958 "EHLO nz-out-0102.google.com") by vger.kernel.org with ESMTP id S1751076AbWFBB3T (ORCPT ); Thu, 1 Jun 2006 21:29:19 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=YVAa17gX2/PsjDdJxhf83lBbCOLYtv/W3FEfJZIDFFK095Q6MviCxz8JLIHEm9oeljiZqt+gveRfwJfT2YQvODs8NxLQXRYFinyk+FAo6zmjXj5G0Zm+Il9fkciNDiukwoBdn6MU0eN19e31LvmGH2mlwpL3HobvCI4mKg0ArjQ= Message-ID: <20f65d530606011829n2ee1d76fg9d2c7bbc02a6a0aa@mail.gmail.com> Date: Fri, 2 Jun 2006 13:29:18 +1200 From: "Keith Chew" To: linux-kernel@vger.kernel.org Subject: IRQ sharing: BUG: spinlock lockup on CPU#0 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi I recently started a thread called "IO APIC IRQ assignment" to find a way to separate the IRQs assignments for the USB and BT878 chip. In the meantime, our workaround was to tweak the PCI latency to make the 2 devices work nicely on the same IRQ, but last night, 1 of the 10 PCs under test crashed. I apologise in advance for posting the same console stack trace again, but I figured this problem needed a new topic as it is not related to IO APIC IRQ Assignment topic. If anyone can guide us to where to look for the problem, it will be much appreciated. We have 5 x PCs running 2.6.14.2 kernel, and 5 x PCs running 2.6.16.18. This crash happened on the 2.6.14.2 kernel. =================================== Unable to handle kernel paging request at virtual address 23232327 printing eip: c014b569 *pde = 00000000 Oops: 0002 [#1] Modules linked in: ipt_LOG ipt_state iptable_filter ip_tables ip_conntrack_tf ip_conntrack_proto_sctp ip_conntrack_irc ip_conntrack_ftp ip_conntrack_amanda _conntrack rt2570 zd1211 autofs4 video button battery ac uhci_hcd bt878 tuner audio bttv video_buf i2c_algo_bit v4l2_common btcx_risc tveeprom videodev i2c 01 i2c_core snd_intel8x0 snd_ac97_codec snd_ac97_bus snd_pcm_oss snd_mixer_os nd_pcm snd_timer snd soundcore snd_page_alloc e100 mii dm_snapshot dm_zero dm rror ext3 jbd dm_mod CPU: 0 EIP: 0060:[] Not tainted VLI EFLAGS: 00010046 (2.6.14.2) EIP is at activate_page+0x59/0xd0 eax: 23232323 ebx: c1400160 ecx: c1400178 edx: 23232323 esi: c03b7300 edi: c03b73e0 ebp: 00000001 esp: d3769ae4 ds: 007b es: 007b ss: 0068 Process mencoder (pid: 23017, threadinfo=d3768000 task=d615d030) Stack: d3769b7c 00000000 c1400160 00000040 c1000000 c014b613 c1400160 c0150b1 c7fe9d68 0000000f 00000001 b771d000 00000001 00000000 00000001 e5d26ee f724124c f7241200 c0150cbe f7241200 b775a000 00000000 00000001 0000000 Call Trace: [] mark_page_accessed+0x33/0x40 [] __follow_page+0x153/0x160 [] get_user_pages+0x11e/0x380 [] videobuf_dma_init_user+0x118/0x190 [video_buf] [] videobuf_iolock+0x77/0x110 [video_buf] [] bttv_prepare_buffer+0x179/0x1c0 [bttv] [] bttv_do_ioctl+0xbdc/0x1850 [bttv] [] _read_unlock+0xb/0x10 [] zd1205_xmit_frame+0x94/0x4a0 [zd1211] [] _spin_lock+0xb/0x10 [] qdisc_restart+0x23/0x200 [] _spin_unlock+0xb/0x10 [] dev_queue_xmit+0x2a2/0x330 [] tcp_in_window+0x303/0x510 [ip_conntrack] [] _spin_lock_irqsave+0xf/0x20 [] __mod_timer+0xa8/0xd0 [] _write_unlock_bh+0xb/0x20 [] __ip_ct_refresh_acct+0x73/0xc0 [ip_conntrack] [] tcp_packet+0x1a3/0x580 [ip_conntrack] [] __alloc_skb+0x61/0x150 [] dma_pool_alloc+0x98/0x180 [] activate_task+0x67/0x80 [] try_to_wake_up+0x88/0xd0 [] wake_up_process+0x1d/0x20 [] _spin_unlock_irq+0xb/0x10 [] uhci_alloc_qh+0x23/0x60 [uhci_hcd] [] activate_task+0x67/0x80 [] try_to_wake_up+0x88/0xd0 [] autoremove_wake_function+0x2f/0x60 [] __wake_up_common+0x41/0x80 [] copy_from_user+0x66/0xa0 [] video_usercopy+0xf7/0x180 [videodev] [] try_to_wake_up+0x88/0xd0 [] __wake_up_common+0x41/0x80 [] __wake_up+0x3e/0x60 [] bttv_ioctl+0x3f/0x70 [bttv] [] bttv_do_ioctl+0x0/0x1850 [bttv] [] do_ioctl+0x58/0x80 [] vfs_ioctl+0x65/0x1f0 [] copy_to_user+0x66/0x80 [] sys_ioctl+0x88/0xa0 [] sysenter_past_esp+0x54/0x75 Code: 74 06 8b 03 a8 40 74 1a 89 f8 8b 5c 24 08 8b 74 24 0c 8b 7c 24 10 83 c4 e9 b4 1d 21 00 8d 74 26 00 8d 4b 18 8b 43 18 8b 51 04 <89> 50 04 89 02 c7 41 00 02 20 00 c7 43 18 00 01 10 00 ff 8e <6>bttv2: timeout: drop=79382 irq=27663181/27663182, risc=063fd218, bits: bttv1: timeout: drop=79789 irq=27657488/37569186, risc=11efc8c0, bits: BUG: spinlock cpu recursion on CPU#0, mencoder/23014 lock: f724124c, .magic: dead4ead, .owner: mencoder/23017, .owner_cpu: 0 [] _raw_spin_lock+0x83/0xa0 [] _spin_lock+0xb/0x10 [] __handle_mm_fault+0x72/0x240 [] notifier_call_chain+0x25/0x50 [] do_page_fault+0x1e3/0x600 [] do_page_fault+0x0/0x600 [] error_code+0x4f/0x54 BUG: soft lockup detected on CPU#0! Pid: 23014, comm: mencoder EIP: 0060:[] CPU: 0 EIP is at __spin_lock_debug+0x42/0xe0 EFLAGS: 00000212 Not tainted (2.6.14.2) EAX: 6b541ad0 EBX: 00000000 ECX: 3af5ead5 EDX: 00000000 ESI: 001b79e2 EDI: f724124c EBP: e59d8000 DS: 007b ES: 007b CR0: 80050033 CR2: b6213000 CR3: 1791d000 CR4: 000006d0 [] show_trace+0x3b/0x90 [] error_code+0x4f/0x54 [] _raw_spin_lock+0x6c/0xa0 [] _spin_lock+0xb/0x10 [] __handle_mm_fault+0x72/0x240 [] notifier_call_chain+0x25/0x50 [] do_page_fault+0x1e3/0x600 [] do_page_fault+0x0/0x600 [] error_code+0x4f/0x54 BUG: spinlock lockup on CPU#0, mencoder/23014, f724124c [] __spin_lock_debug+0xac/0xe0 [] _raw_spin_lock+0x6c/0xa0 [] _spin_lock+0xb/0x10 [] __handle_mm_fault+0x72/0x240 [] notifier_call_chain+0x25/0x50 [] do_page_fault+0x1e3/0x600 [] do_page_fault+0x0/0x600 [] error_code+0x4f/0x54 =================================== Regards Keith