[4857] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Bug in SCSI-Module support (2.0.35)

daemon@ATHENA.MIT.EDU (Thorsten Knabe)
Sat Oct 10 23:12:54 1998

Date: 	Fri, 9 Oct 1998 23:49:30 +0200 (MET DST)
From: Thorsten Knabe <tek@rbg.informatik.tu-darmstadt.de>
Reply-To: Thorsten Knabe <tek@rbg.informatik.tu-darmstadt.de>
To: linux-scsi@vger.rutgers.edu

Hello SCSI gurus!

I think I found a new(?) bug in the Linux 2.0.35 SCSI driver. The bug occurs
in the following situation:

I've 2 different SCSI hostadapters and their low-level drivers are
compiled as modules. One of them uses the ncr53c8xx driver, the other
one uses the g_NCR5380 driver, however the bug should be reproduceable
with any other combination of two SCSI low-level drivers.

When I load them both into the kernel for the first time everything is
fine:
> modprobe ncr53c8xx
> modprobe g_NCR5380
> cat /proc/scsi/scsi 
Attached devices: 
Host: scsi0 Channel: 00 Id: 01 Lun: 00
  Vendor: RICOH    Model: MP6200S          Rev: 2.20
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 01 Lun: 00
  Vendor: MUSTEK   Model: MFS-06000CX      Rev: 4.05
  Type:   Scanner                          ANSI SCSI revision: 01

When I unload the first one and reload it again I get the following
situation:

> rmmod ncr53c8xx
> modprobe ncr53c8xx
> cat /proc/scsi/scsi 
Attached devices: 
Host: scsi1 Channel: 00 Id: 01 Lun: 00
  Vendor: MUSTEK   Model: MFS-06000CX      Rev: 4.05
  Type:   Scanner                          ANSI SCSI revision: 01
Host: scsi1 Channel: 00 Id: 01 Lun: 00
  Vendor: RICOH    Model: MP6200S          Rev: 2.20
  Type:   CD-ROM                           ANSI SCSI revision: 02

> ll -R /proc/scsi/
total 0
dr-xr-xr-x   2 root     root            0 Sep 30 01:06 g_NCR5380/
dr-xr-xr-x   2 root     root            0 Sep 30 01:06 ncr53c8xx/
-rw-r--r--   1 root     root            0 Sep 30 00:47 scsi

/proc/scsi/g_NCR5380:
total 0
-rw-r--r--   1 root     root            0 Sep 30 01:06 1

/proc/scsi/ncr53c8xx:
total 0
-rw-r--r--   1 root     root            0 Sep 30 01:06 1

> cat /proc/scsi/g_NCR5380/1
SCSI host number 1 : Generic NCR5380/NCR53C400 Scsi Driver
Generic NCR5380 driver version 1
NCR5380 core version 7
NO NCR53C400 driver extensions
Using port mapping at port 0x280, no interrupt
REQ not asserted, phase unknown.
No currently connected command
issue_queue
disconnected_queue

> cat /proc/scsi/ncr53c8xx/1
SCSI host number 1 : Generic NCR5380/NCR53C400 Scsi Driver
Generic NCR5380 driver version 1
NCR5380 core version 7
NO NCR53C400 driver extensions
Using port mapping at port 0x280, no interrupt
REQ not asserted, phase unknown.
No currently connected command
issue_queue
disconnected_queue

As you can see, the reloaded scsi lowlevel device driver is registered
as scsi1, although scsi1 is already in use. The original scsi1 device
(g_NCR5380 in this case) remains accessable via /dev/sg1, but the
reloaded low-level driver is not accessable via any of the /dev/sg?
interfaces.

Regards 
Thorsten

-- 
              E-Mail: tek@rbg.informatik.tu-darmstadt.de
___              WWW: http://www.student.informatik.tu-darmstadt.de/~tek
 |        | /    ICQ: 5472045
 |horsten |/\nabe


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post