Subject: kern/21749: scsictl disk stop freezes ahc
To: None <gnats-bugs@gnats.netbsd.org>
From: Juergen Hannken-Illjes <hannken@home.local-net>
List: netbsd-bugs
Date: 06/01/2003 17:10:58
>Number: 21749
>Category: kern
>Synopsis: scsictl disk stop freezes ahc
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 01 15:12:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Juergen Hannken-Illjes
>Release: NetBSD 1.6T
>Organization:
net
>Environment:
System: NetBSD home 1.6T NetBSD 1.6T (LOCAL.i386) #0: Fri May 30 06:47:35 MEST 2003 root@watcher:/build/dist/obj/i386/sys/arch/i386/compile/LOCAL.i386 i386
Architecture: i386
Machine: i386
>Description:
I tried to stop the (not mounted and not used) disk sd1 with
scsictl sd1 stop.
Result is a completely frozen ahc, all further precesses get
stuck in state D.
From dmesg:
NetBSD 1.6T (LOCAL.i386) #0: Fri May 30 06:47:35 MEST 2003
root@watcher:/build/dist/obj/i386/sys/arch/i386/compile/LOCAL.i386
total memory = 511 MB
avail memory = 467 MB
using 6144 buffers containing 26292 KB of memory
BIOS32 rev. 0 found at 0xfdb20
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon Model 4 (Thunderbird) (686-class), 1200.16 MHz, id 0x642
cpu0: features c1c7f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features c1c7f9ff<PGE,MCA,CMOV,PAT,PSE36,PN,MMXX,MMX>
cpu0: features c1c7f9ff<FXSR,3DNOW2,3DNOW>
cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu0: L2 cache 256 KB 64b/line 16-way
cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 24 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: VIA Technologies VT8363 KT133 System Controller (rev. 0x03)
agp0 at pchb0: aperture at 0xe0000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: VIA Technologies VT8363 KT133 PCI to AGP Bridge (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
pcib0 at pci0 dev 7 function 0
pcib0: VIA Technologies VT82C686A (Apollo KX133) PCI-ISA Bridge (rev. 0x40)
pciide0 at pci0 dev 7 function 1: VIA Technologies VT82C686A (Apollo KX133) ATA100 controller
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <Maxtor 32049H2>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 19541 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 40021632 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
pciide0: secondary channel configured to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <PLEXTOR CD-R PX-W4012A, 161647, 1.01> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
uhci0 at pci0 dev 7 function 2: VIA Technologies VT83C572 USB Controller (rev. 0x16)
uhci0: interrupting at irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 7 function 3: VIA Technologies VT83C572 USB Controller (rev. 0x16)
uhci1: interrupting at irq 9
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
viapm0 at pci0 dev 7 function 4
viaenv0 at viapm0
vga1 at pci0 dev 9 function 0: Matrox MGA Millennium II 2164W (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
Matrox MGA Millennium 2064W ("Storm") (VGA display, revision 0x01) at pci0 dev 10 function 0 not configured
ne2 at pci0 dev 12 function 0: RealTek 8029 Ethernet
ne2: Ethernet address 00:50:bf:56:f4:29
ne2: 10base2, 10baseT, 10baseT-FDX, auto, default [0x00 0x30] auto
ne2: interrupting at irq 5
eap0 at pci0 dev 14 function 0: Ensoniq CT5880 CT5880-D (rev. 0x03)
eap0: interrupting at irq 10
eap0: SigmaTel STAC9708 codec; 18 bit DAC, 18 bit ADC, SigmaTel 3D
eap0: surround DAC
audio0 at eap0: full duplex, mmap, independent
midi0 at eap0: AudioPCI MIDI UART
ahc1 at pci0 dev 15 function 0
ahc1: interrupting at irq 9
ahc1: aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
scsibus0 at ahc1: 16 targets, 8 luns per target
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2
Kernelized RAIDframe activated
scsibus0: waiting 2 seconds for devices to settle...
uhidev0 at uhub0 port 2 configuration 1 interface 0
uhidev0: Microsoft Natural Keyboard Elite, rev 1.00/0.82, addr 2, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
sd0 at scsibus0 target 0 lun 0: <IBM, DDYS-T18350N, S96H> disk fixed
sd0: 17501 MB, 15110 cyl, 6 head, 395 sec, 512 bytes/sect x 35843670 sectors
sd0: sync (50.00ns offset 63), 16-bit (40.000MB/s) transfers, tagged queueing
sd1 at scsibus0 target 1 lun 0: <IBM, DPSS-318350N, S96H> disk fixed
sd1: 17501 MB, 14627 cyl, 5 head, 490 sec, 512 bytes/sect x 35843670 sectors
sd1: sync (50.00ns offset 63), 16-bit (40.000MB/s) transfers, tagged queueing
sd2 at scsibus0 target 2 lun 0: <IOMEGA, ZIP 100, J.03> disk removable
sd2: drive offline
sd2: async, 8-bit transfers
sd3 at scsibus0 target 3 lun 0: <FUJITSU, MCE3130SS, 0070> optical removable
sd3: 1183 MB, 295 cyl, 64 head, 32 sec, 2048 bytes/sect x 605846 sectors
sd3: sync (50.00ns offset 15), 8-bit (20.000MB/s) transfers
st0 at scsibus0 target 4 lun 0: <EXABYTE, EXB-85058HE-0000, 0096> tape removable
st0: drive empty
st0: sync (200.00ns offset 15), 8-bit (5.000MB/s) transfers
wd0: no disk label
wd0: no disk label
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
IP Filter: v3.4.29 initialized. Default = pass all, Logging = enabled
ahc1:SCB 0xf - timed out
>How-To-Repeat:
Try to stop a disk attached to an ahc with scsictl disk stop.
>Fix:
Not known.
>Release-Note:
>Audit-Trail:
>Unformatted:
>>>>>>>>>>>>>>>>>> Dump Card State Begins <<<<<<<<<<<<<<<<<
ahc1: Dumping Card State while idle, at SEQADDR 0x9
Card was paused
ACCUM = 0x4, SINDEX = 0x64, DINDEX = 0x65, ARG_2 = 0x3
HCNT = 0x0 SCBPTR = 0xe
SCSIPHASE[0x0] SCSISIGI[0x0] ERROR[0x0] SCSIBUSL[0x0]
LASTPHASE[0x1] SCSISEQ[0x12] SBLKCTL[0x6] SCSIRATE[0x0]
SEQCTL[0x10] SEQ_FLAGS[0xc0] SSTAT0[0x0] SSTAT1[0x8]
SSTAT2[0x0] SSTAT3[0x0] SIMODE0[0x8] SIMODE1[0xa4]
SXFRCTL0[0x80] DFCNTRL[0x0] DFSTATUS[0x89]
STACK: 0x0 0x16b 0x180 0x3
SCB count = 32
Kernel NEXTQSCB = 5
Card NEXTQSCB = 5
QINFIFO entries:
Waiting Queue entries:
Disconnected Queue entries: 14:15
QOUTFIFO entries:
Sequencer Free SCB List: 3 1 13 2 12 6 8 5 15 10 9 4 11 0 7 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Sequencer SCB Info:
0 SCB_CONTROL[0xe0]
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
1 SCB_CONTROL[0xe0]
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
2 SCB_CONTROL[0xe0]
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
3 SCB_CONTROL[0xe0]
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
4 SCB_CONTROL[0xe0]
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
5 SCB_CONTROL[0xe0]
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
6 SCB_CONTROL[0xe0]
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
7 SCB_CONTROL[0xe0]
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
8 SCB_CONTROL[0xe0]
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
9 SCB_CONTROL[0xe0]
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
10 SCB_CONTROL[0xe0]
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
11 SCB_CONTROL[0xe0]
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
12 SCB_CONTROL[0xe0]
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
13 SCB_CONTROL[0xe0]
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
14 SCB_CONTROL[0x66]
SCB_SCSIID[0x17] SCB_LUN[0x0] SCB_TAG[0xf]
15 SCB_CONTROL[0xe0]
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
16 SCB_CONTROL[0x0]
SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
17 SCB_CONTROL[0x0]
SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
18 SCB_CONTROL[0x0]
SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
19 SCB_CONTROL[0x0]
SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
20 SCB_CONTROL[0x0]
SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
21 SCB_CONTROL[0x0]
SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
22 SCB_CONTROL[0x0]
SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
23 SCB_CONTROL[0x0]
SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
24 SCB_CONTROL[0x0]
SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
25 SCB_CONTROL[0x0]
SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
26 SCB_CONTROL[0x0]
SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
27 SCB_CONTROL[0x0]
SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
28 SCB_CONTROL[0x0]
SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
29 SCB_CONTROL[0x0]
SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
30 SCB_CONTROL[0x0]
SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
31 SCB_CONTROL[0x0]
SCB_SCSIID[0xff] SCB_LUN[0xff] SCB_TAG[0xff]
Pending list:
15 SCB_CONTROL[0x62]
SCB_SCSIID[0x17] SCB_LUN[0x0]
Kernel Free SCB list: 3 0 14 13 1 8 31 9 6 2 12 11 7 4 10 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
>>>>>>>>>>>>>>>>>
ahc1:Queuing a BDR SCB
ahc1:Bus Device Reset Message Sent
sd1(ahc1:0:1:0): ahc1: no longer in timeout, status = 0
ahc1: Bus Device Reset on A:1. 1 SCBs aborted