From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Caspar Smit" Subject: Re: [PATCH 6/7]MVSAS: Enhanced hot plug handling Date: Thu, 17 Dec 2009 14:44:43 +0100 (CET) Message-ID: <26320.87.210.74.220.1261057483.squirrel@ketsers.dhs.org> Mime-Version: 1.0 Content-Type: multipart/mixed;boundary="----=_20091217144443_67798" Return-path: Received: from 80-69-81-65.colo.transip.net ([80.69.81.65]:55828 "EHLO ns1.emsolutions.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935615AbZLQNoo (ORCPT ); Thu, 17 Dec 2009 08:44:44 -0500 Received: from ns1.emsolutions.nl (www-data@localhost.localdomain [127.0.0.1]) by ns1.emsolutions.nl (8.13.8/8.13.8/Debian-3) with ESMTP id nBHDihDg008561 for ; Thu, 17 Dec 2009 14:44:43 +0100 Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: linux-scsi@vger.kernel.org ------=_20091217144443_67798 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Hi Andy, After apllying this patch (and 1-5) to the 2.6.32 vanilla kernel I still get lots and lots of kernel panics when hotplugging a disk. ps. And I posted a mvsas related bug that causes an instant kernel panic at boot when using 3 Marvell 6480 controllers in one machine. Any news on that? Kind regards, Caspar Smit --- [  222.575814] BUG: unable to handle kernel NULL pointer dereference at 0000000000000118 [  222.575999] IP: [] mvs_int_port+0x1d3/0x4ef [mvsas] [  222.576001] PGD 7f0ea067 PUD 0 [  222.576001] Oops: 0000 [#1] SMP [  222.576001] last sysfs file: /sys/devices/platform/coretemp.3/temp1_input [  222.576001] CPU 3 [  222.576001] Modules linked in: iscsi_trgt crc32c nfsd lockd nfs_acl auth_rpcgss sunrpc exportfs ib_iser rdma_cm ib_cm iw_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi bonding coretemp w83627hf w83793 hwmon_vid loop netconsole configfs rng_core i5k_amb evdev snd_pcm snd_timer snd soundcore snd_page_alloc i2c_i801 i2c_core pcspkr uhci_hcd ehci_hcd ioatdma i5000_edac edac_core floppy parport_pc parport container button processor shpchp pci_hotplug dm_mirror dm_region_hash dm_log dm_snapshot dm_mod raid456 async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx raid10 md_mod thermal fan thermal_sys mvsas libsas scsi_transport_sas sata_mv e1000e igb dca ext3 jbd mbcache sd_mod crc_t10dif ata_piix libata scsi_mod [  222.576001] Pid: 0, comm: swapper Not tainted 2.6.32 #1 X7DB8 [  222.576001] RIP: 0010:[]  [] mvs_int_port+0x1d3/0x4ef [mvsas] [  222.576001] RSP: 0018:ffff880001983e58  EFLAGS: 00010246 [  222.576001] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff88007f095e98 [  222.576001] RDX: 0000000000000873 RSI: ffffffffa0141ccd RDI: ffffffffa0141fab [  222.576001] RBP: ffff88007d840000 R08: 0000000000000000 R09: ffffffff810531c2 [  222.576001] R10: 0000000000000092 R11: 0000000000000400 R12: ffff88007d8408b8 [  222.576001] R13: 0000000000000003 R14: 0000000000000001 R15: 0000000000000003 [  222.576001] FS:  0000000000000000(0000) GS:ffff880001980000(0000) knlGS:0000000000000000 [  222.576001] CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b [  222.576001] CR2: 0000000000000118 CR3: 000000007eba3000 CR4: 00000000000406e0 [  222.576001] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [  222.576001] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [  222.576001] Process swapper (pid: 0, threadinfo ffff88007f084000, task ffff88007f066780) [  222.576001] Stack: [  222.576001]  ffffffff8105983c 0000000000000003 ffff88007d840000 0000000000000800 [  222.576001] <0> ffffc90001b20150 0000000000000001 0000000000000000 ffffffffa013e863 [  222.576001] <0> ffff88007dcf2f18 ffff88007d840000 0000000000000001 ffff88007d840008 [  222.576001] Call Trace: [  222.576001]  [  222.576001]  [] ? run_timer_softirq+0x4c/0x268 [  222.576001]  [] ? mvs_int_full+0x42/0x88 [mvsas] [  222.576001]  [] ? mvs_64xx_isr+0x31/0x40 [mvsas] [  222.576001]  [] ? mvs_interrupt+0x61/0x78 [mvsas] [  222.576001]  [] ? handle_IRQ_event+0x58/0x126 [  222.576001]  [] ? handle_fasteoi_irq+0x7d/0xb5 [  222.576001]  [] ? handle_irq+0x17/0x1d [  222.576001]  [] ? do_IRQ+0x57/0xb6 [  222.576001]  [] ? ret_from_intr+0x0/0x11 [  222.576001]  [  222.576001]  [] ? mwait_idle+0x72/0x7d [  222.576001]  [] ? mwait_idle+0x22/0x7d [  222.576001]  [] ? cpu_idle+0x59/0x91 [  222.576001] Code: a0 00 00 00 ba 73 08 00 00 48 c7 c6 cd 1c 14 a0 48 c7 c7 ab 1f 14 a0 44 8b 40 04 49 8b 84 24 b8 02 00 00 44 0f af 85 40 24 00 00 <8b> 88 18 01 00 00 31 c0 47 8d 44 05 00 e8 fc 56 1b e1 41 83 e6 [  222.576001] RIP  [] mvs_int_port+0x1d3/0x4ef [mvsas] [  222.576001]  RSP [  222.576001] CR2: 0000000000000118 [  222.593420] ---[ end trace f9b64cadb09cc87c ]--- [  222.593489] Kernel panic - not syncing: Fatal exception in interrupt [  222.593561] Pid: 0, comm: swapper Tainted: G      D    2.6.32 #1 [  222.593631] Call Trace: [  222.593694]    [] ? panic+0x86/0x141 [  222.593820]  [] ? apic_timer_interrupt+0x13/0x20 [  222.593896]  [] ? oops_end+0x64/0xb4 [  222.593968]  [] ? oops_end+0xa7/0xb4 ------=_20091217144443_67798 Content-Type: text/x-log; name="mvsas-kernel-panic-on-hotplug.log" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="mvsas-kernel-panic-on-hotplug.log" [ 222.575814] BUG: unable to handle kernel NULL pointer dereference at 0000000000000118 [ 222.575999] IP: [] mvs_int_port+0x1d3/0x4ef [mvsas] [ 222.576001] PGD 7f0ea067 PUD 0 [ 222.576001] Oops: 0000 [#1] SMP [ 222.576001] last sysfs file: /sys/devices/platform/coretemp.3/temp1_input [ 222.576001] CPU 3 [ 222.576001] Modules linked in: iscsi_trgt crc32c nfsd lockd nfs_acl auth_rpcgss sunrpc exportfs ib_iser rdma_cm ib_cm iw_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi bonding coretemp w83627hf w83793 hwmon_vid loop netconsole configfs rng_core i5k_amb evdev snd_pcm snd_timer snd soundcore snd_page_alloc i2c_i801 i2c_core pcspkr uhci_hcd ehci_hcd ioatdma i5000_edac edac_core floppy parport_pc parport container button processor shpchp pci_hotplug dm_mirror dm_region_hash dm_log dm_snapshot dm_mod raid456 async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx raid10 md_mod thermal fan thermal_sys mvsas libsas scsi_transport_sas sata_mv e1000e igb dca ext3 jbd mbcache sd_mod crc_t10dif ata_piix libata scsi_mod [ 222.576001] Pid: 0, comm: swapper Not tainted 2.6.32 #1 X7DB8 [ 222.576001] RIP: 0010:[] [] mvs_int_port+0x1d3/0x4ef [mvsas] [ 222.576001] RSP: 0018:ffff880001983e58 EFLAGS: 00010246 [ 222.576001] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff88007f095e98 [ 222.576001] RDX: 0000000000000873 RSI: ffffffffa0141ccd RDI: ffffffffa0141fab [ 222.576001] RBP: ffff88007d840000 R08: 0000000000000000 R09: ffffffff810531c2 [ 222.576001] R10: 0000000000000092 R11: 0000000000000400 R12: ffff88007d8408b8 [ 222.576001] R13: 0000000000000003 R14: 0000000000000001 R15: 0000000000000003 [ 222.576001] FS: 0000000000000000(0000) GS:ffff880001980000(0000) knlGS:0000000000000000 [ 222.576001] CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b [ 222.576001] CR2: 0000000000000118 CR3: 000000007eba3000 CR4: 00000000000406e0 [ 222.576001] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 222.576001] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [ 222.576001] Process swapper (pid: 0, threadinfo ffff88007f084000, task ffff88007f066780) [ 222.576001] Stack: [ 222.576001] ffffffff8105983c 0000000000000003 ffff88007d840000 0000000000000800 [ 222.576001] <0> ffffc90001b20150 0000000000000001 0000000000000000 ffffffffa013e863 [ 222.576001] <0> ffff88007dcf2f18 ffff88007d840000 0000000000000001 ffff88007d840008 [ 222.576001] Call Trace: [ 222.576001] [ 222.576001] [] ? run_timer_softirq+0x4c/0x268 [ 222.576001] [] ? mvs_int_full+0x42/0x88 [mvsas] [ 222.576001] [] ? mvs_64xx_isr+0x31/0x40 [mvsas] [ 222.576001] [] ? mvs_interrupt+0x61/0x78 [mvsas] [ 222.576001] [] ? handle_IRQ_event+0x58/0x126 [ 222.576001] [] ? handle_fasteoi_irq+0x7d/0xb5 [ 222.576001] [] ? handle_irq+0x17/0x1d [ 222.576001] [] ? do_IRQ+0x57/0xb6 [ 222.576001] [] ? ret_from_intr+0x0/0x11 [ 222.576001] [ 222.576001] [] ? mwait_idle+0x72/0x7d [ 222.576001] [] ? mwait_idle+0x22/0x7d [ 222.576001] [] ? cpu_idle+0x59/0x91 [ 222.576001] Code: a0 00 00 00 ba 73 08 00 00 48 c7 c6 cd 1c 14 a0 48 c7 c7 ab 1f 14 a0 44 8b 40 04 49 8b 84 24 b8 02 00 00 44 0f af 85 40 24 00 00 <8b> 88 18 01 00 00 31 c0 47 8d 44 05 00 e8 fc 56 1b e1 41 83 e6 [ 222.576001] RIP [] mvs_int_port+0x1d3/0x4ef [mvsas] [ 222.576001] RSP [ 222.576001] CR2: 0000000000000118 [ 222.593420] ---[ end trace f9b64cadb09cc87c ]--- [ 222.593489] Kernel panic - not syncing: Fatal exception in interrupt [ 222.593561] Pid: 0, comm: swapper Tainted: G D 2.6.32 #1 [ 222.593631] Call Trace: [ 222.593694] [] ? panic+0x86/0x141 [ 222.593820] [] ? apic_timer_interrupt+0x13/0x20 [ 222.593896] [] ? oops_end+0x64/0xb4 [ 222.593968] [] ? oops_end+0xa7/0xb4 ------=_20091217144443_67798--