From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: BUG dump from QIB Date: Fri, 22 Oct 2010 14:40:41 -0600 Message-ID: <20101022204041.GA30241@obsidianresearch.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Ralph Campbell , RDMA list List-Id: linux-rdma@vger.kernel.org Hi Ralph, It doesn't look like smp_processor_id is callable the way QIB does, I get kernel BUGS: This is a stock upstream with CONFIG_PREEMPT/DEBUG_PREEMPT $ uname -a Linux ib6 2.6.35.7 #17 SMP PREEMPT Thu Oct 7 15:38:53 MDT 2010 x86_64 GNU/Linux [ 36.769466] BUG: using smp_processor_id() in preemptible [00000000] code: insmod/5858 [ 36.769500] caller is qib_create_qp+0x56c/0x745 [ib_qib] [ 36.769505] Pid: 5858, comm: insmod Not tainted 2.6.35.7 #17 [ 36.769508] Call Trace: [ 36.769520] [] debug_smp_processor_id+0xc2/0xdc [ 36.769538] [] qib_create_qp+0x56c/0x745 [ib_qib] [ 36.769545] [] ? sub_preempt_count+0x92/0xa5 [ 36.769550] [] ? get_parent_ip+0x11/0x41 [ 36.769554] [] ? get_parent_ip+0x11/0x41 [ 36.769573] [] ib_create_qp+0x18/0x8e [ib_core] [ 36.769582] [] create_mad_qp+0x7d/0xce [ib_mad] [ 36.769589] [] ? qp_event_handler+0x0/0x1e [ib_mad] [ 36.769596] [] ib_mad_init_device+0x2cf/0x6ad [ib_mad] [ 36.769603] [] ? _raw_spin_unlock_irqrestore+0x2c/0x37 [ 36.769613] [] ib_register_device+0x35d/0x401 [ib_core] [ 36.769632] [] ? qib_create_port_files+0x0/0x265 [ib_qib] [ 36.769654] [] qib_register_ib_device+0x76a/0x8a8 [ib_qib] [ 36.769673] [] qib_init_one+0xdd/0x4f7 [ib_qib] [ 36.769680] [] local_pci_probe+0x12/0x16 [ 36.769685] [] pci_device_probe+0x5f/0x89 [ 36.769690] [] ? driver_sysfs_add+0x4c/0x72 [ 36.769695] [] driver_probe_device+0xa3/0x151 [ 36.769699] [] __driver_attach+0x58/0x7b [ 36.769704] [] ? __driver_attach+0x0/0x7b [ 36.769708] [] bus_for_each_dev+0x4e/0x85 [ 36.769712] [] driver_attach+0x1c/0x1e [ 36.769716] [] bus_add_driver+0xb8/0x20d [ 36.769721] [] driver_register+0xb3/0x121 [ 36.769736] [] ? qlogic_ib_init+0x0/0x126 [ib_qib] [ 36.769740] [] __pci_register_driver+0x51/0xbc [ 36.769754] [] ? qlogic_ib_init+0x0/0x126 [ib_qib] [ 36.769769] [] qlogic_ib_init+0xc3/0x126 [ib_qib] [ 36.769775] [] do_one_initcall+0x5a/0x14a [ 36.769781] [] sys_init_module+0x9a/0x1d8 Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html