PROBLEM: 3Dfx voodo1 + ncr53c860 = messed up filesystem

PROBLEM: 3Dfx voodo1 + ncr53c860 = messed up filesystem

Post by Hylk » Fri, 02 Oct 1998 04:00:00



Hi,

I've got some serious problems with my NCR53c860 (PCI) SCSI controller
and my 3Dfx VooDoo 1 (Pure3D). When I'm using my 3Dfx card (playing
qake, running a demo) and I write to my SCSI disk it results in SCSI
errors, EXT2 FS errors and duplicate/illegal blocks.

It only happens when WRITING to the SCSI disk WHILE using the 3Dfx card.
setup:
AMD K6-2 3D 300/100
FIC VA503+
64Mb SDRAM, PC100
Stealth 64 Video Vram (2Mb, S3 968)
Cannopus Pure3D
/       on hdb1
/home on sda2
/usr    on sda1
swap    on hdb3

tests by doing 'make install' from /home/installs/gtk+-1.0.5/ while
running GLquake, squake, other CPU/MEM intensive tasks.
/home mounted readonly, /usr RW (otherwise installing is a bit difficult
;-)

I tried tuning down the SCSI controller, PCI settings in the BIOS, no
effect. Tried Linux 2.0.33, 2.0.34, 2.0.35, 2.0.36pre12. All give
errors.
Does anyone have a clue?

Thanx,
Hylke van der Schaaf
hy...@lx.student.wau.nl

