Subject: kern/14655: sip0 MAC address all zero
To: None <gnats-bugs@gnats.netbsd.org>
From: Stephen Borrill <netbsd@precedence.co.uk>
List: netbsd-bugs
Date: 11/20/2001 17:54:11
>Number:         14655
>Category:       kern
>Synopsis:       sip0 MAC address all zero
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 20 09:58:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Stephen Borrill
>Release:        NetBSD 1.5.2
>Organization:
	Precedence Technologies Ltd
>Environment:
System: NetBSD 1.5.2 NetBSD 1.5.2 (LAPTOP) #1: Tue Nov 20 16:02:25 GMT 2001 root@:/usr/src/sys/arch/i386/compile/LAPTOP i386

>Description:
SiS 900 on-board ethernet reports a MAC address of all zeros.
Hacking if_sip.c to manually force it to report the same MAC address as
Win2K does not help at all. The interface can be configured but no network
traffic is either transmitted or received (tested with arp, tcpdump and
ping).

dmesg output shown below:
NetBSD 1.5.2 (LAPTOP) #1: Tue Nov 20 16:02:25 GMT 2001
    root@:/usr/src/sys/arch/i386/compile/LAPTOP
cpu0: Intel (null) (686-class), 1196.25 MHz
total memory = 495 MB
avail memory = 455 MB
using 6368 buffers containing 25472 KB of memory
BIOS32 rev. 0 found at 0xeb2a0
PCI BIOS rev. 2.1 found at 0xeb2e0
pcibios: config mechanism [1][x], special cycles [x][x], last bus 1
PCI IRQ Routing Table rev. 1.0 found at 0xfe840, size 80 bytes (3 entries)
PCI Interrupt Router at 000:01:0 (Silicon Integrated System 85C503 or 5597/5598 ISA bridge)
-------------------------
-----------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:01:1 0x1039 0x0900   C  0x43  10  0    already assigned
000:01:2 0x1039 0x7001   D  0x44  11  0    already assigned
000:01:3 0x1039 0x7001   D  0x44  11  0    already assigned
000:01:4 0x1039 0x7018   B  0x42   5  0    already assigned
000:01:6 0x1039 0x7013   C  0x43  10  0    already assigned
000:10:0 0x104c 0xac41   A  0x41   5  2    fixed up
000:10:1 0x104c 0x8017   B  0x42   5  0    already assigned
------------------------------------------
PCI bridge 0: primary 0, secondary 1, subordinate 1
PCI bridge 1: primary 0, secondary 2, subordinate 2
PCI bus #2 is the last bus
[System BIOS Setting]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x1039 0x0630 
	10h mem  0x20000000 0x04000000
		[OK]
000:00:1 0x1039 0x5513 
	10h port 0x000001f0 0x00000004
	14h port 0x000003f4 0x00000004
	18h port 0x00000170 0x00000004
	1ch port 0x00000374 0x00000004
	20h port 0x00001100 0x00000010
		[OK]
000:01:0 0x1039 0x0008 
		[OK]
000:01:1 0x1039 0x0900 
	10h port 0x00003200 0x00000100
	14h mem  0x24000000 0x00001000
		[OK]
000:01:2 0x1039 0x7001 
	10h mem  0x24001000 0x00001000
		[OK]
000:01:3 0x1039 0x7001 
	10h mem  0x24002000 0x00001000
		[OK]
000:01:4 0x1039 0x7018 
	10h port 0x00003400 0x00000100
	14h mem  0x24003000 0x00001000
		[OK]
000:01:6 0x1039 0x7013 
	10h port 0x00003600 0x00000100
	14h port 0x00003800 0x00000080
		[OK]
000:02:0 0x1039 0x0001 
		[OK]
000:10:0 0x104c 0xac41 
	10h mem  0x00000000 0x00001000
		[NG]
000:10:1 0x104c 0x8017 
	10h mem  0x24004000 0x00000800
	14h mem  0x24008000 0x00004000
		[OK]
