Re: Race conditions galore (2.0.33 and possibly 2.1.x)

Stephen R. van den Berg (srb@cuci.nl)
Wed, 24 Dec 1997 01:16:16 +0100


Gerard Roudier wrote:
>I read that you are using a 53C875 scsi controller.
>Misused or mishandled 'PCI write and invalidate' commands may
>cause cache coherency problems. If the 53C875 is using this
>feature, I would suggest to disable it.

Well, it is very unlikely that the problem is a direct result
of failed SCSI-bus-mastering. The problem seems to occur *before*
the disk activity takes place.
But, just in case it would help, below is the info you asked for:

>Could you send the boot-up messages and 'cat /proc/pci' output?

Here goes (bootup first, and /proc/pci below):

klogd 1.3-3, log source = /proc/kmsg started.
Loaded 1576 symbols from /boot/System.map.
Symbols match kernel version 2.0.33.
Loaded 2 symbols from 1 module.
BIOS query detected 131072KB RAM. Report errors to lma@varesearch.com
Total RAM size was detected using BIOS function int 15h, ax=e801h.
Console: 8 point font, 400 scans
Console: colour VGA+ 80x50, 1 virtual console (max 63)
pcibios_init : BIOS32 Service Directory structure at 0x000f99e0
pcibios_init : BIOS32 Service Directory entry at 0xf0400
pcibios_init : PCI BIOS revision 2.10 entry at 0xf0430
Probing PCI hardware.
Calibrating delay loop.. ok - 232.65 BogoMIPS
Memory: 127944k/131072k available (652k kernel code, 384k reserved, 2092k data)
Swansea University Computer Society NET3.035 for Linux 2.0
NET3: Unix domain sockets 0.13 for Linux NET3.035.
Swansea University Computer Society TCP/IP for NET3.034
IP Protocols: IGMP, ICMP, UDP, TCP
VFS: Diskquotas version dquot_5.6.0 initialized^M
Checking 386/387 coupling... Ok, fpu using exception 16 error reporting.
Checking 'hlt' instruction... Ok.
Linux version 2.0.33 (root@zeus) (gcc version 2.7.2.1) #267 Sat Dec 13 04:30:13 CET 1997
Starting kswapd v 1.4.2.2
Serial driver version 4.13 with no serial options enabled
tty00 at 0x03f8 (irq = 4) is a 16550A
tty01 at 0x02f8 (irq = 3) is a 16550A
Software Watchdog Timer: 0.04, timer margin: 60 sec
md driver 0.35 MAX_MD_DEV=4, MAX_REAL=8
raid0 personality registered
ncr53c8xx: at PCI bus 0, device 12, function 0
ncr53c8xx: 53c875 detected with Symbios NVRAM
ncr53c875-0: rev=0x03, base=0xe6800000, io_port=0xd800, irq=11
ncr53c875-0: Symbios format NVRAM, ID 7, Fast-20, Parity Checking
ncr53c875-0: initial SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 05/0e/a0/01/00/24
ncr53c875-0: final SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 05/8e/a0/01/08/24
ncr53c875-0: on-board RAM at 0xe6000000
ncr53c875-0: on-board ram mapped at virtual address 0x8807000
ncr53c875-0: requesting shared irq 11 (dev_id=0x90080)
ncr53c875-0: resetting, command processing suspended for 2 seconds
ncr53c875-0: restart (scsi reset).
ncr53c875-0: enabling clock multiplier
ncr53c875-0: copying script fragments into the on-board RAM ...
scsi0 : ncr53c8xx - revision 2.4a
scsi : 1 host.
ncr53c875-0: command processing resumed
ncr53c875-0-<0,0>: using tagged command queueing, up to 8 cmds/lun
Vendor: IBM Model: DCAS-34330W Rev: S65A
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
ncr53c875-0-<1,0>: using tagged command queueing, up to 8 cmds/lun
Vendor: IBM Model: DCAS-34330W Rev: S65A
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi disk sdb at scsi0, channel 0, id 1, lun 0
ncr53c875-0-<2,0>: using tagged command queueing, up to 8 cmds/lun
Vendor: IBM Model: DCAS-34330W Rev: S65A
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi disk sdc at scsi0, channel 0, id 2, lun 0
scsi : detected 3 SCSI disks total.
ncr53c875-0-<0,0>: WIDE SCSI (16 bit) enabled.
ncr53c875-0-<0,0>: FAST-20 WIDE SCSI 40.0 MB/s (50 ns, offset 15)
SCSI device sda: hdwr sector= 512 bytes. Sectors= 8467200 [4134 MB] [4.1 GB]
ncr53c875-0-<1,0>: WIDE SCSI (16 bit) enabled.
ncr53c875-0-<1,0>: FAST-20 WIDE SCSI 40.0 MB/s (50 ns, offset 15)
SCSI device sdb: hdwr sector= 512 bytes. Sectors= 8467200 [4134 MB] [4.1 GB]
ncr53c875-0-<2,0>: WIDE SCSI (16 bit) enabled.
ncr53c875-0-<2,0>: FAST-20 WIDE SCSI 40.0 MB/s (50 ns, offset 15)
SCSI device sdc: hdwr sector= 512 bytes. Sectors= 8467200 [4134 MB] [4.1 GB]
PPP: version 2.2.0 (dynamic channel allocation)
TCP compression code copyright 1989 Regents of the University of California
PPP Dynamic channel allocation code copyright 1995 Caldera, Inc.
PPP line discipline registered.
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
CSLIP: code copyright 1989 Regents of the University of California.
eth0: DC21041 at 0xe000 (PCI bus 0, device 11), h/w address 00:80:48:e8:67:ee,
and requires IRQ10 (provided by PCI BIOS).
Partition check:
sda: sda1 sda2 sda3 sda4 < sda5 sda6 sda7 >
sdb: sdb1 sdb2 sdb3
sdc: sdc1 sdc2 sdc3
VFS: Mounted root (ext2 filesystem) readonly.
Adding Swap: 66524k swap-space (priority 4)
Adding Swap: 66460k swap-space (priority 4)
Adding Swap: 66460k swap-space (priority 4)
REGISTER_DEV sda2 to md0 done
REGISTER_DEV sdb1 to md0 done
REGISTER_DEV sdc1 to md0 done
START_DEV md0 raid0
REGISTER_DEV sdb3 to md1 done
REGISTER_DEV sdc3 to md1 done
START_DEV md1 raid0
Kernel logging (proc) stopped.

$ cat /proc/pci

PCI devices found:
Bus 0, device 12, function 0:
SCSI storage controller: NCR 53c875 (rev 3).
Medium devsel. IRQ 9. Master Capable. Latency=144. Min Gnt=17.Max Lat=64.
I/O at 0xd800.
Non-prefetchable 32 bit memory at 0xe6800000.
Non-prefetchable 32 bit memory at 0xe6000000.
Bus 0, device 11, function 0:
Ethernet controller: DEC DC21041 (rev 17).
Medium devsel. Fast back-to-back capable. IRQ 10. Master Capable. Latency=32.
I/O at 0xe000.
Non-prefetchable 32 bit memory at 0xe7000000.
Bus 0, device 7, function 1:
IDE interface: Intel 82371SB Natoma/Triton II PIIX3 (rev 0).
Medium devsel. Fast back-to-back capable. Master Capable. Latency=32.
I/O at 0xe800.
Bus 0, device 7, function 0:
ISA bridge: Intel 82371SB Natoma/Triton II PIIX3 (rev 1).
Medium devsel. Fast back-to-back capable. Master Capable. No bursts.
Bus 0, device 0, function 0:
Host bridge: Intel 82439HX Triton II (rev 3).
Medium devsel. Master Capable. Latency=32.

-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).

"My name is Smith, the P is not pronounced."