output of /proc/*, and some errors in /var/lib/messages and
/var/lib/syslog, dmesg.

/proc/cpuinfo:
processor       : 0
cpu             : 586
model           : AMD-K6(tm) 3D processor
vendor_id       : AuthenticAMD
stepping        : A
fdiv_bug        : no
hlt_bug : no
f00f_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid           : yes
wp              : yes
flags           : fpu vme de pse tsc msr mce cx8 syscr mmx 3dnow
bogomips        : 599.65

/proc/interrupts:
 4: cascade
 0:     247499   timer
 1:       1779   keyboard
 2:          0   cascade
10:       1135   3c509
11:       4608 + ncr53c8xx
13:          1   math error
14:      11038 + ide0
15:          0 + ide1

/proc/ioports:
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0080-009f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : npu
0170-0177 : ide1
01f0-01f7 : ide0
02f8-02ff : serial(auto)
0300-030f : 3c509
0376-0376 : ide1
03c0-03df : vga+
03f0-03f5 : floppy
03f6-03f6 : ide0
03f7-03f7 : floppy DIR
03f8-03ff : serial(auto)
6c00-6c7f : ncr53c8xx

/proc/pci:
PCI devices found:
  Bus  0, device  10, function  0:
    Multimedia video controller: 3Dfx Voodoo (rev 2).
      Fast devsel.  Fast back-to-back capable.  IRQ 255.  
      Prefetchable 32 bit memory at 0xe8000000.
  Bus  0, device   9, function  0:
    VGA compatible controller: S3 Inc. Vision 968 (rev 0).
      Medium devsel.  IRQ 9.  
      Non-prefetchable 32 bit memory at 0xe4000000.
  Bus  0, device   8, function  0:
    SCSI storage controller: NCR 53c860 (rev 2).
      Medium devsel.  IRQ 11.  Master Capable.  Latency=64.  Min
Gnt=8.Max Lat=64.
      I/O at 0x6c00.
      Non-prefetchable 32 bit memory at 0xe9000000.
  Bus  0, device   7, function  1:
    IDE interface: VIA Technologies VT 82C586 Apollo IDE (rev 6).
      Medium devsel.  Fast back-to-back capable.  Master Capable.
Latency=64.  
      I/O at 0x6400.
  Bus  0, device   7, function  0:
    ISA bridge: VIA Technologies VT 82C586 Apollo ISA (rev 65).
      Medium devsel.  Master Capable.  No bursts.  
  Bus  0, device   1, function  0:
    PCI bridge: VIA Technologies Unknown device (rev 0).
      Vendor id=1106. Device id=8598.
      Medium devsel.  Master Capable.  No bursts.  Min Gnt=4.
  Bus  0, device   0, function  0:
    Host bridge: VIA Technologies VT 82C597 Apollo VP3 (rev 4).
      Medium devsel.  Fast back-to-back capable.  Master Capable.
Latency=16.  
      Prefetchable 32 bit memory at 0xe0000000.

/proc/scsi:
Attached devices:
Host: scsi0 Channel: 00 Id: 06 Lun: 00
  Vendor: QUANTUM  Model: FIREBALL SE4.3S  Rev: PJ0A
  Type:   Direct-Access                    ANSI SCSI revision: 02

/proc/scsi/ncr53c8xx/0:
General information:
  Chip NCR53C860, device id 0x6, revision id 0x2
  IO port address 0x6c00, IRQ number 11
  Using memory mapped IO at virtual address 0x4805000
  Synchronous period factor 12, max commands per lun 4
Profiling information:
  num_trans    = 3990
  num_kbytes   = 13820
  num_disc     = 0
  num_break    = 1
  num_int      = 16
  num_fly      = 3990
  ms_setup     = 280
  ms_data      = 32690
  ms_disc      = 0
  ms_post      = 120

/proc/version:
Linux version 2.0.36 (root@flex055) (gcc version 2.7.2.3) #1 Wed Sep 30
14:38:08 CEST 1998

Some of the errors on /var/log/syslog, most come with lots, only 1
displayed:

Sep 27 19:05:58 flex055 kernel: EXT2-fs error (device 08:01):
ext2_free_blocks: Freeing blocks not in datazone - block =
134757841,count = 1

Sep 29 18:35:17 flex055 kernel: EXT2-fs error (device 08:01):
ext2_check_blocks_bitmap: Wrong free blocks count for group 41, stored =
3144, counted = 7620

Sep 29 21:48:23 flex055 kernel: EXT2-fs error (device 08:01):
ext2_find_entry: bad entry in directory #413713: rec_len % 4 != 0 -
offset=0, inode=556277862, rec_len=28022, name_len=8301

Sep 30 20:39:15 flex055 kernel: EXT2-fs error (device 08:01):
ext2_check_blocks_bitmap: Wrong free blocks count in super block, stored
= 1558419, counted = 1558629

Sep 30 20:39:15 flex055 kernel: EXT2-fs error (device 08:01):
ext2_check_blocks_bitmap: Wrong free blocks count for group 74, stored =
7223, counted = 7433

The same for /var/log/messages:
Sep 29 18:33:25 flex055 kernel: ncr53c860-0-<6,0>: phase change 2-1
10@002df828 resid=4.
Sep 29 18:33:25 flex055 kernel: f device
Sep 29 18:33:25 flex055 kernel: 08:02: rw=0, want=687946754,
limit=2102730
Sep 29 18:33:25 flex055 kernel: attempt to access beyond end of device
Sep 29 18:33:25 flex055 kernel: 08:02: rw=0, want=486613762,
limit=2102730
Sep 29 18:33:25 flex055 kernel: attempt to access beyond end of device

Sep 30 20:34:28 flex055 kernel: ncr53c860-0-<6,0>: phase change 2-3
10@00096c20 resid=5.
Sep 30 20:34:28 flex055 kernel: ncr53c860-0-<6,0>: phase change 2-1
10@00096c20 resid=4.

output of dmesg:
Memory: sized by int13 088h
Console: 8 point font, 344 scans
Console: colour VGA+ 132x43, 1 virtual console (max 63)
pcibios_init : BIOS32 Service Directory structure at 0x000faf30
pcibios_init : BIOS32 Service Directory entry at 0xfb3b0
pcibios_init : PCI BIOS revision 2.10 entry at 0xfb3e0
Probing PCI hardware.
Calibrating delay loop.. ok - 599.65 BogoMIPS
Memory: 63232k/65536k available (696k kernel code, 384k reserved, 1224k
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
Checking 386/387 coupling... Ok, fpu using exception 16 error reporting.
Checking 'hlt' instruction... Ok.
Linux version 2.0.36 (root@flex055) (gcc version 2.7.2.3) #1 Wed Sep 30
14:38:08 CEST 1998
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
hda: QUANTUM SIROCCO1700A, 1628MB w/75kB Cache, CHS=827/64/63
hdb: WDC AC31600H, 1549MB w/128kB Cache, CHS=787/64/63
hdc: 655A, ATAPI CDROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
ncr53c8xx: at PCI bus 0, device 8, function 0
ncr53c8xx: 53c860 detected
ncr53c860-0: rev=0x02, base=0xe9000000, io_port=0x6c00, irq=11
ncr53c860-0: NCR clock is 80074KHz, 80074KHz
ncr53c860-0: ID 7, Fast-20, Parity Checking
ncr53c860-0: restart (scsi reset).
scsi0 : ncr53c8xx - revision 2.5f.1
scsi : 1 host.
  Vendor: QUANTUM   Model: FIREBALL SE4.3S   Rev: PJ0A
  Type:   Direct-Access                      ANSI SCSI revision: 02
Detected scsi disk sda at scsi0, channel 0, id 6, lun 0
scsi : detected 1 SCSI disk total.
ncr53c860-0-<6,0>: asynchronous.
SCSI device sda: hdwr sector= 512 bytes. Sectors= 8418816 [4110 MB] [4.1
GB]
eth0: 3c509 at 0x300 tag 1, 10baseT port, address  00 60 08 20 f1 c3,
IRQ 10.
3c509.c:1.16 2/3/98 bec...@cesdis.gsfc.nasa.gov
Partition check:
 sda: sda1 sda2
 hda: hda1 hda2 < hda5 hda6 >
 hdb: hdb1 hdb2 hdb3
VFS: Mounted root (ext2 filesystem) readonly.
Adding Swap: 64508k swap-space (priority -1)
eth0: Setting Rx mode to 1 addresses.