2.3.XX VIA VP3 UDMA/SCSI U2W incompatibility?

From: Marty Brundage (mbrundage@exch.fvc.com)
Date: Tue Mar 28 2000 - 23:47:25 EST


My motherboard has a VIA VP3 chipset. I seems stable with the
the 2.0.36 kernel. With later development kernels there appears
to be an compatibility bug between UDMA and the 2940U2W.

I get SCSI timeouts on my U2W drive:

   scsi : aborting command due to timeout [...]

I've reproduced the problem with difference drives and (Adaptec U2W)
controllers. I also tried upgrading the BIOS on the 2940U2W, which
did not help. Slowing the SCSI data rate to 40MHz through the
adapter BIOS also does not help. The problem does not occur with a
2940UW, but it does occur on the UW bus of the 2940U2W.

When I turn off IDE DMA the problem seems to go away. With DMA enabled
(with or without VIA support compiled in), the first SCSI timeout
usually occurs as soon as the first IDE drive is mounted, although
sometimes it takes much longer to occur. UDMA or U2W SCSI alone seem to
work OK. In the case of one 33MHz UDMA drive, the problem did not appear,
but DMA could not be enabled on this drive, although it supports UDMA.

(Things I have not tried: a UW drive, a non-Adaptec U2W SCSI adapter, another
revision of the VP3 chipset, another VIA-based motherboard.)

Below are some specifics about my system, which were collected with UDMA
and VIA support turned off:

bash-2.01$ cat /proc/pci
PCI devices found:
  Bus 0, device 0, function 0:
    Host bridge: VIA Technologies, Inc. VT82C597 [Apollo VP3] (rev 4).
      Master Capable. Latency=16.
      Prefetchable 32 bit memory at 0xe0000000 [0xe3ffffff].
  Bus 0, device 1, function 0:
    PCI bridge: VIA Technologies, Inc. VT82C598 [Apollo MVP3 AGP] (rev 0).
      Master Capable. No bursts. Min Gnt=4.
  Bus 0, device 7, function 0:
    ISA bridge: VIA Technologies, Inc. VT82C586/A/B PCI-to-ISA [Apollo VP] (rev 71).
  Bus 0, device 7, function 1:
    IDE interface: VIA Technologies, Inc. VT82C586 IDE [Apollo] (rev 6).
      Master Capable. Latency=64.
      I/O at 0xe400 [0xe40f].
  Bus 0, device 7, function 3:
    PCI bridge: VIA Technologies, Inc. VT82C586B ACPI (rev 16).
  Bus 0, device 8, function 0:
    VGA compatible controller: Trident Microsystems TGUI 9660/968x/968x (rev 211).
      IRQ 11.
      Non-prefetchable 32 bit memory at 0xe7000000 [0xe73fffff].
      Non-prefetchable 32 bit memory at 0xe7500000 [0xe750ffff].
  Bus 0, device 10, function 0:
    Ethernet controller: Intel Corporation 82557 [Ethernet Pro 100] (rev 5).
      IRQ 10.
      Master Capable. Latency=64. Min Gnt=8.Max Lat=56.
      Prefetchable 32 bit memory at 0xe7511000 [0xe7511fff].
      I/O at 0xe800 [0xe81f].
      Non-prefetchable 32 bit memory at 0xe7400000 [0xe74fffff].
  Bus 0, device 11, function 0:
    SCSI storage controller: Adaptec AHA-2940U2/W (rev 0).
      IRQ 5.
      Master Capable. Latency=64. Min Gnt=39.Max Lat=25.
      I/O at 0xec00 [0xecff].
      Non-prefetchable 64 bit memory at 0xe7510000 [0xe7510fff].

bash-2.01$ cat /proc/ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
02f8-02ff : serial(set)
0376-0376 : ide1
03c0-03df : vga+
03f8-03ff : serial(set)
c000-cfff : PCI Bus #01
e400-e40f : VIA Technologies, Inc. VT82C586 IDE [Apollo]
  e400-e407 : ide0
  e408-e40f : ide1
e800-e81f : Intel Corporation 82557 [Ethernet Pro 100]
  e800-e81f : eepro100
ec00-ecff : Adaptec AHA-2940U2/W
  ec00-ecbe : aic7xxx

bash-2.01$ cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: QUANTUM Model: ATLAS 10K 9WLS Rev: UC81
  Type: Direct-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 06 Lun: 00
  Vendor: IBM Model: DDRS-34560D Rev: DC1B
  Type: Direct-Access ANSI SCSI revision: 02

bash-2.01$ cat /proc/scsi/aic7xxx/0
Adaptec AIC7xxx driver version: 5.2.0/3.2.4
Compile Options:
  TCQ Enabled By Default : Enabled
  AIC7XXX_PROC_STATS : Disabled
  AIC7XXX_RESET_DELAY : 5

Adapter Configuration:
           SCSI Adapter: Adaptec AHA-294X Ultra2 SCSI host adapter
                           Ultra-2 LVD/SE Wide Controller at PCI 0/11/0
    PCI MMAPed I/O Base: 0xe7510000
 Adapter SEEPROM Config: SEEPROM found and used.
      Adaptec SCSI BIOS: Enabled
                    IRQ: 5
                   SCBs: Active 0, Max Active 16,
                         Allocated 31, HW 32, Page 255
             Interrupts: 7309
      BIOS Control Word: 0x18a6
   Adapter Control Word: 0x1c5d
   Extended Translation: Enabled
Disconnect Enable Flags: 0xffff
     Ultra Enable Flags: 0x0000
 Tag Queue Enable Flags: 0x0041
Ordered Queue Tag Flags: 0x0041
Default Tag Queue Depth: 8
    Tagged Queue By Device array for aic7xxx host instance 0:
      {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
    Actual queue depth per device for aic7xxx host instance 0:
      {8,1,1,1,1,1,8,1,1,1,1,1,1,1,1,1}

Statistics:

(scsi0:0:0:0)
  Device using Wide/Sync transfers at 80.0 MByte/sec, offset 31
  Transinfo settings: current(10/31/1/0), goal(10/127/1/0), user(10/127/1/0)
  Total transfers 6392 (4252 reads and 2140 writes)

(scsi0:0:6:0)
  Device using Wide/Sync transfers at 80.0 MByte/sec, offset 15
  Transinfo settings: current(10/15/1/0), goal(10/127/1/0), user(10/127/1/0)
  Total transfers 1474 (319 reads and 1155 writes)

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



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:23 EST