PROBLEM: Posible DMA problem in IDE-SCSI emulation

Jorge Gonzalez Villalonga (jorgegv@icai.upco.es)
Thu, 25 Mar 1999 13:43:59 +0100


This is a multi-part message in MIME format.
--------------F5FDAF450D5AD933836F5F43
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

attached is a bug report form with a problem which caused me some hangs
lately.

-- 
Jorge Gonzalez  <jorgegv@icai.upco.es>       -o)
ICAI - Universidad Pontificia Comillas       /\\
Administrador de Sistemas                   _\_v
--------------F5FDAF450D5AD933836F5F43
Content-Type: text/plain; charset=us-ascii; name="REPORTING-BUGS"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="REPORTING-BUGS"

[1.] One line summary of the problem:

Posible DMA problem in IDE-SCSI emulation.

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

With IDE-SCSI emulation, I got a kernel panic from the SCSI subsystem (text follows) about a DMA leak. I have not UDMA enabled when this happened, but last week I did and mi machine crashed 3 times in one day, presumably due to UDMA, or some kind of interaction between UDMA and IDE-SCSI emulation. When I deactivated UDMA (big performance loss ;-((), the problem seemed to go away - till today. Magic SysRq worked great. ;-)

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

ide, scsi, panic

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

Linux version 2.2.3 (root@pcmaster.dea.icai.upco.es) (gcc version 2.7.2.3) #2 Tue Mar 23 12:16:54 CET 1999

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

The exact text from the panic is this (I include several lines after and before, just in case it helps):

-- /var/log/messages -- Mar 25 12:00:29 pcmaster kernel: scsi0 : SCSI host adapter emulation for IDE ATAPI devices Mar 25 12:00:29 pcmaster kernel: scsi : 1 host. Mar 25 12:00:29 pcmaster kernel: Vendor: HP Model: CD-Writer+ 7100 Rev: 1.00 Mar 25 12:00:29 pcmaster kernel: Type: CD-ROM ANSI SCSI revision: 02 Mar 25 12:00:29 pcmaster kernel: Vendor: ATAPI Model: CD-ROM DRIVE-36X Rev: 36FP Mar 25 12:00:29 pcmaster kernel: Type: CD-ROM ANSI SCSI revision: 02 Mar 25 12:00:29 pcmaster kernel: Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0 Mar 25 12:00:29 pcmaster kernel: Detected scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0 Mar 25 12:00:29 pcmaster kernel: sr0: scsi3-mmc drive: 2x/6x writer cd/rw xa/form2 cdda tray Mar 25 12:00:29 pcmaster kernel: Uniform CDROM driver Revision: 2.52 Mar 25 12:00:29 pcmaster kernel: sr1: scsi3-mmc drive: 32x/32x cd/rw xa/form2 cdda tray Mar 25 12:06:05 pcmaster kernel: scsi0: MEDIUM ERROR on channel 0, id 1, lun 0, CDB: Request Sense 00 00 00 10 00 Mar 25 12:06:05 pcmaster kernel: extra data not valid Current error sr0b:01: sense key Medium Error Mar 25 12:06:05 pcmaster kernel: Additional sense indicates No seek complete Mar 25 12:06:05 pcmaster kernel: CD-ROM I/O error: dev 0b:01, sector 1299912 Mar 25 12:07:35 pcmaster kernel: scsi : 0 hosts. Mar 25 12:07:35 pcmaster kernel: Uniform CD-ROM driver unloaded Mar 25 12:08:57 pcmaster kernel: scsi0 : SCSI host adapter emulation for IDE ATAPI devices Mar 25 12:08:57 pcmaster kernel: scsi : 1 host. Mar 25 12:08:57 pcmaster kernel: Vendor: HP Model: CD-Writer+ 7100 Rev: 1.00 Mar 25 12:08:57 pcmaster kernel: Type: CD-ROM ANSI SCSI revision: 02 Mar 25 12:08:57 pcmaster kernel: Vendor: ATAPI Model: CD-ROM DRIVE-36X Rev: 36FP Mar 25 12:08:57 pcmaster kernel: Type: CD-ROM ANSI SCSI revision: 02 Mar 25 12:11:15 pcmaster ftpd[12254]: FTP LOGIN FROM clint.dea.icai.upco.es [130.206.71.200], jorgegv Mar 25 12:11:55 pcmaster ftpd[12254]: FTP session closed Mar 25 12:30:58 pcmaster PAM_pwdb[12274]: (su) session opened for user root by jorgegv(uid=0) Mar 25 12:49:35 pcmaster kernel: scsi : 0 hosts. Mar 25 12:49:35 pcmaster kernel: Kernel panic: SCSI DMA pool memory leak 127 128 Mar 25 12:49:35 pcmaster kernel: Mar 25 12:50:38 pcmaster kernel: SysRq: Emergency Sync Mar 25 12:50:39 pcmaster kernel: Syncing device 03:03 ... OK Mar 25 12:50:39 pcmaster kernel: Done. -- end of /var/log/messages --

[6.] A small shell script or example program which triggers the problem (if possible) [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 pcmaster.dea.icai.upco.es 2.2.3 #2 Tue Mar 23 12:16:54 CET 1999 i686 unknown Kernel modules 2.1.121 Gnu C 2.7.2.3 Binutils 2.9.1.0.15 Linux C Library 2.0.7 Dynamic linker ldd (GNU libc) 2.0.7 Linux C++ Library 2.8.0 Procps 1.2.9 Mount 2.8a Net-tools (1999-01-01) Kbd 0.96 Sh-utils 1.16

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

processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 5 model name : Pentium II (Deschutes) stepping : 2 cpu MHz : 334.094038 cache size : 512 KB fdiv_bug : no hlt_bug : no sep_bug : no f00f_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx osfxsr bogomips : 333.41

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

sr_mod 15796 0 (autoclean) (unused) ide-scsi 6608 0 (autoclean) sg 3724 0 (autoclean) scsi_mod 46172 3 (autoclean) [sr_mod ide-scsi sg] cdrom 11584 0 (autoclean) [sr_mod] 3c59x 17456 1 (autoclean)

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

Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: HP Model: CD-Writer+ 7100 Rev: 1.00 Type: CD-ROM ANSI SCSI revision: 02 Host: scsi0 Channel: 00 Id: 01 Lun: 00 Vendor: ATAPI Model: CD-ROM DRIVE-36X Rev: 36FP 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):

Don't know. This is my first bug report.

[X.] Other notes, patches, fixes, workarounds:

BTW, last week, also, I did a "lsmod" sometime and the ide-scsi module showed up as "(uninitialized)". Don't know exactly what this implies, but doesn't look very good...

--------------F5FDAF450D5AD933836F5F43--

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