Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Feb 2013 20:27:55 +0100 (CET)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-stable@FreeBSD.ORG, pyunyh@gmail.com
Subject:   Re: re(4) problems with GA-H77N-WIFI
Message-ID:  <201302081927.r18JRtYk017319@grabthar.secnetix.de>
In-Reply-To: <20130206055322.GA1442@michelle.cdnetworks.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I'm sorry for the late reply.  I didn't have much time
this week to investigate this issue.  At the moment I
implemented a work-around with an additional switch using
VLANs, but I'd really like to get the second NIC working.

YongHyeon PYUN wrote:
 > On Mon, Feb 04, 2013 at 07:15:51PM +0100, Oliver Fromme wrote:
 > > Recently I got a new mainboard for a router, it's a
 > > Gigabyte GA-H77N-WIFI with two onboard re(4) NICs.
 > > 
 > > The problem is that re0 works fine and re1 doesn't:
 > > It doesn't receive any packets.  Tcpdump displays all
 > > outgoing packets, but no incoming ones on re1.
 > 
 > Can you see the packets sent from re1 on other box?

No.  I can only see them locally in tcpdump, but they never
hit the wire.

 > If not, it probably indicates GMAC is in weird state which in turn
 > indicates initialization was not complete for the controller.
 > 
 > > Ifconfig shows the link correctly (100 or 1000 Mbit,
 > > depending on where I plug the cable in).
 > > I also swapped cables just to be sure, but it made no
 > > difference.
 > 
 > If you cold-boot the box with UTP cable plugged in to re1 does it
 > make any difference?

No, it doesn't.

 > > I'm running a recent stable/9 (about 14 days old).
 > > What's the best way to debug this problem?  At the
 > 
 > I would check whether GMAC is active when driver detects a valid
 > link.  Add a code like the following to re_miibus_statchg() to get
 > the status of RL_COMMAND register. You would get the status
 > whenever a link is established with link partner.

re0: CMD 0x0c
re0: link state changed to UP
re0: link state changed to DOWN
re1: link state changed to UP
re1: link state changed to DOWN
re1: CMD 0x0c
re1: link state changed to UP
re0: CMD 0x0c
re0: link state changed to UP
re1: link state changed to DOWN

I always seem to get 0x0c for both re0 and re1.

Best regards
   Oliver


-- 
Oliver Fromme,  secnetix GmbH & Co. KG,  Marktplatz 29, 85567 Grafing
Handelsregister:  Amtsgericht Muenchen, HRA 74606, Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsreg.: Amtsgericht München,
HRB 125758, Geschäftsführer:  Maik Bachmann,  Olaf Erb,  Ralf Gebhart

FreeBSD-Dienstleistungen/-Produkte + mehr: http://www.secnetix.de/bsd

"Being really good at C++ is like being really good
at using rocks to sharpen sticks."
        -- Thant Tessman



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302081927.r18JRtYk017319>