Oops in 2.2.10 with AHA-2940U2W SCSI, Yamaha 4416s CDRW

Benjamin Lewis (bclewis@cs.sfu.ca)
Sat, 3 Jul 1999 15:23:35 -0700 (PDT)


Hi.

I'm having the following problems with a Yamaha 4416s CDRW drive in
conjunction with an Adaptec 2940 U2W SCSI controller:

When I attempt to mount the drive, I get numerous timeout errors (shown
below), usually but not always followed by a kernel panic. Occasionally
the mount is successful, and I can list files in the root directory of the
CD, but if I try to list sub-directories I get the same problem.

The oops occurs in the function aic7xxx_handle_scsiint, specifically at
the line 6197:

if (scb->cmd == p->dev_dtr_cmnd[TARGET_INDEX(scb->cmd)])

(see below for more info)

I'm using kernel 2.2.10, glibc2.1, egcs-2.91.66 on a modified redhat5.1.
I've updated the aha2094 to bios v2.11.0
MoBo: A-Open AX59Pro with AMD K6-2 300Mz
I don't seem to have any IRQ conflicts.

I am not on the kernel mailing list (I apologize if this is bad form), so
I would appreciate a CC of any responses. Please let me know if any more
information is required. Any help in this matter would be greatly
appreciated.

Thank you,
Ben Lewis.

---------------------------------------------------

boot messages (complete boot messages are listed below):

(scsi0) <Adaptec AHA-294X Ultra2 SCSI host adapter> found at PCI 11/0
(scsi0) Wide Channel, SCSI ID=7, 32/255 SCBs
(scsi0) Downloading sequencer code... 374 instructions downloaded
scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.17/3.2.4
<Adaptec AHA-294X Ultra2 SCSI host adapter>
scsi : 1 host.
(scsi0:0:3:0) Synchronous at 8.0 Mbyte/sec, offset 31.
Vendor: YAMAHA Model: CRW4416S Rev: 1.0g
Type: CD-ROM ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 3, lun 0
scsi : detected 1 SCSI cdrom total.
sr0: scsi3-mmc drive: 16x/16x writer cd/rw xa/form2 cdda tray

kernel log messages:

Jul 1 01:26:27 eusa kernel: scsi : aborting command due to timeout : pid
17, sc
si0, channel 0, id 3, lun 0 Test Unit Ready 00 00 00 00 00
Jul 1 01:26:57 eusa kernel: scsi : aborting command due to timeout : pid
17, sc
si0, channel 0, id 3, lun 0 Test Unit Ready 00 00 00 00 00
Jul 1 01:26:57 eusa kernel: (scsi0:0:15:7) Invalid SCB during SEQINT
0x71, SCB_
TAG 255.
Jul 1 01:27:27 eusa kernel: scsi : aborting command due to timeout : pid
17, sc
si0, channel 0, id 3, lun 0 Request Sense 00 00 00 10 00
Jul 1 01:27:29 eusa kernel: SCSI host 0 abort (pid 17) timed out -
resetting
Jul 1 01:27:29 eusa kernel: SCSI bus is being reset for host 0 channel 0.
Jul 1 01:28:00 eusa kernel: SCSI host 0 abort (pid 17) timed out -
resetting
Jul 1 01:28:00 eusa kernel: SCSI bus is being reset for host 0 channel 0.
Jul 1 01:28:01 eusa kernel: SCSI host 0 channel 0 reset (pid 17) timed
out - tr
ying harder
Jul 1 01:28:01 eusa kernel: SCSI bus is being reset for host 0 channel 0.
Jul 1 01:28:01 eusa kernel: (scsi0:0:3:0) Performing Domain validation.
Jul 1 01:28:32 eusa kernel: SCSI host 0 abort (pid 17) timed out -
resetting
Jul 1 01:28:32 eusa kernel: SCSI bus is being reset for host 0 channel 0.
Jul 1 01:28:32 eusa kernel: (scsi0:0:3:0) Successfully completed Domain
validat
ion.

panic:

Unable to handle kernel NULL pointer dereference at virtual address
00000004
current->tss.cr3 = 00101000, %cr = 00101000
*pde = 00000000
Oops: 0000
CPU: 0
EIP: 0010:[<c01c6fc3>]
EFLAGS: 00010046
eax: 00001064 ebx: c7fe3400 ecx: c009a878 edx: 0000001f
esi: c009a878 edi: 00000000 ebp: c8000000 esp: c0229e94
ds: 0018 es: 0018 ss: 0018
Process swapper (pid: 0, process nr: 0, stackpage = c0229000)
Stack: c009a878 0000000b c0235dbe c0235dff 0000003b 000000ff c01ffbe0
c01cd61d
c009a878 c7fe3400 00000003 c009a878 00000286 c0229f68 0000000b
c01c7e58
c009a878 00000004 c009a878 00000286 c0229f68 0000000b 00000001
00000004
Call Trace: [<c01ffbe0>] [<c01cd61d>] [<c01c7e58>] [<c01c7e94>]
[<c010adc9>] [<c
010ab1f>] [<c0118031>]
[<c010aeee>] [<c0109d60>] [<c010845f>] [<c0106000>] [<c0108518>]
[<c0109c
a4>] [<c0106000>] [<c010607b>]
[<c0106000>] [<c0100176>]
Code: 8b 47 04 31 db 31 d2 8a 58 40 8a 50 42 c1 e2 03 09 d3 8d 96
Aiee, killing interrupt handler
Kernel panic: Attempted to kill the idle task!
In swapper task - not syncing

