Subject: mpt fibre channel support in 4.x
To: None <tech-net@NetBSD.org>
From: Stephen Jones <smj@cirr.com>
List: tech-net
Date: 02/19/2007 23:53:04
Hi, I've been working with the daily builds of 4.x for a couple of  
months hoping that
the mpt device driver will become more reliable.  I wanted to see if  
any work or testing
was being done specifically for that driver or the support of Fibre  
Channel in any way.

A big problem that I've run into with the few 4.x installs I've done  
(on alpha) is the
mpt driver complaining being out of resources.

Some of the error messages I see are:

mpt0: mpt_reply:
SCSI IO Request Reply @ 0xfffffc000027eb80
         IOC Status    SCSI: External Bus Reset
         IOCLogInfo    0x00000000
         MsgLength     0x08
         MsgFlags      0x00
         MsgContext    0x000003fe
         Bus:          0
         TargetID      1
         CDBLength     10
         SCSI Status:  OK
         SCSI State:   (0x0000000c)No_SCSI_Status State_Terminated
         TransferCnt   0x0000
         SenseCnt      0x0000
         ResponseInfo  0x00000000
mpt0: mpt_done: no scsipi_xfer, index = 0x3fe, seq = 0x00000000
mpt0: request state: Free
mpt0: mpt_request:
SCSI IO Request @ 0xfffffe0013a43bd0
         Chain Offset  0x18
         MsgFlags      0x00
         MsgContext    0x000003fe
         Bus:                0
         TargetID            1
         SenseBufferLength   32
         LUN:              0x0
         Control           0x01000000  WRITE  SIMPLEQ
         DataLength      0x00010000
         SenseBufAddr    0x818f1de0
         CDB[0:10]       2a 00 00 b3 62 60 00 00 80 00
         SE32 0xfffffc00018f1c30: Addr=0xbb8fe000 FlagsLength=0x14002000
          HOST_TO_IOC
         SE32 0xfffffc00018f1c38: Addr=0xbb8fc000 FlagsLength=0x14002000
          HOST_TO_IOC
         SE32 0xfffffc00018f1c40: Addr=0xbb8fa000 FlagsLength=0x14002000
          HOST_TO_IOC
         SE32 0xfffffc00018f1c48: Addr=0xbb8f8000 FlagsLength=0x14002000
          HOST_TO_IOC
         SE32 0xfffffc00018f1c50: Addr=0xbb8f6000 FlagsLength=0x14002000
          HOST_TO_IOC
         SE32 0xfffffc00018f1c58: Addr=0xbb8f4000 FlagsLength=0x94002000
          HOST_TO_IOC LAST_ELEMENT
         CE32 0xfffffc00018f1c60: Addr=0x818f1c68 NxtChnO=0x0  
Flgs=0x30 Len=0x10
         SE32 0xfffffc00018f1c68: Addr=0xbb8f2000 FlagsLength=0x14002000
          HOST_TO_IOC
         SE32 0xfffffc00018f1c70: Addr=0xbb8f0000 FlagsLength=0xd5002000
          HOST_TO_IOC LAST_ELEMENT END_OF_BUFFER END_OF_LIST
mpt0: mpt_reply:
SCSI IO Request Reply @ 0xfffffc000027ec00
         IOC Status    SCSI: External Bus Reset
         IOCLogInfo    0x00000000
         MsgLength     0x08
         MsgFlags      0x00
         MsgContext    0x000003fe
         Bus:          0
         TargetID      1
         CDBLength     10
         SCSI Status:  OK
         SCSI State:   (0x0000000c)No_SCSI_Status State_Terminated
         TransferCnt   0x0000
         SenseCnt      0x0000
         ResponseInfo  0x00000000
mpt0: mpt_done: no scsipi_xfer, index = 0x3fe, seq = 0x00000000
mpt0: request state: Free
mpt0: mpt_request:
SCSI IO Request @ 0xfffffe0013a43bd0
         Chain Offset  0x18
         MsgFlags      0x00
         MsgContext    0x000003fe
         Bus:                0
         TargetID            1
         SenseBufferLength   32
         LUN:              0x0
         Control           0x01000000  WRITE  SIMPLEQ
         DataLength      0x00010000
         SenseBufAddr    0x818f1de0
         CDB[0:10]       2a 00 00 b3 62 60 00 00 80 00
         SE32 0xfffffc00018f1c30: Addr=0xbb8fe000 FlagsLength=0x14002000
          HOST_TO_IOC
         SE32 0xfffffc00018f1c38: Addr=0xbb8fc000 FlagsLength=0x14002000
          HOST_TO_IOC
         SE32 0xfffffc00018f1c40: Addr=0xbb8fa000 FlagsLength=0x14002000
          HOST_TO_IOC
         SE32 0xfffffc00018f1c48: Addr=0xbb8f8000 FlagsLength=0x14002000
          HOST_TO_IOC
         SE32 0xfffffc00018f1c50: Addr=0xbb8f6000 FlagsLength=0x14002000
          HOST_TO_IOC
         SE32 0xfffffc00018f1c58: Addr=0xbb8f4000 FlagsLength=0x94002000
          HOST_TO_IOC LAST_ELEMENT
         CE32 0xfffffc00018f1c60: Addr=0x818f1c68 NxtChnO=0x0  
Flgs=0x30 Len=0x10
         SE32 0xfffffc00018f1c68: Addr=0xbb8f2000 FlagsLength=0x14002000
          HOST_TO_IOC
         SE32 0xfffffc00018f1c70: Addr=0xbb8f0000 FlagsLength=0xd5002000
          HOST_TO_IOC LAST_ELEMENT END_OF_BUFFER END_OF_LIST
mpt0: mpt_reply:
SCSI IO Request Reply @ 0xfffffc000027ec80
         IOC Status    SCSI: External Bus Reset
         IOCLogInfo    0x00000000
         MsgLength     0x08
         MsgFlags      0x00
         MsgContext    0x000003fe
         Bus:          0
         TargetID      1
         CDBLength     10
         SCSI Status:  OK
         SCSI State:   (0x0000000c)No_SCSI_Status State_Terminated
         TransferCnt   0x0000
         SenseCnt      0x0000
         ResponseInfo  0x00000000
mpt0: External Bus Reset
generic HBA error
sd2(mpt0:0:1:0): mpt0: External Bus Reset
generic HBA error
sd2(mpt0:0:1:0): adapter resource shortage
panic: mpt_get_request: corrupted request free list (xfer)

Stopped in pid 9.1 (ioflush) at netbsd:cpu_Debugger+0x4:         
ret     zero,(ra
db> trace
cpu_Debugger() at netbsd:cpu_Debugger+0x4
panic() at netbsd:panic+0x1e8
mpt_free_request() at netbsd:mpt_free_request