From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Tom 'spot' Callaway" Date: Fri, 14 Oct 2005 18:53:18 +0000 Subject: qlogicpti kernel panic Message-Id: <1129315998.2243.35.camel@localhost.localdomain> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org I got a kernel panic on 2.6.14-rc4-git2 on the e4500 (8 CPU, 8GB mem). It's hitting the BUG() case in drivers/scsi/qlogicpti.c in ourdone(): 1146 if (Cmnd->cmnd[0] = 0x12 && ok) { 1147 unsigned char *iqd; 1148 1149 if (Cmnd->use_sg != 0) 1150 BUG(); I can't find any other SCSI drivers doing this sort of check, then again, no other SCSI driver seems to act like qlogicpti. Adding a printk there shows that Cmnd->use_sg is 1. Here is the rest of the panic trigged by the BUG(). Looks like it duped up because it hit on two CPUs at once.: kernel BUG at drivers/scsi/qlogicpti.c:1150! kernel BUG at drivers/scsi/qlogicpti.c:1150! \|/ ____ \|/ \|/ ____ \|/ "@'/ .. \`@" "@'/ .. \`@" /_| \__/ |_\ /_| \__/ |_\ \__U_/ \__U_/ swapper(0): Kernel bad sw trap 5 [#1] swapper(0): Kernel bad sw trap 5 [#1] TSTATE: 0000000080f09606 TPC: 000000001002c5b4 TNPC: 000000001002c5b8 Y: 0000000 0 Not tainted TSTATE: 0000000080f09606 TPC: 000000001002c5b4 TNPC: 000000001002c5b8 Y: 0000000 0 Not tainted TPC: TPC: g0: 000000000069e800 g1: 00000000006a4c00 g2: ffffffffffffe626 g3: 0000000000751 800 g0: 000000000069e800 g1: 00000000006a4c00 g2: ffffffffffffe626 g3: 0000000000751 800 g4: 0000000000698380 g5: fffff80003890000 g6: 00000000006997c0 g7: 0000000000000 000 g4: 0000000000698380 g5: fffff80003890000 g6: 00000000006997c0 g7: 0000000000000 000 o0: 0000000000000030 o1: 000000001002d570 o2: 000000000000047e o3: 0000200000000 000 o0: 0000000000000030 o1: 000000001002d570 o2: 000000000000047e o3: 0000200000000 000 o4: 0000000000000000 o5: fffff8000031b400 sp: 000000000069c9d1 ret_pc: 000000001 002c5ac o4: 0000000000000000 o5: fffff8000031b400 sp: 000000000069c9d1 ret_pc: 000000001 002c5ac RPC: RPC: l0: 0000000000000001 l1: 000000000000000f l2: 000000000000000a l3: 0000000000000 000 l0: 0000000000000001 l1: 000000000000000f l2: 000000000000000a l3: 0000000000000 000 l4: 0000000000772000 l5: 0000000000000000 l6: 0000000000000000 l7: 00000000fffef 48b l4: 0000000000772000 l5: 0000000000000000 l6: 0000000000000000 l7: 00000000fffef 48b i0: fffff80000319900 i1: 000000000000000f i2: 0000000000000024 i3: 0000000000000 002 i0: fffff80000319900 i1: 000000000000000f i2: 0000000000000024 i3: 0000000000000 002 i4: 00000000006ff400 i5: 00000000006a7440 i6: 000000000069ca91 i7: 000000001002c ef4 i4: 00000000006ff400 i5: 00000000006a7440 i6: 000000000069ca91 i7: 000000001002c ef4 I7: I7: Caller[000000001002cef4]Caller[000000001002cef4]: qpti_intr+0x2d0/0x2fc [qlogicp ti]: qpti_intr+0x2d0/0x2fc [qlogicpti] Caller[0000000000413114]Caller[0000000000413114]: handler_irq +0x11c/0x19c: handl er_irq+0x11c/0x19c Caller[00000000004088f4]Caller[00000000004088f4]: tl0_irq7+0x14/0x40: tl0_irq7+0 x14/0x40 Caller[000000000040eab4]Caller[000000000040eab4]: cpu_idle+0x6c/0xb8: cpu_idle+0 x6c/0xb8 Caller[000000000070c66c]Caller[000000000070c66c]: start_kernel +0x218/0x22c: star t_kernel+0x218/0x22c Caller[00000000004043f4]Caller[00000000004043f4]: tlb_fixup_done +0x5c/0x64: tlb_ fixup_done+0x5c/0x64 Caller[0000000000000000]Caller[0000000000000000]: _start +0xffffffffffbfc000/0x12 : _start+0xffffffffffbfc000/0x12 Instruction DUMP:Instruction DUMP: 9210247e 9210247e 7c0f8f3f 7c0f8f3f 90122 170 90122170 <91d02005><91d02005> c208e007 c208e007 80886010 80886010 02680 00a 0268000a 853b2000 853b2000 82008002 82008002 TSTATE: 0000004411009601 TPC: 000000000040ea64 TNPC: 000000000040ea68 Y: 0000000 0 Not tainted TSTATE: 0000004411009601 TPC: 000000000040ea64 TNPC: 000000000040ea68 Y: 0000000 0 Not tainted Kernel panic - not syncing: Aiee, killing interrupt handler! Kernel panic - not syncing: Aiee, killing interrupt handler! Call Trace: Call Trace: [0000000000411808] die_if_kernel+0x254/0x260 [0000000000411808] die_if_kernel+0x254/0x260 [0000000000411fec] bad_trap+0xa0/0x104 [0000000000411fec] bad_trap+0xa0/0x104 [000000000040a0b0] tl0_resv104+0x30/0x80 [000000000040a0b0] tl0_resv104+0x30/0x80 [000000001002c5ac] ourdone+0x8c/0x198 [qlogicpti] [000000001002c5ac] ourdone+0x8c/0x198 [qlogicpti] [000000001002cef4] qpti_intr+0x2d0/0x2fc [qlogicpti] [000000001002cef4] qpti_intr+0x2d0/0x2fc [qlogicpti] [0000000000413114] handler_irq+0x11c/0x19c [0000000000413114] handler_irq+0x11c/0x19c [00000000004088f4] tl0_irq7+0x14/0x40 [00000000004088f4] tl0_irq7+0x14/0x40 [000000000040eab4] cpu_idle+0x6c/0xb8 [000000000040eab4] cpu_idle+0x6c/0xb8 [000000000070c66c] start_kernel+0x218/0x22c [000000000070c66c] start_kernel+0x218/0x22c [00000000004043f4] tlb_fixup_done+0x5c/0x64 [00000000004043f4] tlb_fixup_done+0x5c/0x64 [0000000000000000] _start+0xffffffffffbfc000/0x12 [0000000000000000] _start+0xffffffffffbfc000/0x12 <0>Press Stop-A (L1-A) to return to the boot prom <0>Press Stop-A (L1-A) to return to the boot prom Badness in panic at kernel/panic.c:139 (Not tainted) Badness in panic at kernel/panic.c:139 (Not tainted) Call Trace: Call Trace: [0000000000411808] die_if_kernel+0x254/0x260 [0000000000411808] die_if_kernel+0x254/0x260 [0000000000411fec] bad_trap+0xa0/0x104 [0000000000411fec] bad_trap+0xa0/0x104 [000000000040a0b0] tl0_resv104+0x30/0x80 [000000000040a0b0] tl0_resv104+0x30/0x80 [000000001002c5ac] ourdone+0x8c/0x198 [qlogicpti] [000000001002c5ac] ourdone+0x8c/0x198 [qlogicpti] [000000001002cef4] qpti_intr+0x2d0/0x2fc [qlogicpti] [000000001002cef4] qpti_intr+0x2d0/0x2fc [qlogicpti] [0000000000413114] handler_irq+0x11c/0x19c [0000000000413114] handler_irq+0x11c/0x19c [00000000004088f4] tl0_irq7+0x14/0x40 [00000000004088f4] tl0_irq7+0x14/0x40 [000000000040eab4] cpu_idle+0x6c/0xb8 [000000000040eab4] cpu_idle+0x6c/0xb8 [000000000070c66c] start_kernel+0x218/0x22c [000000000070c66c] start_kernel+0x218/0x22c [00000000004043f4] tlb_fixup_done+0x5c/0x64 [00000000004043f4] tlb_fixup_done+0x5c/0x64 [0000000000000000] _start+0xffffffffffbfc000/0x12 [0000000000000000] _start+0xffffffffffbfc000/0x12 TPC: TPC: g0: 0000000000000001 g1: 0000021100004000 g2: 0000000000008000 g3: fffff80003fca 000 g0: 0000000000000001 g1: 0000021100004000 g2: 0000000000008000 g3: fffff80003fca 000 g4: fffff801ffcd3940 g5: fffff80003898000 g6: fffff80000048000 g7: 0000000000000 00f g4: fffff801ffcd3940 g5: fffff80003898000 g6: fffff80000048000 g7: 0000000000000 00f o0: 000000000000000e o1: fffff80000048008 o2: 0000000000004000 o3: 0000000000000 00a o0: 000000000000000e o1: fffff80000048008 o2: 0000000000004000 o3: 0000000000000 00a o4: 000000000000000a o5: 000000001002e858 sp: fffff8000004b681 ret_pc: 000000000 040eab4 o4: 000000000000000a o5: 000000001002e858 sp: fffff8000004b681 ret_pc: 000000000 040eab4 RPC: RPC: l0: fffff80000048008 l1: 000000000077e400 l2: 0000000000000001 l3: 0000000000000 000 l0: fffff80000048008 l1: 000000000077e400 l2: 0000000000000001 l3: 0000000000000 000 l4: 0000000000000001 l5: 000000000000000f l6: fffff8000004bfd0 l7: 000000000077e 400 l4: 0000000000000001 l5: 000000000000000f l6: fffff8000004bfd0 l7: 000000000077e 400 i0: 0000000000000000 i1: 00000000006ff770 i2: 0000000000000002 i3: 000000000077e 6b8 i0: 0000000000000000 i1: 00000000006ff770 i2: 0000000000000002 i3: 000000000077e 6b8 i4: fffff8000004bfd8 i5: 0000000000000000 i6: fffff8000004b741 i7: 0000000000425 13c i4: fffff8000004bfd8 i5: 0000000000000000 i6: fffff8000004b741 i7: 0000000000425 13c I7: I7: TSTATE: 0000004411009601 TPC: 000000000040ea64 TNPC: 000000000040ea68 Y: 0000000 0 Not tainted TSTATE: 0000004411009601 TPC: 000000000040ea64 TNPC: 000000000040ea68 Y: 0000000 0 Not tainted TPC: TPC: g0: 0000001000000000 g1: 0000021100004000 g2: 0000000000028000 g3: fffff80003fea 000 g0: 0000001000000000 g1: 0000021100004000 g2: 0000000000028000 g3: fffff80003fea 000 g4: fffff801ff683540 g5: fffff800038b8000 g6: fffff801ff600000 g7: 0000000000000 00f g4: fffff801ff683540 g5: fffff800038b8000 g6: fffff801ff600000 g7: 0000000000000 00f o0: 000000000000000e o1: fffff801ff600008 o2: 0000000000004000 o3: fffff801fec9b d40 o0: 000000000000000e o1: fffff801ff600008 o2: 0000000000004000 o3: fffff801fec9b d40 o4: 0000000000000000 o5: fffff801ff683760 sp: fffff801ff603681 ret_pc: 000000000 040eab4 o4: 0000000000000000 o5: fffff801ff683760 sp: fffff801ff603681 ret_pc: 000000000 040eab4 RPC: RPC: l0: fffff801ff600008 l1: 000000000077e400 l2: 0000000000000001 l3: 0000000000000 000 l0: fffff801ff600008 l1: 000000000077e400 l2: 0000000000000001 l3: 0000000000000 000 l4: 0000000000000001 l5: 000000000000000f l6: fffff801ff603fd0 l7: 000000000077e 400 l4: 0000000000000001 l5: 000000000000000f l6: fffff801ff603fd0 l7: 000000000077e 400 i0: 0000000000000000 i1: 00000000006ff770 i2: 0000000000000020 i3: 000000000077e 6b8 i0: 0000000000000000 i1: 00000000006ff770 i2: 0000000000000020 i3: 000000000077e 6b8 i4: fffff801ff603fd8 i5: 0000000000000000 i6: fffff801ff603741 i7: 0000000000425 13c i4: fffff801ff603fd8 i5: 0000000000000000 i6: fffff801ff603741 i7: 0000000000425 13c I7: I7: TSTATE: 0000004411009601 TPC: 000000000040ead8 TNPC: 000000000040eadc Y: 0000000 0 Not tainted TSTATE: 0000004411009601 TPC: 000000000040ead8 TNPC: 000000000040eadc Y: 0000000 0 Not tainted TPC: TPC: g0: 0000000000048000 g1: fffff80003890000 g2: 0000000000000009 g3: 0000000000732 000 g0: 0000000000048000 g1: fffff80003890000 g2: 0000000000000009 g3: 0000000000732 000 g4: fffff80004cf1140 g5: fffff800038d8000 g6: fffff801ff640000 g7: 0000000000000 00f g4: fffff80004cf1140 g5: fffff800038d8000 g6: fffff801ff640000 g7: 0000000000000 00f o0: 000000000000000e o1: fffff801ff640008 o2: 0000000000004000 o3: fffff801ff35f 630 o0: 000000000000000e o1: fffff801ff640008 o2: 0000000000004000 o3: fffff801ff35f 630 o4: 0000000000000000 o5: fffff800001beff8 sp: fffff801ff643681 ret_pc: 000000000 040eab4 o4: 0000000000000000 o5: fffff800001beff8 sp: fffff801ff643681 ret_pc: 000000000 040eab4 RPC: RPC: l0: fffff801ff640008 l1: 000000000077e400 l2: 0000000000000001 l3: 0000000000000 000 l0: fffff801ff640008 l1: 000000000077e400 l2: 0000000000000001 l3: 0000000000000 000 l4: 0000000000000001 l5: 000000000000000f l6: fffff801ff643fd0 l7: 000000000077e 400 l4: 0000000000000001 l5: 000000000000000f l6: fffff801ff643fd0 l7: 000000000077e 400 i0: 0000000000000000 i1: 00000000006ff770 i2: 0000000000000200 i3: 000000000077e 6b8 i0: 0000000000000000 i1: 00000000006ff770 i2: 0000000000000200 i3: 000000000077e 6b8 i4: fffff801ff643fd8 i5: 0000000000000000 i6: fffff801ff643741 i7: 0000000000425 13c i4: fffff801ff643fd8 i5: 0000000000000000 i6: fffff801ff643741 i7: 0000000000425 13c I7: I7: TSTATE: 0000004411009601 TPC: 000000000040eaf4 TNPC: 000000000040eaf8 Y: 0000000 0 Not tainted TSTATE: 0000004411009601 TPC: 000000000040eaf4 TNPC: 000000000040eaf8 Y: 0000000 0 Not tainted TPC: TPC: g0: 000000000000000f g1: 0000000003770c54 g2: 0000000000078000 g3: fffff8000403a 000 g0: 000000000000000f g1: 0000000003770c54 g2: 0000000000078000 g3: fffff8000403a 000 g4: fffff80004cded40 g5: fffff80003908000 g6: fffff801ff67c000 g7: 0000000000000 00f g4: fffff80004cded40 g5: fffff80003908000 g6: fffff801ff67c000 g7: 0000000000000 00f o0: 000000000000000e o1: fffff801ff67c008 o2: 0000000000004000 o3: 0000000000200 200 o0: 000000000000000e o1: fffff801ff67c008 o2: 0000000000004000 o3: 0000000000200 200 o4: fffff8000403b778 o5: fffff80004cdef60 sp: fffff801ff67f681 ret_pc: 000000000 040eab4 o4: fffff8000403b778 o5: fffff80004cdef60 sp: fffff801ff67f681 ret_pc: 000000000 040eab4 RPC: RPC: l0: fffff801ff67c008 l1: 000000000077e400 l2: 0000000000000001 l3: 0000000000000 000 l0: fffff801ff67c008 l1: 000000000077e400 l2: 0000000000000001 l3: 0000000000000 000 l4: 0000000000000001 l5: 000000000000000f l6: fffff801ff67ffd0 l7: 000000000077e 400 l4: 0000000000000001 l5: 000000000000000f l6: fffff801ff67ffd0 l7: 000000000077e 400 i0: 0000000000000000 i1: 00000000006ff770 i2: 0000000000008000 i3: 000000000077e 6b8 i0: 0000000000000000 i1: 00000000006ff770 i2: 0000000000008000 i3: 000000000077e 6b8 i4: fffff801ff67ffd8 i5: 0000000000000000 i6: fffff801ff67f741 i7: 0000000000425 13c i4: fffff801ff67ffd8 i5: 0000000000000000 i6: fffff801ff67f741 i7: 0000000000425 13c I7: I7: TSTATE: 0000004411f09604 TPC: 000000000055aba4 TNPC: 000000000055b510 Y: 0000000 0 Not tainted TSTATE: 0000004411f09604 TPC: 000000000055aba4 TNPC: 000000000055b510 Y: 0000000 0 Not tainted TPC: TPC: g0: 0000000000000000 g1: 0000000000000000 g2: 00000000c0000000 g3: 0000000000000 024 g0: 0000000000000000 g1: 0000000000000000 g2: 00000000c0000000 g3: 0000000000000 024 g4: fffff801ffcd28c0 g5: fffff800038b0000 g6: fffff80000070000 g7: fffff800003a2 348 g4: fffff801ffcd28c0 g5: fffff800038b0000 g6: fffff80000070000 g7: fffff800003a2 348 o0: 0000000000000000 o1: 0000000000000003 o2: 0000000000000000 o3: 00000000006ff 400 o0: 0000000000000000 o1: 0000000000000003 o2: 0000000000000000 o3: 00000000006ff 400 o4: 00000000006ff400 o5: 00000000006a7440 sp: fffff800000733a1 ret_pc: 000000000 055b508 o4: 00000000006ff400 o5: 00000000006a7440 sp: fffff800000733a1 ret_pc: 000000000 055b508 RPC: RPC: l0: 0000000000000010 l1: 0000000000000000 l2: 0000000000000010 l3: 0000000000771 c00 l0: 0000000000000010 l1: 0000000000000000 l2: 0000000000000010 l3: 0000000000771 c00 l4: fffff80003fe3700 l5: fffff80000073c40 l6: 0000000000000004 l7: 00000000006a4 c00 l4: fffff80003fe3700 l5: fffff80000073c40 l6: 0000000000000004 l7: 00000000006a4 c00 i0: 000001fff8904004 i1: fffff80004cc21c0 i2: fffff80000073de0 i3: 0000000000000 2c5 i0: 000001fff8904004 i1: fffff80004cc21c0 i2: fffff80000073de0 i3: 0000000000000 2c5 i4: fffff80000073d80 i5: fffff80003fe36b0 i6: fffff80000073461 i7: 0000000000413 114 i4: fffff80000073d80 i5: fffff80003fe36b0 i6: fffff80000073461 i7: 0000000000413 114 I7: I7: TSTATE: 0000004411009601 TPC: 000000000040ea64 TNPC: 000000000040ea68 Y: 0000000 0 Not tainted TSTATE: 0000004411009601 TPC: 000000000040ea64 TNPC: 000000000040ea68 Y: 0000000 0 Not tainted TPC: TPC: g0: 0000000000000008 g1: 0000021100004000 g2: 0000000000040000 g3: fffff80004002 000 g0: 0000000000000008 g1: 0000021100004000 g2: 0000000000040000 g3: fffff80004002 000 g4: fffff801ff6824c0 g5: fffff800038d0000 g6: fffff801ff610000 g7: 0000000000000 00f g4: fffff801ff6824c0 g5: fffff800038d0000 g6: fffff801ff610000 g7: 0000000000000 00f o0: 000000000000000e o1: fffff801ff610008 o2: 0000000000004000 o3: 0000000000200 200 o0: 000000000000000e o1: fffff801ff610008 o2: 0000000000004000 o3: 0000000000200 200 o4: fffff80004003778 o5: fffff801ffcb4158 sp: fffff801ff613681 ret_pc: 000000000 040eab4 o4: fffff80004003778 o5: fffff801ffcb4158 sp: fffff801ff613681 ret_pc: 000000000 040eab4 RPC: RPC: l0: fffff801ff610008 l1: 000000000077e400 l2: 0000000000000001 l3: 0000000000000 000 l0: fffff801ff610008 l1: 000000000077e400 l2: 0000000000000001 l3: 0000000000000 000 l4: 0000000000000001 l5: 000000000000000f l6: fffff801ff613fd0 l7: 000000000077e 400 l4: 0000000000000001 l5: 000000000000000f l6: fffff801ff613fd0 l7: 000000000077e 400 i0: 0000000000000000 i1: 00000000006ff770 i2: 0000000000000100 i3: 000000000077e 6b8 i0: 0000000000000000 i1: 00000000006ff770 i2: 0000000000000100 i3: 000000000077e 6b8 i4: fffff801ff613fd8 i5: 0000000000000000 i6: fffff801ff613741 i7: 0000000000425 13c i4: fffff801ff613fd8 i5: 0000000000000000 i6: fffff801ff613741 i7: 0000000000425 13c I7: I7: TSTATE: 0000004411009601 TPC: 000000000040ead8 TNPC: 000000000040eadc Y: 0000000 0 Not tainted TSTATE: 0000004411009601 TPC: 000000000040ead8 TNPC: 000000000040eadc Y: 0000000 0 Not tainted TPC: TPC: g0: 000000000000000e g1: fffff80003890000 g2: 000000000000000e g3: 0000000000732 000 g0: 000000000000000e g1: fffff80003890000 g2: 000000000000000e g3: 0000000000732 000 g4: fffff80004cf00c0 g5: fffff80003900000 g6: fffff801ff650000 g7: 0000000000000 00f g4: fffff80004cf00c0 g5: fffff80003900000 g6: fffff801ff650000 g7: 0000000000000 00f o0: 000000000000000e o1: fffff801ff650008 o2: 0000000000004000 o3: 0000000000000 00a o0: 000000000000000e o1: fffff801ff650008 o2: 0000000000004000 o3: 0000000000000 00a o4: 000000000000000a o5: fffff80004cf02e0 sp: fffff801ff653681 ret_pc: 000000000 040eab4 o4: 000000000000000a o5: fffff80004cf02e0 sp: fffff801ff653681 ret_pc: 000000000 040eab4 RPC: RPC: l0: fffff801ff650008 l1: 000000000077e400 l2: 0000000000000001 l3: 0000000000000 000 l0: fffff801ff650008 l1: 000000000077e400 l2: 0000000000000001 l3: 0000000000000 000 l4: 0000000000000001 l5: 000000000000000f l6: fffff801ff653fd0 l7: 000000000077e 400 l4: 0000000000000001 l5: 000000000000000f l6: fffff801ff653fd0 l7: 000000000077e 400 i0: 0000000000000000 i1: 00000000006ff770 i2: 0000000000004000 i3: 000000000077e 6b8 i0: 0000000000000000 i1: 00000000006ff770 i2: 0000000000004000 i3: 000000000077e 6b8 i4: fffff801ff653fd8 i5: 0000000000000000 i6: fffff801ff653741 i7: 0000000000425 13c i4: fffff801ff653fd8 i5: 0000000000000000 i6: fffff801ff653741 i7: 0000000000425 13c I7: I7: ~spot -- Tom "spot" Callaway: Red Hat Senior Sales Engineer || GPG ID: 93054260 Fedora Extras Steering Committee Member (RPM Standards and Practices) Aurora Linux Project Leader: http://auroralinux.org Lemurs, llamas, and sparcs, oh my!