gdb:

(gdb) l *0xc01c6fc3
0xc01c6fc3 is in aic7xxx_handle_scsiint (aic7xxx.c:6197).
6192 * we get a reset since this abort just failed.
6193 */
6194 cmd->result = 0;
6195 scb = NULL;
6196 }
6197 if (scb->cmd == p->dev_dtr_cmnd[TARGET_INDEX(scb->cmd)])
6198 {
6199 /*
6200 * Turn off the needsdtr, needwdtr, and needppr bits since
this
device
6201 * doesn't seem to exist.

entire /var/log/dmesg:

Linux version 2.2.10 (root@eusa) (gcc version egcs-2.91.66 19990314
(egcs-1.1.2
release)) #6 Wed Jun 30 19:06:06 PDT 1999
Detected 300694234 Hz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 599.65 BogoMIPS
Memory: 127956k/131008k available (1072k kernel code, 408k reserved, 1532k
data,
40k init)
CPU: AMD AMD-K6(tm) 3D processor stepping 04
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
PCI: PCI BIOS revision 2.10 entry at 0xfb4f0
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: 00:38 [1106/0586]: Work around ISA DMA hangs (00)
Activating ISA DMA hang workarounds.
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
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
ttyS03 at 0x02e8 (irq = 3) is a 16550A
pty: 256 Unix98 ptys configured
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.9)
VP_IDE: IDE controller on PCI bus 00 dev 39
VP_IDE: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x6400-0x6407, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0x6408-0x640f, BIOS settings: hdc:DMA, hdd:DMA
hda: QUANTUM FIREBALL SE6.4A, ATA DISK drive
hdb: MATSHITA CR-587, ATAPI CDROM drive
hdc: FUJITSU MPA3035ATU, ATA DISK drive
hdd: LS-120 VER4 07 UHD Floppy, ATAPI FLOPPY drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: QUANTUM FIREBALL SE6.4A, 6149MB w/80kB Cache, CHS=784/255/63, UDMA
hdc: FUJITSU MPA3035ATU, 3337MB w/0kB Cache, CHS=6781/16/63, UDMA
hdb: ATAPI 24X CD-ROM drive, 128kB Cache
Uniform CDROM driver Revision: 2.55
hdd: 123264kB, 963/8/32 CHS, 533 kBps, 512 sector size, 720 rpm
hdd: The drive reports both 126222336 and 0 bytes as its capacity
floppy0: no floppy controllers found
(scsi0) <Adaptec AHA-294X Ultra2 SCSI host adapter> found at PCI 11/0
(scsi0) Wide Channel, SCSI ID=7, 32/255 SCBs
(scsi0) Downloading sequencer code... 374 instructions downloaded
scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.17/3.2.4
<Adaptec AHA-294X Ultra2 SCSI host adapter>
scsi : 1 host.
(scsi0:0:3:0) Synchronous at 8.0 Mbyte/sec, offset 31.
Vendor: YAMAHA Model: CRW4416S Rev: 1.0g
Type: CD-ROM ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 3, lun 0
scsi : detected 1 SCSI cdrom total.
sr0: scsi3-mmc drive: 16x/16x writer cd/rw xa/form2 cdda tray
Partition check:
hda: hda1 hda2 < hda5 hda6 hda7 hda8 hda9 hda10 >
hdc: [PTBL] [3390/32/63] hdc1 hdc2 < hdc5 hdc6 >
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 40k freed
Adding Swap: 128484k swap-space (priority -1)
<SoundBlaster EMU8000 (RAM512k)>
Soundblaster audio driver Copyright (C) by Hannu Savolainen 1993-1996
SB 4.16 detected OK (220)
i2c module initialized.
smbus.o version 2.3.2 (19990507)
i2c: algorithm Non-I2C SMBus adapter registered.
smbus.o initialized
sensors.o version 2.3.2 (19990507)
eeprom.o version 2.3.2 (19990507)
i2c: driver EEPROM READER registered.
i2c: algorithm Bit-shift algorithm registered.
i2c: client [EEPROM chip] registered to adapter [VIA i2c](pos. 0).
i2c: client [EEPROM chip] registered to adapter [VIA i2c](pos. 1).
i2c: client [EEPROM chip] registered to adapter [VIA i2c](pos. 2).
i2c: adapter VIA i2c registered.
Via i2c: Module succesfully loaded
i2c-proc.o version 2.3.2 (19990507)
i2c: driver i2c-proc dummy driver registered.
i2c: client [i2c-proc dummy client] registered to adapter [VIA i2c](pos.
3).
gl518sm.o version 2.3.2 (19990507)
i2c: driver GL518SM sensor chip driver registered.
i2c: client [GL518SM Revision 0x00 chip] registered to adapter [VIA
i2c](pos. 4)
.

-- 
Benjamin Lewis

Solipsists of the World... you are already united. -- Kayvan Sylvan

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/