From the logs, I would guess that this is a bug in the scsi midlevel. I
would have to download and unpack a 2.2 kernel tree to say for sure.
-Eric
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, March 17, 2000 9:32 AM
Subject: qlogifc, scsi, SMP alpha-linux, kernel fails on loopdown
> We are developing a SCSI driver for a custom FC storage controller. One
> of
> the requirements is that the system should not crash if fc cable is
> removed.
> But currently we get read_lock/write_lock continously and system becomes
> unresponsive.
>
> ---
>
> We are able to reproduce similar behaviour using Qlogic card with
> qlogicfc driver
> built into the kernel ( kernel 2.2.14 ) on a SMP alpha DS20 server.
>
> if the disk is removed during the I/O ( coping data ), two scenarious
> happen.
> 1.write_lock/read_lock stuck ( attaching dumps in isp1.log file )
> 2.Scheduling in interrupt and hangs ( attaching dumps in isp2.log
> file)
>
> Is it a scsi-mid layer problem or driver problem?
>
> ---
>
> Please post a reply to [EMAIL PROTECTED] as I am not on the
> mailing list.
>
> Thanks,
> Kuldeep
> [EMAIL PROTECTED]
----------------------------------------------------------------------------
----
> Linux version 2.2.14 (root@alpha-linux) (gcc version egcs-2.91.66
19990314/Linux (egcs-1.1.2 release)) #11 SMP Fri Mar 17 15:46:26 EST 2000
> Booting GENERIC on Tsunami variation Goldrush using machine vector DP264
from SRM
> Command line: root=/dev/sda2 console=ttyS1,9600 console=tty0
bootdevice=sda2 bootfile=boot/smp14.gz
> SMP: 2 CPUs probed -- cpu_present_mask = 3
> Console: colour VGA+ 80x25
> Calibrating delay loop... 996.15 BogoMIPS
> Memory: 254888k available
> Dentry hash table entries: 32768 (order 6, 512k)
> Buffer cache hash table entries: 262144 (order 8, 2048k)
> Page cache hash table entries: 32768 (order 5, 256k)
> POSIX conformance testing by UNIFIX
> SMP starting up secondaries.
> recv_secondary_console_msg: on 0 message is 'P01>>>START P01>>>'
> Calibrating delay loop... 994.05 BogoMIPS
> SMP: Total of 2 processors activated (1990.20 BogoMIPS).
> Alpha PCI BIOS32 revision 0.04
> PCI: Probing PCI hardware
> SMC37c669 Super I/O Controller found @ 0x3f0
> Linux NET4.0 for Linux 2.2
> Based upon Swansea University Computer Society NET3.039
> NET4: Unix domain sockets 1.0 for Linux NET4.0.
> NET4: Linux TCP/IP 1.0 for NET4.0
> IP Protocols: ICMP, UDP, TCP
> TCP: Hash tables configured (ehash 262144 bhash 65536)
> Starting kswapd v 1.5
> Detected PS/2 Mouse Port.
> Serial driver version 4.27 with no serial options enabled
> ttyS00 at 0x03f8 (irq = 4) is a 16550A
> ttyS01 at 0x02f8 (irq = 3) is a 16550A
> pty: 256 Unix98 ptys configured
> RAM disk driver initialized: 16 RAM disks of 4096K size
> loop: registered device at major 7
> Floppy drive(s): fd0 is 2.88M
> floppy0: no floppy controllers found
> qlogicisp : new isp1020 revision ID (5)
> qlogicisp : new isp1020 revision ID (5)
> scsi0 : QLogic ISP1020 SCSI on PCI bus 02 device 38 irq 47 I/O base
0x100009000
> scsi1 : QLogic ISP1020 SCSI on PCI bus 02 device 48 irq 39 I/O base
0x10000a000
> scsi : 2 hosts.
> Vendor: COMPAQ Model: BB00911CA0 Rev: 3B05
> Type: Direct-Access ANSI SCSI revision: 02
> Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
> Vendor: DEC Model: RRD47 (C) DEC Rev: 1206
> Type: CD-ROM ANSI SCSI revision: 02
> Detected scsi CD-ROM sr0 at scsi1, channel 0, id 5, lun 0
> scsi : detected 1 SCSI cdrom 1 SCSI disk total.
> sr0: scsi3-mmc drive: 10x/32x cd/rw xa/form2 cdda tray
> Uniform CDROM driver Revision: 2.56
> SCSI device sda: hdwr sector= 512 bytes. Sectors= 17773524 [8678 MB] [8.7
GB]
> eth0: DE500-BA at 0x8000 (PCI bus 0, device 9), h/w address
08:00:2b:c3:d1:4c,
> and requires IRQ23 (provided by PCI BIOS).
> de4x5.c:V0.544 1999/5/8 [EMAIL PROTECTED]
> Partition check:
> sda: sda1 sda2 sda3 sda4
> VFS: Mounted root (ext2 filesystem) readonly.
> Freeing unused kernel memory: 96k freed
> eth0: media is TP.
> qlogicfc0 : new isp2x00 revision ID (4)
> qlogicfc0 : link is up
> scsi2 : QLogic ISP2100 SCSI on PCI bus 02 device 40 irq 43 base
0x100009800
> scsi : 3 hosts.
> qlogicfc0 : Port Database
> wwn: 200000e08b002682 scsi_id: 0 loop_id: 0
> wwn: 2100002037228121 scsi_id: 1 loop_id: 1
> Vendor: SEAGATE Model: ST39102FC Rev: 0007
> Type: Direct-Access ANSI SCSI revision: 02
> Detected scsi disk sdb at scsi2, channel 0, id 1, lun 0
> SCSI device sdb: hdwr sector= 512 bytes. Sectors= 17783240 [8683 MB] [8.7
GB]
> sdb: sdb1 sdb2 sdb3 sdb4 < sdb5 sdb6 sdb7 >
> scsidisk I/O error: dev 08:11, sector 98318
> scsidisk I/O error: dev 08:11, sector 98446
>
> ... <snip>
>
> scsidisk I/O error: dev 08:11, sector 180238
> scsidisk I/O error: dev 08:11, sector 180366
> scsidisk I/O error: dev 08:11, sector 180494
> scsi.c:1695 spinlock stuck in swapper at fffffc00004248d0(0) owner
scsi_eh_2 at fffffc000042ca9c(1) scsi_error.c:1985
> scsidisk I/O error: dev 08:11, sector 180622
>
> ... <snip>
>
> scsidisk I/O error: dev 08:11, sector 196622
> scsidisk I/O error: dev 08:11, sector 442382
> scsi.c:1695 spinlock grabbed in swapper at fffffc00004248d0(0) 0 ticks
> Aiee, killing interrupt handler
> SCSI disk error : host 2 channel 0 id 1 lun 0 return code = 8000002
> write_lock stuck at fffffc000032d0dc
> read_lock stuck at fffffc000032cf68
> read_lock stuck at fffffc000032cf68
> read_lock stuck at fffffc000032cf68
>
----------------------------------------------------------------------------
----
> qlogicfc0 : link is down
> SCSI disk error : host 2 channel 0 id 1 lun 0 return code = 6040000
> scsidisk I/O error: dev 08:11, sector 75480
> scsidisk I/O error: dev 08:11, sector 75482
> scsidisk I/O error: dev 08:11, sector 75736
> scsidisk I/O error: dev 08:11, sector 75864
>
> ... <snip>
>
> scsidisk I/O error: dev 08:11, sector 78040
> scsidisk I/O error: dev 08:11, sector 78168
> ll_rw_blk.c:229 spinlock stuck in kflushd at fffffc00003e1a60(1) owner
swapper at fffffc00004248d0(0) scsi.c:1695
> scsidisk I/O error: dev 08:11, sector 78296
> scsidisk I/O error: dev 08:11, sector 78424
> scsidisk I/O error: dev 08:11, sector 78552
>
> ... <snip>
>
> scsidisk I/O error: dev 08:13, sector 81396
> scsidisk I/O error: dev 08:13, sector 81524
> scsidisk I/O error: dev 08:13, sector 81652
> SCSI disk error : host 2 channel 0 id 1 lun 0 return code = 6040000
> scsidisk I/O error: dev 08:11, sector 74712
> scsidisk I/O error: dev 08:11, sector 74714
> SCSI disk error : host 2 channel 0 id 1 lun 0 return code = 6040000
> scsidisk I/O error: dev 08:11, sector 75608
> scsidisk I/O error: dev 08:11, sector 75610
> SCSI disk error : host 2 channel 0 id 1 lun 0 return code = 6040000
> scsidisk I/O error: dev 08:11, sector 74968
> scsidisk I/O error: dev 08:11, sector 74970
> SCSI disk error : host 2 channel 0 id 1 lun 0 return code = 6040000
> scsidisk I/O error: dev 08:11, sector 74840
> scsidisk I/O error: dev 08:11, sector 74842
> SCSI disk error : host 2 channel 0 id 1 lun 0 return code = 6040000
> scsidisk I/O error: dev 08:11, sector 75224
> scsidisk I/O error: dev 08:11, sector 75226
> SCSI disk error : host 2 channel 0 id 1 lun 0 return code = 6040000
> scsidisk I/O error: dev 08:11, sector 75352
> scsidisk I/O error: dev 08:11, sector 75354
> SCSI disk error : host 2 channel 0 id 1 lun 0 return code = 6040000
> scsidisk I/O error: dev 08:11, sector 75096
> scsidisk I/O error: dev 08:11, sector 75098
> ll_rw_blk.c:229 spinlock grabbed in kflushd at fffffc00003e1a60(1) 0 ticks
> Scheduling in interrupt
> Scheduling in interrupt
> Scheduling in interrupt
> Scheduling in interrupt
> Scheduling in interrupt
> Scheduling in interrupt
> Scheduling in interrupt
>