Subject: Re: gem (ERI/GEM/GMAC Ethernet device driver) has problems on macppc
To: Chris Tribo <ctribo@dtcc.edu>
From: Timo Schoeler <timo.schoeler@riscworks.net>
List: current-users
Date: 10/18/2005 22:12:39
Chris Tribo wrote:
> There was a change checked into the broadcom bge driver to add  support 
> for vlan sized frames a few weeks ago, this may have broken  gem as that 
> is also a broadcom 57xx chip IIRC. Are there any tagged  vlan frames 
> being seen by this nic?

thanks for your fast reply,

no, there are no VLANs in this LAN.

timo

> 
> On Oct 18, 2005, at 3:49 PM, Timo Schoeler wrote:
> 
>> hi list(s),
>>
>> i see following entries in the syslog:
>>
>> Oct 18 13:28:33 ubiytsa /netbsd: gem0: discarding oversize frame  
>> (len=13364)
>> Oct 18 13:28:33 ubiytsa /netbsd: gem0: receive error: CRC error
>> Oct 18 13:28:34 ubiytsa /netbsd: gem0: discarding oversize frame  
>> (len=13364)
>> Oct 18 13:28:34 ubiytsa /netbsd: gem0: receive error: CRC error
>> Oct 18 13:28:34 ubiytsa last message repeated 6 times
>> Oct 18 13:28:35 ubiytsa /netbsd: gem0: discarding oversize frame  
>> (len=13364)
>> Oct 18 13:28:35 ubiytsa /netbsd: gem0: discarding oversize frame  
>> (len=31460)
>> Oct 18 13:28:36 ubiytsa /netbsd: gem0: receive error: CRC error
>> Oct 18 13:28:36 ubiytsa /netbsd: gem0: discarding oversize frame  
>> (len=17219)
>> Oct 18 13:28:36 ubiytsa /netbsd: gem0: receive error: CRC error
>> Oct 18 13:28:36 ubiytsa /netbsd: gem0: discarding oversize frame  
>> (len=17219)
>> Oct 18 13:28:36 ubiytsa /netbsd: gem0: receive error: CRC error
>> Oct 18 13:28:37 ubiytsa last message repeated 10 times
>> Oct 18 13:28:38 ubiytsa /netbsd: gem0: discarding oversize frame  
>> (len=17219)
>> Oct 18 13:28:38 ubiytsa /netbsd: gem0: receive error: CRC error
>> Oct 18 13:28:38 ubiytsa /netbsd: gem0: discarding oversize frame  
>> (len=17219)
>> Oct 18 13:28:38 ubiytsa /netbsd: gem0: receive error: CRC error
>> Oct 18 13:28:38 ubiytsa last message repeated 6 times
>> Oct 18 13:28:40 ubiytsa /netbsd: gem0: discarding oversize frame  
>> (len=17219)
>> Oct 18 13:28:40 ubiytsa /netbsd: gem0: discarding oversize frame  
>> (len=19714)
>> Oct 18 16:00:00 ubiytsa syslogd: restart
>> Oct 18 16:00:10 ubiytsa syslogd: restart
>> Oct 18 16:07:49 ubiytsa /netbsd: gem0: discarding oversize frame  
>> (len=17219)
>> Oct 18 16:07:49 ubiytsa /netbsd: gem0: receive error: CRC error
>>
>> this happens with 3.99.10 (my kernel, built a few minutes ago) as  
>> well as the 3.99.9 GENERIC.MP from NetBSD-daily (HEAD).
>>
>> dmesg attached below.
>>
>> the problem usually appears when transferring huge files in the  LAN, 
>> but it starts as early as in ssh handshaking (transfer on the  LAN via 
>> scp(1)).
>>
>> the machine is connected to a 10/100 hub which makes no trouble to  
>> any of the other six connected machines/devices.
>>
>> i can setup the machine to a managed switch and have a deeper look  at 
>> it on request.
>>
>> is this a known problem (at least there's no PR on this)?
>>
>> thanks,
>>
>> timo
>>
>> the dmesg:
>>
>> Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,  2005
>>     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 3.99.10 (OBIYTSA_MP) #0: Tue Oct 18 20:57:38 CEST 2005
>> tis@blackjack-a.riscworks.net:/usr/obj/sys/arch/macppc/compile/ 
>> OBIYTSA_MP
>> total memory = 1024 MB
>> avail memory = 986 MB
>> mainbus0 (root)
>> cpu0 at mainbus0: 7400 (Revision 2.9), ID 0 (primary)
>> cpu0: HID0 8094c0a4<EMCP,DOZE,DPM,EIEC,ICE,DCE,SGE,BTIC,BHT>
>> cpu0: 450.00 MHz, no-parity 1MB WB L2 cache (PB SRAM) at 2:1 ratio
>> cpu1 at mainbus0cpu1: 450.00 MHz
>> : 7400 (Revision 2.9), ID 1
>> cpu1: HID0 8094c0a4<EMCP,DOZE,DPM,EIEC,ICE,DCE,SGE,BTIC,BHT>
>> cpu1: 450.00 MHz, no-parity 1MB WB L2 cache (PB SRAM) at 2:1 ratio
>> uni_n0 at mainbus0 address 0xf8000000
>> ki2c0 at uni_n0 address 0xf8001000
>> iic0 at ki2c0: I2C bus
>> uninorth0 at mainbus0
>> pci0 at uninorth0 bus 0
>> pci0: i/o space, memory space enabled
>> pchb0 at pci0 dev 11 function 0
>> pchb0: Apple Computer UniNorth AGP Interface (rev. 0x00)
>> ofb0 at pci0 dev 16 function 0: ATI Technologies product 0x4966
>> ofb0: 1600 x 1200, 8bpp
>> wsdisplay0 at ofb0 kbdmux 1: console (std, vt100 emulation)
>> wsmux1: connecting to wsdisplay0
>> uninorth1 at mainbus0
>> pci1 at uninorth1 bus 0
>> pci1: i/o space, memory space enabled
>> pchb1 at pci1 dev 11 function 0
>> pchb1: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
>> ppb0 at pci1 dev 13 function 0: Digital Equipment DC21154 PCI-PCI  
>> Bridge (rev. 0x05)
>> pci2 at ppb0 bus 1
>> pci2: i/o space, memory space enabled
>> adv0 at pci2 dev 2 function 0: AdvanSys ABP-9xxUA SCSI adapter
>> adv0: interrupting at irq 52
>> scsibus0 at adv0: 8 targets, 8 luns per target
>> obio0 at pci2 dev 7 function 0: addr 0x80000000
>> enabling KeyLargo internal modem
>> zsc0 at obio0 offset 0x13000: irq 22,50
>> zstty0 at zsc0 channel 0
>> zstty1 at zsc0 channel 1
>> davbus at obio0 offset 0x14000 not configured
>> adb0 at obio0 offset 0x16000 irq 47: pm_adb_op: timeout. command = 0x0
>> 0 targets
>> aed0 at adb0 addr 0: ADB Event device
>> apm0 at adb0: battery flags 0x9, 0% charged
>> ki2c1 at obio0
>> iic1 at ki2c1: I2C bus
>> wdc0 at obio0 offset 0x1f000 irq 19: DMA transfer
>> atabus0 at wdc0 channel 0
>> wdc1 at obio0 offset 0x20000 irq 20: DMA transfer
>> atabus1 at wdc1 channel 0
>> wdc2 at obio0 offset 0x21000 irq 21: DMA transfer
>> atabus2 at wdc2 channel 0
>> ohci0 at pci2 dev 8 function 0: Apple Computer KeyLargo USB  
>> Controller (rev. 0x00)
>> ohci0: interrupting at irq 27
>> ohci0: OHCI version 1.0
>> usb0 at ohci0: USB revision 1.0
>> uhub0 at usb0
>> uhub0: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
>> uhub0: 2 ports with 2 removable, self powered
>> ohci1 at pci2 dev 9 function 0: Apple Computer KeyLargo USB  
>> Controller (rev. 0x00)
>> ohci1: interrupting at irq 28
>> ohci1: OHCI version 1.0
>> usb1 at ohci1: USB revision 1.0
>> uhub1 at usb1
>> uhub1: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
>> uhub1: 2 ports with 2 removable, self powered
>> fwohci0 at pci2 dev 10 function 0: Texas Instruments TSB12LV23 IEEE  
>> 1394 Host Controller (rev. 0x00)
>> fwohci0: interrupting at irq 63
>> fwohci0: OHCI version 1.0 (ROM=0)
>> fwohci0: No. of Isochronous channels is 4.
>> fwohci0: EUI64 00:30:65:ff:fe:68:9f:4a
>> fwohci0: Phy 1394a available S400, 3 ports.
>> fwohci0: Link S400, max_rec 2048 bytes.
>> ieee1394if0 at fwohci0: IEEE1394 bus
>> fwip0 at ieee1394if0: IP over IEEE1394
>> fwohci0: Initiate bus reset
>> uninorth2 at mainbus0
>> pci3 at uninorth2 bus 0
>> pci3: i/o space, memory space enabled
>> pchb2 at pci3 dev 11 function 0
>> pchb2: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
>> gem0 at pci3 dev 15 function 0: Apple Computer GMAC Ethernet (rev.  0x01)
>> gem0: interrupting at irq 41
>> gem0: Ethernet address 00:30:65:68:9f:4a, 10KB RX fifo, 4KB TX fifo
>> bmtphy0 at gem0 phy 0: BCM5201 10/100 media interface, rev. 2
>> bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
>> fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
>> ieee1394if0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
>> ieee1394if0: bus manager 0 (me)
>> Kernelized RAIDframe activated
>> scsibus0: waiting 2 seconds for devices to settle...
>> uhub2 at uhub1 port 1
>> uhub2: Alps Electric Hub in Apple USB Keyboard, class 9/0, rev  
>> 1.10/2.10, addr 2
>> uhub2: 3 ports with 2 removable, bus powered
>> uhidev0 at uhub0 port 1 configuration 1 interface 0
>> uhidev0: Microsoft Microsoft Wireless Optical MouseM-BM-. 1.0A, rev  
>> 2.00/0.56, addr 2, iclass 3/1
>> uhidev0: 3 report ids
>> ums0 at uhidev0 reportid 1: 5 buttons and Z dir.
>> wsmouse0 at ums0 mux 0
>> uhid0 at uhidev0 reportid 2: input=1, output=0, feature=0
>> uhid1 at uhidev0 reportid 3: input=1, output=0, feature=1
>> uhidev1 at uhub2 port 1 configuration 1 interface 0
>> uhidev1: Alps Electric Apple USB Keyboard, rev 1.10/1.03, addr 3,  
>> iclass 3/1
>> ukbd0 at uhidev1: 8 modifier keys, 6 key codes
>> wskbd1 at ukbd0 mux 1
>> wskbd1: connecting to wsdisplay0
>> wd0 at atabus0 drive 0: <ST3160023A>
>> wd0: drive supports 16-sector PIO transfers, LBA48 addressing
>> wd0: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x  312581808 
>> sectors
>> wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/ 100)
>> wd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4  
>> (Ultra/66) (using DMA)
>> atapibus0 at atabus1: 2 targets
>> cd0 at atapibus0 drive 0: <MATSHITADVD-RAM LF-D211A, , A115> cdrom  
>> removable
>> cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/ 33)
>> cd0(wdc1:0:0): using PIO mode 4, DMA mode 2 (using DMA)
>> boot device: wd0
>> root on wd0a dumps on wd0b
>> root file system type: ffs
>> cpu1: started
>>
>> !DSPAM:435551d6277742548915992!
>>
> 
>