Re: re(4) link goes down when manually setting media type

From: Pyun YongHyeon <pyunyh_at_gmail.com>
Date: Thu, 10 Aug 2006 18:30:18 +0900
On Tue, Aug 08, 2006 at 10:06:56AM +0200, Jelte Jansen wrote:
 > -----BEGIN PGP SIGNED MESSAGE-----
 > Hash: SHA1
 > 
 > 
 > Hi,
 > 
 > i have a problem with the if_re driver for my gigabit network card
 > (RTL8196). When i set it to autoselect, it works fine,
 > although with apparently random performance problems. When i try to set
 > it to a fixed media type (both 100baseTX and 1000baseTX) the link goes
 > down, and stays down until i set it to autoselect again. It does seem to
 > work when setting it to 10baset/utp.
 > 
 > This happens with the driver in -CURRENT (__FBSDID("$FreeBSD:
 > src/sys/dev/re/if_re.c,v 1.72 2006/08/03 00:15:19 yongari Ex)
 > 
 > I have seen in the issue tracker and on the -current and -stable that
 > there were other problems with the re(4) driver, but did not see this
 > one. Any ideas?
 > 

Due to the poor PHY documentation from RealTek I can't sure but
I guess the RealTek PHY needs to set RGEPHY_BMCR_AUTOEN bit of
RGEPHY_MII_BMCR register and proper ANAR register setting for
manual media type selection.
How about attached patch?

-- 
Regards,
Pyun YongHyeon

Received on Thu Aug 10 2006 - 07:29:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:58 UTC