various problems with 2.0.36pre (SCSI, floppy)

Tomasz Motylewski (motyl@stan.chemie.unibas.ch)
Wed, 11 Nov 1998 15:45:10 +0100 (MET)


Hi Alan,

I feel I should not longer delay telling you about problems encountered by me
with 2.0.3x series.

1. Typo in includes/asm/floppy.h :

--- floppy.h.orig Tue Nov 10 03:04:43 1998
+++ include/asm-i386/floppy.h Tue Nov 10 03:07:31 1998
@@ -15,7 +15,7 @@


#define fd_inb(port) inb_p(port)
-#define fd_outb(port,value) outb_p(port,value)
+#define fd_outb(value,port) outb_p(value,port)

#define fd_enable_dma() SW._enable_dma(FLOPPY_DMA)
#define fd_disable_dma() SW._disable_dma(FLOPPY_DMA)

should not change anything, but was quite confusing to me initially.
Similiar patch applies to other architectures.

2. lilo stops working between 2.0.36pre13 and 2.0.36pre14. Could be some
AIC-7880 SCSI driver problem.
Details:

after typing "lilo" while running 2.0.36pre14 and up including 2.0.36pre19 it
seems to run properly (standard messages). But on the next reboot the system
hangs on "LI". I can boot system from floppy with 2.0.36pre10 or 2.0.36pre13
and rerun lilo. After that I am able to boot from HD again. All kernels were
compiled with the same options (after make oldconfig). This is dual P200
machine, but problem occures both with SMP and non-SMP kernel. Award 4.51PG
BIOS, 430HX chipset, GigaByte dual Pentium motherboard. LILO in MBR
(/dev/sda). Adaptec integrated with motherboard (V1.24S2 Adaptec BIOS) See
http://crds.chemie.unibas.ch/machine/2.0.36pre19/ for .config file and lilo
straces. In general I had always problems booting from SCSI when additional
IDE disk was connected while running /sbin/lilo, but now it happens with IDE
controller disabled at all. I am using LILO version 20. Strace shows that
some ioctls (GETGEO) give different results, but may be I am interpreting
pointers here... I would appreciate any hints about debugging it further.

2.0.36pre17 non-SMP kernel:

kernel: (scsi0) <Adaptec AIC-7880 Ultra SCSI host adapter> found at PCI 12/0
kernel: (scsi0) Wide Channel, SCSI ID=7, 16/255 SCBs
kernel: (scsi0) Downloading sequencer code... 419 instructions downloaded
kernel: scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.3/3.2.4
kernel: <Adaptec AIC-7880 Ultra SCSI host adapter>
kernel: scsi : 1 host.
kernel: Vendor: MATSHITA Model: CD-ROM CR-506 Rev: 8S05
kernel: Type: CD-ROM ANSI SCSI revision: 02
kernel: Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
kernel: Vendor: WDIGTL Model: ENTERPRISE Rev: 1.61
kernel: Type: Direct-Access ANSI SCSI revision: 02
kernel: Detected scsi disk sda at scsi0, channel 0, id 1, lun 0
kernel: Vendor: WDIGTL Model: ENTERPRISE Rev: 1.61
kernel: Type: Direct-Access ANSI SCSI revision: 02
kernel: Detected scsi disk sdb at scsi0, channel 0, id 2, lun 0
kernel: scsi : detected 1 SCSI cdrom 2 SCSI disks total.
kernel: (scsi0:0:1:0) Synchronous at 40.0 Mbyte/sec, offset 8.
kernel: SCSI device sda: hdwr sector= 512 bytes. Sectors= 8515173 [4157 MB] [4.2 GB]
kernel: (scsi0:0:2:0) Synchronous at 40.0 Mbyte/sec, offset 8.
kernel: SCSI device sdb: hdwr sector= 512 bytes. Sectors= 8515173 [4157 MB] [4.2 GB]

2.0.36pre12 non-SMP (lilo under this kernel works):

kernel: (scsi0) <Adaptec AIC-7880 Ultra SCSI host adapter> found at PCI 12/0
kernel: (scsi0) Wide Channel, SCSI ID=7, 16/255 SCBs
kernel: (scsi0) BIOS enabled, IO Port 0x6000, IRQ 14
kernel: (scsi0) IO Memory at 0xe0804000, MMAP Memory at 0x8807000
kernel: (scsi0) Resetting channel
kernel: (scsi0) Downloading sequencer code... 413 instructions downloaded
kernel: scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.0.20/3.2.4
kernel: <Adaptec AIC-7880 Ultra SCSI host adapter>
kernel: scsi : 1 host.
kernel: (scsi0:0:-1:-1) Scanning channel for devices.
kernel: Vendor: MATSHITA Model: CD-ROM CR-506 Rev: 8S05
kernel: Type: CD-ROM ANSI SCSI revision: 02
kernel: Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
kernel: (scsi0:0:1:0) Using wide (16 bit) transfers.
kernel: (scsi0:0:1:0) Synchronous at 20.0MHz, offset 8.
kernel: Vendor: WDIGTL Model: ENTERPRISE Rev: 1.61
kernel: Type: Direct-Access ANSI SCSI revision: 02
kernel: Detected scsi disk sda at scsi0, channel 0, id 1, lun 0
kernel: (scsi0:0:2:0) Using wide (16 bit) transfers.
kernel: (scsi0:0:2:0) Synchronous at 20.0MHz, offset 8.
kernel: Vendor: WDIGTL Model: ENTERPRISE Rev: 1.61
kernel: Type: Direct-Access ANSI SCSI revision: 02
kernel: Detected scsi disk sdb at scsi0, channel 0, id 2, lun 0
kernel: scsi : detected 1 SCSI cdrom 2 SCSI disks total.
kernel: SCSI device sda: hdwr sector= 512 bytes. Sectors= 8515173 [4157 MB] [4.2 GB]
kernel: SCSI device sdb: hdwr sector= 512 bytes. Sectors= 8515173 [4157 MB] [4.2 GB]

3. There is one machine over there which hangs on line floppy.c:4079 -
fd_outb(FDCS->dor, FD_DOR); where FDCS->dor==4, FD_DOR==0x3f2
during boot. Last kernel tested 2.0.36pre10. More info on
http://crds.chemie.unibas.ch/machine/dave/

It hangs ONLY IF ATAPI CD support is ON and floppy driver is compiled in the
kernel. It does not hang when floppy.o is inserted later as module. It hangs
in all standard kernels I tested, in particular RedHat & Debian boot
floppies. I have just left floppy.o as a module - then it works wirh both CD
and floppy. Another strange thing about this machine (P200 MMX, Award 4.51PG
BIOS, 430HX chipset) is that it hangs every time PS/2 mouse is moved before
its driver is loaded. Is it hardware problem, or should I upgrade the BIOS?
Win95 do not have any problems though.

--
Tomasz Motylewski

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