Problems with ppa module

Lorenzo Campedelli (lcampede@tin.it)
Sun, 13 Dec 1998 15:26:27 +0100


Hello,
I hope somebody can give me any info about this:
when I try to install the ppa module (with insmod or modprobe)
I get randomly one of the following results (command line, possibly
command output, /var/log/messages output) :

[CASE 1] :
[root@betelgeuse /root]# strace -o strace.out0 modprobe ppa
/lib/modules/2.1.131/scsi/ppa.o: init_module: Device or resource busy

Dec 13 14:31:39 localhost kernel: ppa: Version 2.01
Dec 13 14:31:39 localhost kernel: ppa: No devices found, aborting driver
load.
Dec 13 14:31:39 localhost kernel: scsi : 0 hosts.

[CASE 2] :
[root@betelgeuse /root]# strace -o strace.out1 modprobe ppa

Dec 13 14:35:06 localhost kernel: ppa: Version 2.01
Dec 13 14:35:06 localhost kernel: ppa: Found device at ID 6, Attempting
to use EPP 32 bit
Dec 13 14:35:06 localhost kernel: ppa: Communication established with ID
6 using EPP 32 bit
Dec 13 14:35:06 localhost kernel: scsi0 : Iomega parport ZIP drive
Dec 13 14:35:06 localhost kernel: scsi : 1 host.

[CASE 3] :
[root@betelgeuse /root]# strace -o strace.out2 modprobe ppa

Dec 13 14:36:16 localhost kernel: ppa: Version 2.01
Dec 13 14:36:16 localhost kernel: ppa: Found device at ID 6, Attempting
to use EPP 32 bit
Dec 13 14:36:16 localhost kernel: ppa: Communication established with ID
6 using EPP 32 bit
Dec 13 14:36:16 localhost kernel: scsi0 : Iomega parport ZIP drive
Dec 13 14:36:16 localhost kernel: scsi : 1 host.
Dec 13 14:36:16 localhost kernel: Vendor: IOMEGA Model: ZIP
100 Rev: J.03
Dec 13 14:36:16 localhost kernel: Type:
Direct-Access ANSI SCSI revision: 02
Dec 13 14:36:16 localhost kernel: Detected scsi removable disk sda at
scsi0, channel 0, id 6, lun 0
Dec 13 14:36:16 localhost kernel: SCSI device sda: hdwr sector= 512
bytes. Sectors= 196608 [96 MB] [0.1 GB]
Dec 13 14:36:16 localhost kernel: sda: Write Protect is off
Dec 13 14:36:16 localhost kernel: sda: sda4

[CASE 4] :
[root@betelgeuse /root]# strace -o strace.out3 modprobe ppa

Dec 13 14:47:23 localhost kernel: ppa: Version 2.01
Dec 13 14:47:23 localhost kernel: ppa: Found device at ID 6, Attempting
to use EPP 32 bit
Dec 13 14:47:23 localhost kernel: ppa: Communication established with ID
6 using EPP 32 bit
Dec 13 14:47:23 localhost kernel: scsi0 : Iomega parport ZIP drive
Dec 13 14:47:23 localhost kernel: scsi : 1 host.
Dec 13 14:47:23 localhost kernel: Vendor: IOMEGA Model: ZIP
100 Rev: J.03
Dec 13 14:47:23 localhost kernel: Type:
Direct-Access ANSI SCSI revision: 02
Dec 13 14:47:23 localhost kernel: Detected scsi removable disk sda at
scsi0, channel 0, id 6, lun 0
Dec 13 14:47:23 localhost kernel: sda : READ CAPACITY failed.
Dec 13 14:47:23 localhost kernel: sda : status = 0, message = 00, host =
1, driver = 27
Dec 13 14:47:23 localhost kernel: sda : sense not available.
Dec 13 14:47:23 localhost kernel: sda : block size assumed to be 512
bytes, disk size 1GB.
Dec 13 14:47:23 localhost kernel: sda: test WP failed, assume Write
Protected
Dec 13 14:47:23 localhost kernel: sda:SCSI disk error : host 0 channel
0 id 6 lun 0 return code = 27010000
Dec 13 14:47:23 localhost kernel: scsidisk I/O error: dev 08:00, sector
0
Dec 13 14:47:23 localhost kernel: unable to read partition table

Now, case 4 is rather rare (1/50), while the other 3 happen with
the same frequency, but I obviously like only case 3 ;-)
When I get case 3 then all goes like a charm and I got high
speeds (~29Mb/min). The problem anyway persist using the
slow parallel port modes.

This is now happening with 2.1.131-ac9, but used to be tha same
since I begun using the Zip drive, I think 2.1.122.
ppa.o is the only module in the chain (scsi and scsi-disk and
parport related stuff are compiled in the kernel).

The strace.out? files are all equal, except for the pid numbers,
and the only one terminating with _exit(1) was case 2.

I hope anybody has a solution or even a pointer for further
investigations. If more info are needed let me know.

Thanks in advance
Ciao,
Lorenzo.

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