Subject: pci hme0 tx failure
To: None <port-sparc64@netbsd.org>
From: john heasley <heas@shrubbery.net>
List: port-sparc64
Date: 02/04/2002 11:17:15
pci hme does not appear to receive packets properly on either of the
pci based systems that i have (netra t1 and uAXI).  i just received
the netra, but the uAXI hme's worked in 1.5y (circa 11/22).  that
kernel, however, does not work on the netra.

it appears that there is some kind of lossage between the driver and
kernel/processes?  for example, tcpdump data from a switch port-mirror
or local to the machine looks correct:

20:58:57.538652 oak.shrubbery.net > guelah.shrubbery.net: icmp: echo request
0x0000   4500 0054 0073 0000 ff01 24ba c63a 0506        E..T.s....$..:..
0x0010   c63a 0501 0800 b88c 00c2 0002 0000 0000        .:..............
0x0020   3c5d a37b 0000 0000 0004 6cd0 1011 1213        <].{......l.....
0x0030   1415 1617 1819 1a1b 1c1d 1e1f 2021 2223        .............!"#
0x0040   2425 2627 2829 2a2b 2c2d 2e2f 0000 0000        $%&'()*+,-./....
0x0050   0000                                           ..
20:58:57.538797 guelah.shrubbery.net > oak.shrubbery.net: icmp: echo reply
0x0000   4500 0054 d12a 0000 ff01 5402 c63a 0501        E..T.*....T..:..
0x0010   c63a 0506 0000 c08c 00c2 0002 0000 0000        .:..............
0x0020   3c5d a37b 0000 0000 0004 6cd0 1011 1213        <].{......l.....
0x0030   1415 1617 1819 1a1b 1c1d 1e1f 2021 2223        .............!"#
0x0040   2425 2627 2829 2a2b 2c2d 2e2f 0000 0000        $%&'()*+,-./....
0x0050   0000                                           ..

anyone else have this problem?  hints on where to look?

oak# arp -an
? (198.58.5.1) at 08:00:20:76:12:73 on hme0
? (198.58.5.4) at (incomplete) on hme0
? (198.58.5.26) at 00:30:c1:aa:d1:00 on hme0
? (198.58.5.30) at (incomplete) on hme0

Netra t1 (UltraSPARC-IIi 440MHz), No Keyboard
OpenBoot 3.10.25 ME, 512 MB memory installed, Serial #14228584.
Ethernet address 8:0:20:d9:1c:68, Host ID: 80d91c68.

Executing last command: boot disk1 netbsd.new                         
Boot device: /pci@1f,0/pci@1,1/scsi@2/disk@1,0  File and args: netbsd.new
NetBSD IEEE 1275 Bootblock
..>> NetBSD/sparc64 OpenFirmware Boot, Revision 1.5
>> (root@, Mon Oct  1 23:35:26 UTC 2001)
devopen: getdisklabel sez no disk label
loadfile: reading header
elf64_exec: Booting /pci@1f,0/pci@1,1/scsi@2/disk@1,0:a/netbsd.new
4798448@0x1000000+134056@0x1800000+4060248@0x1820ba8 
symbols @ 0xfea86300 74+325584+172672 start=0x1000000
chain: calling OF_chain(800000, ee20, 1000000, fffa3a80, 18)
[ using 499104 bytes of netbsd ELF symbol table ]
console is /pci@1f,0/pci@1,1/ebus@1/su@14,3803f8
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.5ZA (GENERIC) #0: Sun Feb  3 08:31:04 UTC 2002
    root@oak:/home/src/sys/arch/sparc64/compile/GENERIC
total memory = 512 MB
avail memory = 465 MB
using 3289 buffers containing 26312 KB of memory
bootpath: /pci@1f,0/pci@1,1/scsi@2,0/disk@1,0
mainbus0 (root): SUNW,UltraSPARC-IIi-cEngine
cpu0 at mainbus0: SUNW,UltraSPARC-IIi @ 440.026 MHz, version 0 FPU
cpu0: physical 32K instruction (32 b/l), 16K data (32 b/l), 2048K external (64 b/l)
psycho0 at mainbus0 addr 0xfffc0000
SUNW,sabre: impl 0, version 0: ign 7c0 bus range 0 to 3; PCI bus 0
DVMA map: c0000000 to e0000000
pci0 at psycho0
pci0: i/o space, memory space enabled
ppb0 at pci0 dev 1 function 0: Sun Microsystems Simba PCI bridge (rev. 0x13)
pci1 at ppb0 bus 2
pci1: i/o space, memory space enabled
ppb1 at pci1 dev 1 function 0: Digital Equipment DECchip 21150 PCI-PCI Bridge (rev. 0x04)
pci2 at ppb1 bus 3
pci2: i/o space, memory space enabled
pciide0 at pci2 dev 14 function 0: CMD Technology PCI0646 (rev. 0x03)
pciide0: bus-master DMA support present
pciide0: primary channel configured to native-PCI mode
pciide0: using ivec 1800 for native-PCI interrupt
pciide0: secondary channel configured to native-PCI mode
pciide0: disabling secondary channel (no drives)
ppb2 at pci0 dev 1 function 1: Sun Microsystems Simba PCI bridge (rev. 0x13)
pci3 at ppb2 bus 1
pci3: i/o space, memory space enabled
ebus0 at pci3 dev 1 function 0
ebus0: Sun Microsystems PCIO Ebus2, revision 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003, 72c000-72c003, 72f000-72f003
power at ebus0 addr 724000-724003 ipl 37 not configured
SUNW,pll at ebus0 addr 504000-504002 not configured
com0 at ebus0 addr 3803f8-3803ff ipl 28: ns16550a, working fifo
com0: console
com1 at ebus0 addr 3602f8-3602ff ipl 20: ns16550a, working fifo
lpt0 at ebus0 addr 340278-340287, 30015c-30015d, 700000-70000f ipl 34
fdthree at ebus0 addr 3203f0-3203f7, 706000-70600f, 720000-720003 ipl 39 not configured
clock0 at ebus0 addr 0-1fff: mk48t59: hostid 80d91c68
flashprom at ebus0 addr 0-fffff not configured
watchdog at ebus0 addr 200000-20003f ipl 4 not configured
display7seg at ebus0 addr 200040-200040 not configured
beeper at ebus0 addr 722000-722003 not configured
flashprom at ebus0 addr 400000-5fffff not configured
flashprom at ebus0 addr 800000-9fffff not configured
i2c at ebus0 addr 600000-600003 ipl 40 not configured
i2c at ebus0 addr 100000-100003 ipl 27 not configured
SUNW,lom at ebus0 addr 400000-400063 not configured
hme0 at pci3 dev 1 function 1: Sun Happy Meal Ethernet, rev. 1
hme0: interrupting at ivec 3021
hme0: Ethernet address 08:00:20:d9:1c:68
ukphy0 at hme0 phy 0: Generic IEEE 802.3u media interface
ukphy0: OUI 0x0006b8, model 0x000c, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ukphy1 at hme0 phy 1: Generic IEEE 802.3u media interface
ukphy1: OUI 0x0006b8, model 0x000c, rev. 1
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
siop0 at pci3 dev 2 function 0: Symbios Logic 53c875 (ultra-wide scsi)
siop0: using on-board RAM
siop0: interrupting at ivec 20
scsibus0 at siop0: 16 targets, 8 luns per target
pcons at mainbus0 not configured
No counter-timer -- using %tick at 440MHz as system clock.
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <SEAGATE, ST318404LSUN18G, 5221> SCSI3 0/direct fixed
sd0: 17274 MB, 7508 cyl, 19 head, 248 sec, 512 bytes/sect x 35378533 sectors
sd0: sync (50.0ns offset 16), 16-bit (40.000MB/s) transfers, tagged queueing
sd1 at scsibus0 target 1 lun 0: <IBM, DNES-309170Y, SA30> SCSI3 0/direct fixed
sd1: 8748 MB, 11474 cyl, 5 head, 312 sec, 512 bytes/sect x 17916240 sectors
sd1: sync (50.0ns offset 16), 16-bit (40.000MB/s) transfers, tagged queueing
Kernelized RAIDframe activated



SPARCengine(tm)Ultra(tm) AXi (UltraSPARC-IIi 440MHz), No Keyboard
OpenBoot 3.10.8 SME, 384 MB memory installed, Serial #12986113.
Ethernet address 8:0:20:c6:27:1, Host ID: 80c62701.

ok boot
Boot device: disk0  File and args: 
NetBSD IEEE 1275 Bootblock
..>> NetBSD/sparc64 OpenFirmware Boot, Revision 1.5
>> (root@, Mon Oct  1 23:35:26 UTC 2001)
devopen: getdisklabel sez no disk label
loadfile: reading header
elf64_exec: Booting /pci@1f,0/pci@1/scsi@1/disk@0,0:a/netbsd
3232848@0x1000000+128392@0x1800000+4065912@0x181f588 
symbols @ 0xfff02300 74+216648+111157 start=0x1000000
chain: calling OF_chain(800000, ee20, 1000000, fffa5a80, 18)
[ using 328656 bytes of netbsd ELF symbol table ]
Setting DTLB entry 00000000 01000000 data e0000000 27800074
Setting DTLB entry 00000000 01800000 data e0000000 27400076
Setting ITLB entry 00000000 01000000 data e0000000 27800074
Setting CPUINFO mappings...
Setting TSB pointer 00000000 01890000
consinit()
setting up stdin
chosen = f002d8b0, stdin @ 0x1813ba8
stdin instance = fff93818
stdin node = f00691b4
setting up stdout
stdout instance = fff93ed8
stdout package = f00691b4
buffer @ 0x1c09d90
console is /pci@1f,0/pci@1,1/ebus@1/se@14,400000:a
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.5Y (sky) #0: Tue Oct  9 02:25:25 UTC 2001
    root@sky:/home/src/sys/arch/sparc64/compile/sky
total memory = 384 MB
avail memory = 347 MB
using 2470 buffers containing 19760 KB of memory
bootpath: /pci@1f,0/pci@1,0/scsi@1,0/disk@0,0
mainbus0 (root): SUNW,UltraSPARC-IIi-Engine
cpu0 at mainbus0: SUNW,UltraSPARC-IIi @ 440.129 MHz, version 0 FPU
cpu0: physical 4K instruction (32 b/l), 4K data (32 b/l), 2048K external (64 b/l) 
psycho0 at mainbus0 addr 0xfffc0000
SUNW,sabre: impl 0, version 0: ign 7c0 bus range 0 to 128; PCI bus 0
intr_establish: intr reused 7c0
DVMA map: c0000000 to e0000000
pci0 at psycho0
pci0: i/o space, memory space enabled
ppb0 at pci0 dev 1 function 1: Sun Microsystems Simba PCI bridge (rev. 0x13)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
ebus0 at pci1 dev 1 function 0
ebus0: Sun Microsystems PCIO Ebus2, revision 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003, 72c000-72c003, 72f000-72f003
power at ebus0 addr 724000-724003 ipl 37 not configured
SUNW,pll at ebus0 addr 504000-504002 not configured
se at ebus0 addr 400000-40007f ipl 43 not configured
com0 at ebus0 addr 3803f8-3803ff ipl 41: ns16550a, working fifo
kbd0 at com0
com1 at ebus0 addr 3602f8-3602ff ipl 42: ns16550a, working fifo
ms0 at com1
lpt0 at ebus0 addr 340278-340287, 30015c-30015d, 700000-70000f ipl 34
fdthree at ebus0 addr 3203f0-3203f7, 706000-70600f, 720000-720003 ipl 39 not configured
clock0 at ebus0 addr 0-1fff: mk48t59: hostid 80c62701
flashprom at ebus0 addr 0-fffff not configured
beeper at ebus0 addr 722000-722003 not configured
SUNW,rasctrl at ebus0 addr 600000-600003 ipl 40 ipl 37 not configured
hme0 at pci1 dev 1 function 1: Sun Happy Meal Ethernet, rev. 1
hme0: interrupting at ivec 3021
hme0: Ethernet address 08:00:20:c6:27:01
nsphy0 at hme0 phy 1: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ppb1 at pci0 dev 1 function 0: Sun Microsystems Simba PCI bridge (rev. 0x13)
pci2 at ppb1 bus 128
pci2: i/o space, memory space enabled
siop0 at pci2 dev 1 function 0: Symbios Logic 53c875 (ultra-wide scsi)
siop0: using on-board RAM
siop0: interrupting at ivec 20
scsibus0 at siop0: 16 targets, 8 luns per target
siop1 at pci2 dev 1 function 1: Symbios Logic 53c875 (ultra-wide scsi)
siop1: using on-board RAM
intr_establish: intr reused 7e0
siop1: interrupting at ivec 20
scsibus1 at siop1: 16 targets, 8 luns per target
Sun Microsystems PCIO Ebus2 (miscellaneous bridge, revision 0x01) at pci2 dev 2 function 0 not configured
hme1 at pci2 dev 2 function 1: Sun Happy Meal Ethernet, rev. 1
hme1: interrupting at ivec 3001
hme1: Ethernet address 08:00:20:c6:27:01
nsphy1 at hme1 phy 1: DP83840 10/100 media interface, rev. 1
nsphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcons0 at mainbus0
No counter-timer -- using %tick at 440MHz as system clock.
Using %tick -- intr in 4401292 cycles...done.
scsibus0: waiting 2 seconds for devices to settle...
siop0: alloc newcdb at PHY addr 0xc0034000
sd0 at scsibus0 target 0 lun 0: <IBM, DGHS09Y, 03E0> SCSI3 0/direct fixed
sd0: 8748 MB, 8152 cyl, 10 head, 219 sec, 512 bytes/sect x 17916240 sectors
sd0: sync (50.0ns offset 16), 8-bit (20.000MB/s) transfers, tagged queueing
sd1 at scsibus0 target 1 lun 0: <IBM, DGHS09Y, 03E0> SCSI3 0/direct fixed
sd1: 8748 MB, 8152 cyl, 10 head, 219 sec, 512 bytes/sect x 17916240 sectors
sd1: sync (50.0ns offset 16), 8-bit (20.000MB/s) transfers, tagged queueing
scsibus1: waiting 2 seconds for devices to settle...
siop1: alloc newcdb at PHY addr 0xc0036000
root device: