Subject: tlp(4) is unable to detect phy.
To: None <tech-kern@NetBSD.org>
From: Jochen Kunz <jkunz@unixag-kl.fh-kl.de>
List: tech-kern
Date: 07/18/2004 21:56:38
Hi.
On my mission to bring port-hp700 PCI support I came acros a problem
with the build in tlp(4) interface found in B-Class machines. I pluged a
DEC DE500 PCI card in one PCI slot (PCI dev 2) that works fine. tlp(4)
is unable to detect the phy of the on board interface (PCI dev 20). As I
am not a tlp(4) / mii(4) expert I hope someone else can see what is
going wrong. Below is the output of a NetBSD and an OpenBSD kernel with
SROM debug enabled. OpenBSD can handle the on board tlp(4) / dc(4) just
fine.=20
NetBSD 2.0F (PCI) #90: Sun Jul 18 18:02:45 CEST 2004
[...]
dino0 at phantomas0 hpa 0xfff80000 path 8/0 irq 28 ipl 1: Dino V3.1
pci0 at dino0
pci0: i/o space, memory space enabled
tlp0 at pci0 dev 2 function 0: DECchip 21143 Ethernet, pass 3.0
dino_iomap 1 bpa=3D0xfd00 size=3D0x80
dino_iomap 3
dino_memmap 1a bpa=3D0xf0ffc000 size=3D0x80
dino_memmap 1b
dino_memmap 3
tlp0: SROM size is 2^6*16 bits (128 bytes)
SROM CONTENTS:
0x11 0x10 0x0b 0x50 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0xd4 0x00 0x03 0x01 0x08 0x00 0x2b 0xc4=20
0x0c 0x19 0x00 0x41 0x00 0x44 0x45 0x35=20
0x30 0x30 0x2d 0x42 0x41 0x22 0x81 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0xac 0xac 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x08 0x04 0x86 0x02 0x00 0xaf=20
0x08 0x05 0x00 0x86 0x02 0x04 0xaf 0x08=20
0x05 0x00 0x88 0x04 0x03 0xaf 0x08 0x05=20
0x00 0x61 0x80 0x88 0x04 0x05 0xaf 0x08=20
0x05 0x00 0x61 0x80 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0xe3 0x80=20
tlp0: interrupting at irq 3
tlp0: DEC DE500-BA, Ethernet address 08:00:2b:c4:0c:19
tlp0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
[...]
tlp1 at pci0 dev 20 function 0: DECchip 21143 Ethernet, pass 4.1
dino_iomap 1 bpa=3D0xff00 size=3D0x80
dino_iomap 3
dino_memmap 1a bpa=3D0xf0fff000 size=3D0x400
dino_memmap 3
tlp1: SROM size is 2^6*16 bits (128 bytes)
SROM CONTENTS:
0x3c 0x10 0x4f 0x10 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x7f 0x00 0x03 0x01 0x00 0x10 0x83 0x03=20
0xfd 0x7a 0x00 0x42 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x08 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x4c 0x58=20
tlp1: interrupting at irq 1
tlp1: Ethernet address 00:10:83:03:fd:7a
tlp1: no media found!
OpenBSD 3.5 (B180L) #0: Sun Jul 18 20:44:24 CEST 2004
[...]
dino0 at phantomas0 offset ff80000 irq 26: Dino V3.1
pci0 at dino0
dc0 at pci0 dev 2 function 0 "DEC 21142/3" rev 0x30: irq 3,
SROM size is 128 bytes, SROM CONTENTS:
0x11 0x10 0x0b 0x50 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0xd4 0x00 0x03 0x01 0x08 0x00 0x2b 0xc4=20
0x0c 0x19 0x00 0x41 0x00 0x44 0x45 0x35=20
0x30 0x30 0x2d 0x42 0x41 0x22 0x81 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0xac 0xac 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x08 0x04 0x86 0x02 0x00 0xaf=20
0x08 0x05 0x00 0x86 0x02 0x04 0xaf 0x08=20
0x05 0x00 0x88 0x04 0x03 0xaf 0x08 0x05=20
0x00 0x61 0x80 0x88 0x04 0x05 0xaf 0x08=20
0x05 0x00 0x61 0x80 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0xe3 0x80=20
address 08:00:2b:c4:0c:19
dcphy0 at dc0 phy 31: internal PHY
siop0 at pci0 dev 19 function 0 "Symbios Logic 53c875" rev 0x04: irq 4
scsibus1 at siop0: 16 targets
siop0: target 6 now using 8 bit async xfers
sd0 at scsibus1 targ 6 lun 0: <SEAGATE, ST34572WS, HP00> SCSI2 0/direct
fixed
sd0: 4095MB, 6300 cyl, 8 head, 166 sec, 512 bytes/sec, 8388314 sec total
dc1 at pci0 dev 20 function 0 "DEC 21142/3" rev 0x41: irq 1,
SROM size is 128 bytes, SROM CONTENTS:
0x3c 0x10 0x4f 0x10 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x7f 0x00 0x03 0x01 0x00 0x10 0x83 0x03=20
0xfd 0x7a 0x00 0x42 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x08 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00=20
0x00 0x00 0x00 0x00 0x00 0x00 0x4c 0x58=20
address 00:10:83:03:fd:7a
lxtphy0 at dc1 phy 1: LXT970 10/100 media interface, rev. 1
--=20
tsch=FC=DF,
Jochen
Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/