[vortex] Mini PCI - no link

Dave Dribin dave-ml@dribin.org
Tue Jun 25 10:04:01 2002


On Mon, Jun 24, 2002 at 06:39:34PM -0400, Donald Becker wrote:
> On Mon, 24 Jun 2002, Dave Dribin wrote:
> 
> > Ok, I've attached two files: before_win.txt and after_win.txt.  The
> > "before" file is a register dump before Windows is booted, where the
> > xcvr does not come up in Linux.  The "after" file is a register dump
> > after booting to Windows, then rebooting back to Linux.  There are
> > definitely differences, but I can't really decipher what's important
> > and what's just status.
> 
> The status reports are essentially identical.
> The only noticable differences are
>     Window 0 offset 0
>       An undefined register is set to 0x0900 instead of 0x0000
>       Perhaps it's not undefined in the new board?
>     Offset 0x20 DMACtrl  Download in progress
>       The chip is trying to download packet, but apparently can't get
>       access to the PCI bus.
> 
> Point 1 is easy to check.  Just add
>    outw(0x0900, ioaddr + 0);
> just after changing the window to 0 around line 862.

Well, holy crikey, that did it!

Just for comparison, here are the registers now:

------------------------------------------------------------------------
vortex-diag.c:v2.06 4/18/2002 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a 3c566 Laptop Tornado adapter at 0x1800.
The Vortex chip may be active, so FIFO registers will not be read.
To see all register values use the '-f' flag.
Initial window 7, registers values by window:
  Window 0: 0900 0000 3938 0000 0000 00fd 0000 0000.
  Window 1: FIFO FIFO 0700 0000 0000 007f 0000 2000.
  Window 2: 0400 5176 9c2e 0000 0000 0000 0010 4000.
  Window 3: 0040 0060 05ea 0020 0040 1000 0800 6000.
  Window 4: 0000 0000 0000 0cd0 0003 8800 0100 8000.
  Window 5: 1ffc 0000 0000 0600 0807 06de 06c6 a000.
  Window 6: 0000 0000 0000 2500 0000 0ecb 0000 c000.
  Window 7: 0000 0000 0000 0000 0000 0000 0000 e000.
Vortex chip registers at 0x1800
  0x1810: **FIFO** 00000000 00000004 *STATUS*
  0x1820: 00000020 150b1a40 00080000 00001404
  0x1830: 00000000 3306ccfa 150b18a0 00080004
 Indication enable is 06c6, interrupt enable is 06de.
 No interrupt sources are pending.
 Transceiver/media interfaces available:  MII.
Transceiver type in use:  MII.
 MAC settings: full-duplex.
 Station address set to 00:04:76:51:2e:9c.
 Configuration options 0010.
 MII PHY found at address 0, status 786d.
 MII PHY 0 at #0 transceiver registers:
   3000 786d 0022 561b 01e1 41e1 0007 2801
   ffff ffff ffff ffff ffff ffff ffff ffff
   01c0 0029 0f90 8020 4f52 0304 0026 0000
   0000 cfbf 0000 ffff ffff ffff ffff ffff.
------------------------------------------------------------------------

The MAC settings does not have 802.1Q flow control like the
"after_win.txt" file I sent before.  Not sure if not having flow
control will be a problem, but it is working.

-Dave