[ISP] QLA2432 Target Mode Broken

Sean Bruno sbruno at miralink.com
Thu Aug 28 17:34:19 UTC 2008


I tried putting a 2432 into target mode this week and noted that the 
system threw a pretty nice panic and thought I would post the output 
here.  Reviewing the 4G documentation from Qlogic, it looks like they've 
substantially changed the target mode interface, so I'm not surprised 
that there's some work to do.  If anyone has any patches they'd like me 
to test, I'm open to integration:

isp0: <Qlogic ISP 2432 PCI FC-AL Adapter> port 0x2000-0x20ff mem 
0xe8300000-0xe8303fff irq 16 at device 0.0 on pci4
isp0: setting role to 0x0 for unit 0
isp0: [GIANT-LOCKED]
isp0: Polled Mailbox Command (0x8) Timeout (100000us)
isp0: Board Type 2422, Chip Revision 0x2, loaded F/W Revision 4.0.20
isp1: <Qlogic ISP 2432 PCI FC-AL Adapter> port 0x2400-0x24ff mem 
0xe8304000-0xe8307fff irq 17 at device 0.1 on pci4
isp1: setting role to 0x2 for unit 1
isp1: [GIANT-LOCKED]
isp1: Polled Mailbox Command (0x8) Timeout (100000us)
isp1: Board Type 2422, Chip Revision 0x2, loaded F/W Revision 4.0.20
...
isp0: Board Type 2422, Chip Revision 0x2, resident F/W Revision 4.0.20
isp0: Board Type 2422, Chip Revision 0x2, loaded F/W Revision 4.0.20
(odbp0:isp0:0:4:0): Target Mode Enabled
(odbp0:isp0:0:4:0): ENABLE LUN returned 0x0 (lun 0)
(odbp0:isp0:0:4:0): enable lun CCB rejected, status 0x4
enable lun failed, status 0x4
targinit: targenlun failed with status 0x4
Aug 28 02:06:46  kernel: B-Srch failed to find head/tail
Aug 28 02:06:46  kernel: Loop counter at max, aborting.
Aug 28 02:06:46  kernel: Targinit was not successfull, TheSoftc == NULL
isp0: target notify code 0x1007


Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x0
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc0546709
stack pointer           = 0x28:0xe7a2fb90
frame pointer           = 0x28:0xe7a2fb90
code segment            = base 0x0, limit 0xfffff, type 0x1b
                       = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 21 (irq16: bge0 isp0++)
[db> trace
Tracing pid 21 tid 100023 td 0xc651e780
isp_get_hdr(c6544000,0,e7a2fbe4) at isp_get_hdr+0x9
isp_intr(c6544000,801d,0,0) at isp_intr+0x264
isp_pci_intr(c6544000) at isp_pci_intr+0x6f
ithread_execute_handlers(c651d430,c644e500) at 
ithread_execute_handlers+0xe6
ithread_loop(c6542070,e7a2fd38,c6542070,c05e1f68,0,...) at 
ithread_loop+0x66
fork_exit(c05e1f68,c6542070,e7a2fd38) at fork_exit+0xa0
fork_trampoline() at fork_trampoline+0x8
--- trap 0x1, eip = 0, esp = 0xe7a2fd6c, ebp = 0 ---

-- 
Sean Bruno
MiraLink Corporation
6015 NE 80th Ave, Ste 100
Portland, OR 97218
Phone 503-621-5143
Fax 503-621-5199
MSN: sbruno at miralink.com
Google:  seanwbruno at gmail.com
Yahoo:  sean_bruno at yahoo.com



More information about the freebsd-scsi mailing list