7193 and driver

Johnny Teveßen j.tevessen at gmx.net
Tue Jun 8 10:59:05 PDT 1999


Hi!

I've got a WD 7193RTL PCI card and Linux-2.2.9. I downloaded the
patch for Linux-2.1.54 (and changed it to match) and the latest
driver (1998/03/29). I had to change some things in the driver
to make it compile/work in Linux-2.2.9.

See below for more information about my system.

Okay, my card is detected as 7193 after I changed the code to
recognize the device id "0x3296" instead of 0x3197 as WD
cards. In fact, my /proc/pci (yes, it is obsolete) says:

  Bus  0, device   3, function  0:
    SCSI storage controller: Western Digital Unknown device (rev 0).
      Vendor id=101c. Device id=3296.
      Medium devsel.  IRQ 9.  Master Capable.  Latency=64.  Min Gnt=5.Max Lat=6.
      I/O at 0xec00 [0xec01].
      Non-prefetchable 32 bit memory at 0xebfeff00 [0xebfeff00].

My problem now is that I get a "WCS checksum error" because the
card returns a 0x00 data status ("no interrupt pending") instead
of a 0x01 ("ok") after the ENABLE_ADVANCE_MODE command. And the
Linux interrupt counter in /proc also says that IRQ 9 has never
been triggered (maybe I'm confusing something with internal
Spider interrupts here?).

Removing the check of the return code results in a frozen Linux.

Also, I added the "Error code:" debug output.

Here are the logs so far:

Jun  8 18:09:04 trib0026 kernel: wd719x: detect: found card 0 at index 0, reading bus now...
Jun  8 18:09:04 trib0026 kernel: wd719x: detect: base0 0xec00, base1 0xebfeff00).
Jun  8 18:09:04 trib0026 kernel: wd719x: detect: got a 7193
Jun  8 18:09:04 trib0026 kernel: wd719x: detect: c->CardType: 7193
Jun  8 18:09:04 trib0026 kernel: wd719x: init: RISC-Type: 1; fw_release: 3e!
Jun  8 18:09:04 trib0026 kernel: wd719x: init: time is 626529 jiffies
Jun  8 18:09:04 trib0026 kernel: wd719x: init: WCS_CODE_SIZE: 516;risc_sz: 13312; s_of(H_P): 20; total: 13848
Jun  8 18:09:04 trib0026 kernel: wd719x: init: buffer: c0b50000! Align: 0; Hash: c0c43000! Align: 0, 4096 Bytes
Jun  8 18:09:04 trib0026 kernel: wd719x: init: HBA parameter array: c0b93850!
Jun  8 18:09:04 trib0026 kernel: wd719x: init: reading EEPROM at ec00
Jun  8 18:09:04 trib0026 kernel: wd719x: init: time is 626529 jiffies
Jun  8 18:09:04 trib0026 kernel: wd719x: init: EEPROM sig1: W, sig2: D
Jun  8 18:09:04 trib0026 kernel: wd719x:  RISC 'after EEPROM'
Jun  8 18:09:04 trib0026 kernel: wd719x:   CMD bytes: CMD1:1 CMD2:80 CMD3:14 CMD4:ff
Jun  8 18:09:04 trib0026 kernel: wd719x:   Pointer:   in:c0b68000, response:50b68.
Jun  8 18:09:04 trib0026 kernel: wd719x:   Status:    PC_Op:80 SCSI:0 SCB:0 INT:0
Jun  8 18:09:04 trib0026 kernel: wd719x: init: time is 626529 jiffies
Jun  8 18:09:04 trib0026 kernel: wd719x: init: Adapter scsi_id is: 0x87
Jun  8 18:09:04 trib0026 kernel: wd719x: init: time is 626529 jiffies
Jun  8 18:09:04 trib0026 kernel: wd719x:  RISC 'Before DMA-Load RISC'
Jun  8 18:09:04 trib0026 kernel: wd719x:   CMD bytes: CMD1:1 CMD2:0 CMD3:14 CMD4:ff
Jun  8 18:09:04 trib0026 kernel: wd719x:   Pointer:   in:c0b68000, response:50b68.
Jun  8 18:09:04 trib0026 kernel: wd719x:   Status:    PC_Op:80 SCSI:0 SCB:0 INT:0
Jun  8 18:09:04 trib0026 kernel: wd719x: init: time is 626529 jiffies
Jun  8 18:09:04 trib0026 kernel: wd719x: init: try to DMA-Load RISC
Jun  8 18:09:04 trib0026 kernel: wd719x:  RISC 'After DMA-Load RISC'
Jun  8 18:09:04 trib0026 kernel: wd719x:   CMD bytes: CMD1:1 CMD2:0 CMD3:14 CMD4:ff
Jun  8 18:09:04 trib0026 kernel: wd719x:   Pointer:   in:c0b68000, response:50b68.
Jun  8 18:09:04 trib0026 kernel: wd719x:   Status:    PC_Op:80 SCSI:0 SCB:0 INT:0
Jun  8 18:09:04 trib0026 kernel: wd719x: init: time is 626529 jiffies
Jun  8 18:09:04 trib0026 kernel: wd719x: init: trying to initialize RISC
Jun  8 18:09:04 trib0026 kernel: wd719x: init: time is 626529 jiffies
Jun  8 18:09:04 trib0026 kernel: wd719x:  RISC 'after INI_RISC'
Jun  8 18:09:04 trib0026 kernel: wd719x:   CMD bytes: CMD1:1 CMD2:80 CMD3:14 CMD4:ff
Jun  8 18:09:04 trib0026 kernel: wd719x:   Pointer:   in:c0b50000, response:50b68.
Jun  8 18:09:04 trib0026 kernel: wd719x:   Status:    PC_Op:80 SCSI:0 SCB:0 INT:0
Jun  8 18:09:04 trib0026 kernel: wd719x: init: time is 626529 jiffies
Jun  8 18:09:04 trib0026 kernel: wd719x: init: try to go to advanced mode
Jun  8 18:09:04 trib0026 kernel: wd719x: init: WCS Checksum Error
Jun  8 18:09:04 trib0026 kernel: wd719x: init: Error code: 0x00
Jun  8 18:09:04 trib0026 kernel: wd719x: init stalled!
Jun  8 18:09:04 trib0026 kernel: wd719x: detect: retrying ini 1 time(s).
Jun  8 18:09:04 trib0026 kernel: wd719x: init: RISC-Type: 1; fw_release: 3e!
Jun  8 18:09:04 trib0026 kernel: wd719x: init: time is 626529 jiffies
Jun  8 18:09:04 trib0026 kernel: wd719x: init: WCS_CODE_SIZE: 516;risc_sz: 13312; s_of(H_P): 20; total: 13848
[... and so on; 4 or 5 tries, then:]

Jun  8 18:09:04 trib0026 kernel: wd719x: init: WCS Checksum Error
Jun  8 18:09:04 trib0026 kernel: wd719x: init: Error code: 0x00
Jun  8 18:09:04 trib0026 kernel: wd719x: init stalled!
Jun  8 18:09:04 trib0026 kernel: wd719x: detect: failed to initialize 7193 at ec00
Jun  8 18:09:04 trib0026 kernel: wd719x: wd719x: found 0 adapters
Jun  8 18:09:04 trib0026 kernel: wd719x: wd719x: detect returned sh[0]:00000000.
Jun  8 18:09:04 trib0026 kernel: wd719x: wd719x: detect returned sh[1]:00000000.
Jun  8 18:09:04 trib0026 kernel: wd719x: wd719x: detect returned sh[2]:00000000.
Jun  8 18:09:04 trib0026 kernel: wd719x: wd719x: detect returned sh[3]:00000000.
Jun  8 18:09:04 trib0026 kernel: scsi: wd719x failed to be found.
Jun  8 18:09:04 trib0026 kernel: scsi : 0 hosts.

Hope that helps. Are there any yet unpublished code changes? And:
Where can I download a copy of this mailinglist's archive?

TIA,
ciao
johnny

System:

  AMD K6, Linux-2.2.9ac1, egcs-2.93.19, WD7193RTL PCI +
  HP SureStore 6020i (CD-R)

           CPU0
  0:    1263731          XT-PIC  timer
  1:      19954          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  3:     221988          XT-PIC  HiSax
  4:      20836          XT-PIC  serial
  8:          5          XT-PIC  rtc
  9:          0          XT-PIC  
 10:         82          XT-PIC  MAD16 WSS
 13:          1          XT-PIC  fpu
 14:     410916          XT-PIC  ide0
 15:      12820          XT-PIC  ide1
NMI:          0

Note that the "9" entry appeared after the first load of the driver.
The "name" field consisted of bogus text. I think I'll have to fix
that and update the driver to the 2.2.x API.

-- 
J. Teveßen, Germany
PGPkey: http://pgp.lsi.upc.es:11371/pks/lookup?op=get&search=0x5C77B04D


More information about the wd719x mailing list