001:00:0 0x1039 0x6300 
	10h mem  0x48000000 0x08000000
	14h mem  0x40000000 0x00020000
	18h port 0x0000a000 0x00000080
		[OK]
--------------------------[  1 devices bogus]
 Physical memory end: 0x1efed000
 PCI memory mapped I/O space start: 0x1f000000
[PCIBIOS fixup stage]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x1039 0x0630 
	10h mem  0x20000000 0x04000000
		[OK]
000:00:1 0x1039 0x5513 
	10h port 0x000001f0 0x00000004
	14h port 0x000003f4 0x00000004
	18h port 0x00000170 0x00000004
	1ch port 0x00000374 0x00000004
	20h port 0x00001100 0x00000010
		[OK]
000:01:0 0x1039 0x0008 
		[OK]
000:01:1 0x1039 0x0900 
	10h port 0x00003200 0x00000100
	14h mem  0x24000000 0x00001000
		[OK]
000:01:2 0x1039 0x7001 
	10h mem  0x24001000 0x00001000
		[OK]
000:01:3 0x1039 0x7001 
	10h mem  0x24002000 0x00001000
		[OK]
000:01:4 0x1039 0x7018 
	10h port 0x00003400 0x00000100
	14h mem  0x24003000 0x00001000
		[OK]
000:01:6 0x1039 0x7013 
	10h port 0x00003600 0x00000100
	14h port 0x00003800 0x00000080
		[OK]
000:02:0 0x1039 0x0001 
		[OK]
000:10:0 0x104c 0xac41 
	10h mem  0x1f000000 0x00001000
		[OK]
000:10:1 0x104c 0x8017 
	10h mem  0x24004000 0x00000800
	14h mem  0x24008000 0x00004000
		[OK]
--------------------------[  0 devices bogus]
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Silicon Integrated System product 0x0630 (rev. 0x31)
pciide0 at pci0 dev 0 function 1: Silicon Integrated System 5597/5598 IDE controller (rev. 0xd0)
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <HITACHI_DK23CA-30>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 28615 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 58605120 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
pciide0: secondary channel configured to compatibility mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <TOSHIBA DVD-ROM SD-R2002, , 1J29> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
pcib0 at pci0 dev 1 function 0
pcib0: Silicon Integrated System 85C503 or 5597/5598 ISA bridge (rev. 0x00)
sip0 at pci0 dev 1 function 1: SiS 900 10/100 Ethernet
sip0: interrupting at irq 10
sip0: Ethernet address 00:00:00:00:00:00
ukphy0 at sip0 phy 0: Generic IEEE 802.3u media interface
ukphy0: OUI 0x00057d, model 0x0004, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ohci0 at pci0 dev 1 function 2: Silicon Integrated System 5597/5598 USB host controller (rev. 0x07)
ohci0: interrupting at irq 11
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Silicon Integra OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 1 function 3: Silicon Integrated System 5597/5598 USB host controller (rev. 0x07)
ohci1: interrupting at irq 11
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: Silicon Integra OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
Silicon Integrated System product 0x7018 (audio multimedia, revision 0x02) at pci0 dev 1 function 4 not configured
Silicon Integrated System product 0x7013 (modem communications, revision 0xa0) at pci0 dev 1 function 6 not configured
ppb0 at pci0 dev 2 function 0: Silicon Integrated System 86C201 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: Silicon Integrated System product 0x6300 (rev. 0x31)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
cbb0 at pci0 dev 10 function 0: Texas Instruments product 0xac41 (rev. 0x02)
Texas Instruments product 0x8017 (Firewire serial bus, interface 0x10, revision 0x02) at pci0 dev 10 function 1 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
cbb0: interrupting at irq 5
cbb0: cacheline 0x0 lattimer 0x20
cbb0: bhlc 0x821000 lscp 0x20020200
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x0, lattimer 0x20
pcmcia0 at cardslot0
apm0 at mainbus0: Power Management spec V1.2
biomask eb65 netmask ef65 ttymask ffe7
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsmux1: connöööööööööööööööööööööööööööööööööööööööööööööööööööööööööööööööööööööööööööööööö
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: