PROBLEM: Kernel panic mounting a CD-A in my SCSI reader with AHA-1520B

Jose Dapena Paz (jdapena@mundivia.es)
Sat, 4 Dec 1999 17:00:50 +0100 (CET)


[1.] One line summary of the problem:

Kernel panic mounting a CD-A in my SCSI reader with AHA-152x.

[2.] Full description of the problem/report:

I have an AHA 1520B Adaptec SCSI controller. It handles two
devices: a Pioneer 40x SCSI CD reader and a Teac CD-R55s 4x12 CD writer
(more info in section 7.5 of the report).

When I try to mount a CD-Audio, the kernel get a Panic from the
controller driver. I tried many of them, but the results do not change.

The panic is this "aha152x panic: target left COMMAND".

Note: YES, I know I shouldn't mount an audio CD, but I can make a
mistake and mount an Audio-CD thinking it's my favourite Linux
Distribution disk 1. SO it's a problem.

[3.] Keywords (i.e., modules, networking, kernel):

scsi, aha152x

[4.] Kernel version (from /proc/version):

Linux dash 2.2.12 #3 dom oct 17 18:01:37 CEST 1999 i586 unknown

[5.] Output of Oops.. message (if applicable) with symbolic information
resolved (see Documentation/oops-tracing.txt)

[6.] A small shell script or example program which triggers the
problem (if possible)

It's simple.
1.) I put a CD-Audio in my reader
2.) Mount /cdrom

[7.] Environment

[7.1.] Software (add the output of the ver_linux script here)

-- Versions installed: (if some fields are empty or looks
-- unusual then possibly you have very old versions)
Linux dash 2.2.12 #3 dom oct 17 18:01:37 CEST 1999 i586 unknown
Kernel modules 2.1.121
Gnu C 2.95.1
Binutils 2.9.1.0.25
Linux C Library 2.1.2
Dynamic linker ldd (GNU libc) 2.1.2
Procps 2.0.2
Mount 2.9w
Net-tools 2.01
Console-tools 0.2.1
Sh-utils 2.0
Sh-utils Parker.
Sh-utils
Sh-utils Inc.
Sh-utils NO
Sh-utils PURPOSE.
Modules Loaded ppa es1371 soundcore aha152x lp

[7.2.] Processor information (from /proc/cpuinfo):

$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 5
model : 4
model name : Pentium MMX
stepping : 3
cpu MHz : 199.435053
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : yes
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr mce cx8 mmx
bogomips : 398.13

[7.3.] Module information (from /proc/modules):

$ cat /proc/modules
ppa 9668 0 (unused)
es1371 22720 0 (unused)
soundcore 2564 4 [es1371]
aha152x 26456 0
lp 5168 0 (unused)

[7.4.] SCSI information (from /proc/scsi/scsi)

Attached devices:
Host: scsi0 Channel: 00 Id: 02 Lun: 00
Vendor: PIONEER Model: CD-ROM DR-966 Rev: 1.00
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 00
Vendor: TEAC Model: CD-R55S Rev: 1.0Q
Type: CD-ROM ANSI SCSI revision: 02

[7.5.] Other information that might be relevant to the problem
(please look in /proc and include all information that you
think to be relevant):

$ cat /proc/scsi/aha152x/0
Adaptec 152x SCSI driver; $Revision: 1.7 $
ioports 0x0140 to 0x015f
interrupt 0x0c
disconnection/reconnection enabled
parity checking enabled
synchronous transfers disabled
0 commands currently queued
enabled debugging options: (abort) (reset)

queue status:
no not yet issued commands
no current command
no disconnected commands

waiting: SCSISEQ (); SCSISIG (DATA OUT); INTSTAT (lo); SSTAT (BUSFREE
PHASECHG ); SSTAT (); SXFRCTL0 (CH1 ); SIGNAL (); SELID (84), SSTAT2
(SEMPTY ); SFCNT (0); SCSICNT (0), OFFCNT(0), SSTAT4 (); DMACNTRL0 (16BIT
PIO READ INTEN ); DMASTAT (DFIFOEMP )

enabled interrupts ()

$ cat /proc/sys/dev/cdrom/info
CD-ROM information, Id: cdrom.c 2.55 1999/04/25

drive name: sr1 sr0
drive speed: 1 40
drive # of slots: 1 1
Can close tray: 1 1
Can open tray: 1 1
Can lock tray: 1 1
Can change speed: 0 1
Can select disk: 0 0
Can read multisession: 1 1
Can read MCN: 1 1
Reports media changed: 1 1
Can play audio: 1 1

-
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/