RE: Linux-1.3.89

Chel van Gennip, (chel@vangennip.nl)
Mon, 15 Apr 1996 22:44:56 +0200 (MESZ)


Linus Torvalds <torvalds@cs.helsinki.fi> wrote:
>I made a 1.3.89 kernel that fixes
>
....
> - iso9660 bugfix (probably the one that caused some problems for people with
> some CD's..)
....
>Thanks for trying this out (you ARE going to try it out, aren't you??),

I did, but I still see the strange CD-rom error:
Test with SCSI CD-rom gives an error with gzip (tar xz ), no error if the
file is loaded in the cache in advance with cat. Maybe related with block-
size on read?. Tests on a IDE/ATAPI CD-rom give no errors (also different
motherboard!). See testoutput:

===========First the error situation========================
gennip:/tmp# umount /cdrom
gennip:/tmp# mount -r -tiso9660 /dev/scd0 /cdrom
gennip:/tmp# tar xzf /cdrom/L*/S*/source/n/tcpip/N*5.tar*z
tar: Skipping to next file header...

gzip: stdin: invalid compressed data--crc error
tar: archive /cdrom/Linux/Slackware/source/n/tcpip/NetKit-B-0.05.tar.gz EOF not on block boundary
gennip:/tmp# umount /cdrom
gennip:/tmp# mount -r -tiso9660 /dev/scd0 /cdrom
gennip:/tmp# cat /cdrom/L*/S*/source/n/tcpip/N*5.tar*z>/dev/null
gennip:/tmp# tar xzf /cdrom/L*/S*/source/n/tcpip/N*5.tar*z
gennip:/tmp# umount /cdrom
gennip:/tmp# mount -r -tiso9660 /dev/scd0 /cdrom
gennip:/tmp# tar xzf /cdrom/L*/S*/sl*e/a2/bin.tgz
tar: Skipping to next file header...
gennip:/tmp# umount /cdrom
gennip:/tmp# mount -r -tiso9660 /dev/scd0 /cdrom
gennip:/tmp# cat /cdrom/L*/S*/sl*e/a2/bin.tgz >/dev/null
gennip:/tmp# tar xzf /cdrom/L*/S*/sl*e/a2/bin.tgz
gennip:/tmp#
gennip:/tmp# cat /proc/version
Linux version 1.3.89 (root@gennip) (gcc version 2.7.0) #7 Mon Apr 15 21:24:47 GMT+0100 1996
gennip:/tmp# cat /proc/pci
PCI devices found:
Bus 0, device 2, function 0:
Non-VGA device: Intel 82378IB (rev 0).
Medium devsel. Master Capable. No bursts.
Bus 0, device 0, function 0:
Host bridge: Intel 82434LX Mercury/Neptune (rev 1).
Slow devsel. Master Capable. Latency=64.
gennip:/tmp# cat /proc/cpu*
processor : 0
cpu : 586
model : Pentium 60/66
vendor_id : GenuineIntel
stepping : 7
fdiv_bug : no
hlt_bug : no
fpu : yes
fpu_exception : yes
cpuid : yes
wp : yes
flags : fpu vme de pse tsc msr mce cx8
bogomips: : 23.96
Apr 14 23:08:48 gennip kernel: Configuring Adaptec at IO:330, IRQ 11, DMA priority 5
Apr 14 23:08:48 gennip kernel: scsi0 : Adaptec 1542
Apr 14 23:08:48 gennip kernel: scsi : 1 host.
Apr 14 23:08:48 gennip kernel: Vendor: DEC Model: DSP3105S Rev: 386E
Apr 14 23:08:48 gennip kernel: Type: Direct-Access ANSI SCSI revision: 02
Apr 14 23:08:48 gennip kernel: Detected scsi disk sda at scsi0, id 0, lun 0
Apr 14 23:08:48 gennip kernel: Vendor: SONY Model: CD-ROM CDU-8003A Rev: 1.9a
Apr 14 23:08:48 gennip kernel: Type: CD-ROM ANSI SCSI revision: 02
Apr 14 23:08:48 gennip kernel: Detected scsi CD-ROM sr0 at scsi0, id 5, lun 0
Apr 14 23:08:48 gennip kernel: scsi : detected 1 SCSI cdrom 1 SCSI disk total.
Apr 14 23:08:48 gennip kernel: SCSI Hardware sector size is 512 bytes on device sda
=============================================================================
Now the same test on a IDE/ATAPI CD-rom on a Zappa board everything is OK.
=============================================================================
linux86:~# cd /tmp
linux86:/tmp# tar xzf /cdrom/L*/S*/source/n/tcpip/N*5.tar*z
linux86:/tmp# umount /cdrom
linux86:/tmp# mount -tiso9660 /dev/hdb /cdrom
mount: block device /dev/hdb is write-protected, mounting read-only
linux86:/tmp# tar xzf /cdrom/L*/S*/source/n/tcpip/N*5.tar*z
linux86:/tmp# cat /proc/version
Linux version 1.3.88 (root@linux86) (gcc version 2.7.0) #2 Sun Apr 14 14:49:13 G
MT 1996
linux86:/tmp# cat /proc/pci
PCI devices found:
Bus 0, device 14, function 0:
Ethernet controller: 3Com 3C595 100bTX (rev 0).
Medium devsel. IRQ 10. Master Capable. Latency=248. Min Gnt=3.Max Lat=
8.
I/O at 0xff80.
Bus 0, device 7, function 0:
ISA bridge: Intel 82371 Triton PIIX (rev 2).
Medium devsel. Fast back-to-back capable. Master Capable. No bursts.
Bus 0, device 0, function 0:
Host bridge: Intel 82437 (rev 1).
Medium devsel. Master Capable. Latency=64.
linux86:/tmp# cat /proc/cpu*
processor : 0
cpu : 586
model : Pentium 75+
vendor_id : GenuineIntel
stepping : 5
fdiv_bug : no
hlt_bug : no
fpu : yes
fpu_exception : yes
cpuid : yes
wp : yes
flags : fpu vme de pse tsc msr mce cx8
bogomips: : 29.79
linux86:/tmp#
=============================================================================

I think the prime suspects are: drivers ah1540 and scd. As things go well on
1.2.13, I don't suspect the hardware yet,

Hope this helps tolocate the bug,

Chel
---------------------------------------------------------------------------
Chel van Gennip | Spechtstraat 15 | 2623 GP Delft | The Netherlands
Tel: +31 15 2567783 | Fax: +31 15 2610985 | E-Mail: chel@vangennip.nl
---------------------------------------------------------------------------