Subject: kern/24967: mpt(4) hangs when >=64k i/o was occurred
To: None <gnats-bugs@gnats.netbsd.org>
From: HITOSHI Osada <QFH02545@nifty.com>
List: netbsd-bugs
Date: 03/30/2004 19:21:31
>Number:         24967
>Category:       kern
>Synopsis:       mpt(4) hangs when >=64k i/o was occurred
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 30 10:22:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6ZK(2004-03-18)
>Organization:
>Environment:
NetBSD 1.6ZK (INSTALL) #0: Thu Mar 18 03:53:06 UTC 2004
Architecture: i386
Machine: i386
Card: LSI21320 (53C1030 rev: 07)
>Description:

If 64 K bytes or more of I/O is performed, mpt(4) will hang-up.
In the completely same environment, Windows2000 operates normally.

The card is LSI21320(not -R), and revision is 0x07.
Firmware and BIOS on the card are newest.

dmesg output:

NetBSD 1.6ZK (INSTALL) #0: Thu Mar 18 03:53:06 UTC 2004
	autobuild@tgm.netbsd.org:/autobuild/HEAD/i386/OBJ/autobuild/HEAD/src/sys/arch/i386/compile/INSTALL
total memory = 511 MB
avail memory = 492 MB
BIOS32 rev. 0 found at 0xfb250
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD K7 (Athlon) XP 3200+ (686-class), 2210.01 MHz, id 0x6a0
cpu0: features c3c3fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features c3c3fbff<PGE,MCA,CMOV,PAT,PSE36,MMXX,MMX>
cpu0: features c3c3fbff<FXSR,SSE,3DNOW2,3DNOW>
cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu0: L2 cache 512 KB 64b/line 16-way
cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries 4-way
cpu0: 8 page colors
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x1039 product 0x0746 (rev. 0x10)
agp at pchb0 not configured
ppb0 at pci0 dev 1 function 0: vendor 0x1039 product 0x0002 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: vendor 0x1002 product 0x4151 (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
vendor 0x1002 product 0x4171 (miscellaneous display) at pci1 dev 0 function 1 not configured
pcib0 at pci0 dev 2 function 0
pcib0: vendor 0x1039 product 0x0008 (rev. 0x25)
siside0 at pci0 dev 2 function 5
siside0: Silicon Integrated System 96X UDMA6746 IDE controller (rev. 0x00)
siside0: bus-master DMA support present
siside0: primary channel wired to compatibility mode
siside0: primary channel interrupting at irq 14
atabus0 at siside0 channel 0
siside0: secondary channel wired to compatibility mode
siside0: secondary channel ignored (disabled)
vendor 0x1039 product 0x7012 (audio multimedia, revision 0xa0) at pci0 dev 2 function 7 not configured
ohci0 at pci0 dev 3 function 0: vendor 0x1039 product 0x7001 (rev. 0x0f)
ohci0: interrupting at irq 4
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x1039 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 3 function 1: vendor 0x1039 product 0x7001 (rev. 0x0f)
ohci1: interrupting at irq 3
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x1039 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
vendor 0x1039 product 0x7002 (USB serial bus, interface 0x20) at pci0 dev 3 function 3 not configured
mpt0 at pci0 dev 9 function 0: LSI Logic 53c1030 Ultra320 SCSI
mpt0: interrupting at irq 11
scsibus0 at mpt0: 16 targets, 8 luns per target
mpt1 at pci0 dev 9 function 1: LSI Logic 53c1030 Ultra320 SCSI
mpt1: interrupting at irq 15
scsibus1 at mpt1: 16 targets, 8 luns per target
gsip0 at pci0 dev 11 function 0: NatSemi DP83820 Gigabit Ethernet, rev 00
gsip0: interrupting at irq 10
gsip0: Ethernet address 00:90:cc:30:df:7c
gphyter0 at gsip0 phy 1: DP83861 1000BASE-T media interface, rev. 2
gphyter0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
gphyter0: strapped to slave mode, pre-C5 BCM5400 compat enabled
rtk0 at pci0 dev 13 function 0: Realtek 8139 10/100BaseTX
rtk0: interrupting at irq 10
rtk0: Ethernet address 00:01:80:49:ea:98
ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000000, model 0x0000, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at pcib0
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
isapnp0: no ISA Plug 'n Play devices found
md0: internal 5000 KB image area
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <MATSHITADVD-RAM SW-9572, , F100> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
cd0(siside0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
uhub2 at uhub0 port 3
uhub2: vendor 0x04cc product 0x1122, class 9/0, rev 1.10/1.10, addr 2
uhub2: 5 ports with 5 removable, self powered
sd0 at scsibus0 target 0 lun 0: <FUJITSU, MAS3184NP, 0103> disk fixed
sd0: 17524 MB, 27206 cyl, 2 head, 659 sec, 512 bytes/sect x 35890512 sectors
sd0: sync (6.25ns offset 127), 16-bit (320.000MB/s) transfers, tagged queueing
sd1 at scsibus0 target 1 lun 0: <MAXTOR, ATLASU320_73_WLS, B810> disk fixed
sd1: 69809 MB, 31022 cyl, 8 head, 576 sec, 512 bytes/sect x 142969680 sectors
sd1: sync (6.25ns offset 127), 16-bit (320.000MB/s) transfers, tagged queueing
uhidev0 at uhub2 port 1 configuration 1 interface 0
uhidev0: EIZO EIZO USB HID Monitor, rev 1.10/2.cf, addr 3, iclass 3/0
uhidev0: 102 report ids
uhid at uhidev0 reportid 1 not configured
uhid at uhidev0 reportid 2 not configured
uhid at uhidev0 reportid 3 not configured
uhid at uhidev0 reportid 5 not configured
uhid at uhidev0 reportid 6 not configured
uhid at uhidev0 reportid 7 not configured
uhid at uhidev0 reportid 8 not configured
uhid at uhidev0 reportid 9 not configured
uhid at uhidev0 reportid 10 not configured
uhid at uhidev0 reportid 12 not configured
uhid at uhidev0 reportid 13 not configured
uhid at uhidev0 reportid 14 not configured
uhid at uhidev0 reportid 15 not configured
uhid at uhidev0 reportid 16 not configured
uhid at uhidev0 reportid 17 not configured
uhid at uhidev0 reportid 18 not configured
uhid at uhidev0 reportid 19 not configured
uhid at uhidev0 reportid 33 not configured
uhid at uhidev0 reportid 34 not configured
uhid at uhidev0 reportid 35 not configured
uhid at uhidev0 reportid 36 not configured
uhid at uhidev0 reportid 37 not configured
uhid at uhidev0 reportid 38 not configured
uhid at uhidev0 reportid 40 not configured
uhid at uhidev0 reportid 41 not configured
uhid at uhidev0 reportid 64 not configured
uhid at uhidev0 reportid 65 not configured
uhid at uhidev0 reportid 66 not configured
uhid at uhidev0 reportid 67 not configured
uhid at uhidev0 reportid 68 not configured
uhid at uhidev0 reportid 70 not configured
uhid at uhidev0 reportid 71 not configured
uhid at uhidev0 reportid 72 not configured
uhid at uhidev0 reportid 73 not configured
uhid at uhidev0 reportid 76 not configured
uhid at uhidev0 reportid 78 not configured
uhid at uhidev0 reportid 79 not configured
uhid at uhidev0 reportid 80 not configured
uhid at uhidev0 reportid 81 not configured
uhid at uhidev0 reportid 82 not configured
uhid at uhidev0 reportid 83 not configured
uhid at uhidev0 reportid 84 not configured
uhid at uhidev0 reportid 85 not configured
uhid at uhidev0 reportid 86 not configured
uhid at uhidev0 reportid 87 not configured
uhid at uhidev0 reportid 88 not configured
uhid at uhidev0 reportid 93 not configured
uhid at uhidev0 reportid 94 not configured
uhid at uhidev0 reportid 95 not configured
uhid at uhidev0 reportid 96 not configured
uhid at uhidev0 reportid 99 not configured
uhid at uhidev0 reportid 101 not configured
uhid at uhidev0 reportid 102 not configured
uhidev1 at uhub2 port 3 configuration 1 interface 0
uhidev1: WiseGroup.,Ltd JC-PS101U, rev 1.10/3.00, addr 4, iclass 3/0
uhid at uhidev1 not configured
boot device: <unknown>
root on md0a dumps on md0b
root file system type: ffs
warning: no /dev/console
sd0(mpt0:0:0:0): command timeout
mpt0: timeout on request index = 0xfe, seq = 0x0000088b
mpt0: Status 0x00000000, Mask 0x00000001, Doorbell 0x24000000
mpt0: request state: On Chip
sd0(mpt0:0:0:0): command timeout
mpt0: timeout on request index = 0xfe, seq = 0x0000088c
mpt0: Status 0x00000000, Mask 0x00000001, Doorbell 0x24000000
mpt0: request state: On Chip
sd0(mpt0:0:0:0): command timeout
mpt0: timeout on request index = 0xfe, seq = 0x0000088d
mpt0: Status 0x00000000, Mask 0x00000001, Doorbell 0x24000000
mpt0: request state: On Chip
sd0(mpt0:0:0:0): command timeout
mpt0: timeout on request index = 0xfe, seq = 0x0000088e
mpt0: Status 0x00000000, Mask 0x00000001, Doorbell 0x24000000
mpt0: request state: On Chip

>How-To-Repeat:
# dd if=/dev/rsd0d of=/dev/null bs=64k count=100

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: