Subject: Re: chapeter II: serious problem with hme0
To: RJ45 <rj45@slacknet.com>
From: Martin Husemann <martin@duskware.de>
List: port-sparc64
Date: 02/08/2003 22:16:14
On Sat, Feb 08, 2003 at 12:56:13PM -0700, RJ45 wrote:

>         media: Ethernet autoselect (100baseTX)
..
> the problem is that I have a 3com switch office-connect.

I have seen full/half duplex negotiation problems with some variants of
the hme chip, while others work just fine.

My workaround is a /etc/ifconfig.hme0 like this:

inet xxx.xxx.xxx.xxx
media 100baseTX mediaopt full-duplex
! sleep 1
media autoselect

Amazingly this works, with all switches I tried. If your switch can hard-wire
the full duplex, only the first "media" line is needed. The idea is: force
the hme0 into full-duplex mode, give it enough time to finish the MII state
change, and then just force it to do a new NWAY negotiation.

I have zero clue about the NetBSD MII subsystem, so can't comment if this
is a sign of a bug there or just fallout from broken chip revisions. Solaris
and the SUN proms apparently work around this without such hacks. Which, of
course, does tell us exactly nothing.

Martin