Subject: port-macppc/31947: bm0 ethernet slow and has errors "bm0: discarding oversize frame (len=1563)"
To: None <port-macppc-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <scole@sdf.lonestar.org>
List: netbsd-bugs
Date: 10/29/2005 18:49:00
>Number:         31947
>Category:       port-macppc
>Synopsis:       bm0 ethernet slow and has errors "bm0: discarding oversize frame (len=1563)"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 29 18:49:00 +0000 2005
>Originator:     scole
>Release:        2.0.2
>Organization:
>Environment:
NetBSD pmg3 2.0.2 NetBSD 2.0.2 (PMG3) #2: Sat Oct 29 10:40:19 MST 2005  scole@pmg3:/usr/src/sys/arch/macppc/compile/PMG3 macppc
>Description:
I just installed 2.0.2 on a powermac G3 and it seems the bm0 ethernet driver has problems.   I repeatedly get errors like:

Oct 22 12:09:26 pmg3 /netbsd: bm0: discarding oversize frame (len=1561)
Oct 22 12:10:02 pmg3 /netbsd: bm0: discarding oversize frame (len=1559)
Oct 22 12:10:18 pmg3 /netbsd: bm0: discarding oversize frame (len=1575)

especially when transfering large files with ftp or scp. 

  With scp I could only get transfer rates of about 10 KB/s, and the transfer would stall every 2 or 3 seconds even when transferring with machines on my local network.  My 10/100 Ethernet switch hub collision light kept indicating collisions; netstat would not report any.  I have only 2 other machines on my local network and haven't seen such behavior before.

Just for fun I compiled the if_bm.c driver with BMAC_DEBUG=1 and got faster transfer rates of about 32 KB/s with scp, as well as a lot
of console messages such as
Oct 29 09:16:42 pmg3 /netbsd: bmac_intr status = 0x100
Oct 29 09:16:43 pmg3 /netbsd: bmac_intr status = 0x101
The collision light on my switch stopped ligthing up too.

My kernel is the same as GENERIC with
options	OFB_ENABLE_CACHE

Maybe this problem is related to
http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=31858
but I see no options for setting my bm0 to half or full duplex mode.

ifconfig -m bm0
bm0: flags=8867<UP,BROADCAST,DEBUG,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:05:02:c1:9f:63
        media: Ethernet 10baseT (none)
        supported Ethernet media:
                media 10baseT
        inet 192.168.2.3 netmask 0xffffff00 broadcast 192.168.2.255

Also, this is probably not related, but when I boot my machine I see a
"no active packages" message right before the boot loader is loaded at the open firmware prompt.



>How-To-Repeat:
ftp or scp a file over ethernet bm0
>Fix: