Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Mar 2010 19:02:52 -0700
From:      Marcel Moolenaar <xcllnt@mac.com>
To:        pyunyh@gmail.com
Cc:        powerpc@freebsd.org, embedded@freebsd.org, nwhitehorn@freebsd.org
Subject:   Re: Anyone using BOOTP with latest current (Book-E)?
Message-ID:  <1E7B1B12-A426-419D-874C-3BBDF7DE0698@mac.com>
In-Reply-To: <20100324003846.GK1278@michelle.cdnetworks.com>
References:  <B7BAFA66-33DF-4EAB-835D-50BEEF7919D0@mac.com> <4BA8CF0E.50201@freebsd.org> <20100323.094126.787670930724128348.imp@bsdimp.com> <E210061E-5EE8-42C9-9B20-9788AB6F836B@mac.com> <20100323230351.GI1278@michelle.cdnetworks.com> <00BE3C94-8C04-4E00-9617-1DB07C7FAF42@mac.com> <20100324003846.GK1278@michelle.cdnetworks.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mar 23, 2010, at 5:38 PM, Pyun YongHyeon wrote:
>> What the patch does is to not enable autoneg when autoneg is already
>> enabled so that we don't interfere with the autoneg handshake.
>> 
> 
> Yeah, but it also disables ability to restart auto-negotiation with
> "ifconfig tsec0 media auto" command.

That's a valid point. Unfortunately, it's also the problem in a way.
I have one too many FreeBSD machines unable to boot normally into
multi-user mode simply because of excessive link flaps by virtue of
running ifconfig.

> If the PHY is buggy I would add a special case not to check the
> CIPHY_BMSR_ACOMP bit of BMCR for a give PHY model in auto-negotiation
> completion check.

The PHY isn't buggy. At least not that I'm aware of :-)

> One odd thing in tsec(4) is tsec_miibus_statchg() handling. If
> ciphy(4) just reports link UP, tsec(4) still seems to reprogram
> TSEC_REG_ECNTRL register. Shouldn't it check link UP state as well
> as resolved speed/duplex of link?

It does check the speed of the link.

> Also I'm not sure whether tsec(4)
> can safely change duplex configuration when MAC is in
> enabled/active state.

Extensive testing has been done to validate proper operation of
the driver WRT link (re-)negotiations. While Juniper's version is
a bit different from FreeBSD's version, tsec_miibus_statchg()
is fundamentally the same (only locking differences and style).

-- 
Marcel Moolenaar
xcllnt@mac.com






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1E7B1B12-A426-419D-874C-3BBDF7DE0698>