Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Feb 2013 10:34:38 +0900
From:      YongHyeon PYUN <pyunyh@gmail.com>
To:        Oliver Fromme <olli@lurza.secnetix.de>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: re(4) problems with GA-H77N-WIFI
Message-ID:  <20130213013438.GA3101@michelle.cdnetworks.com>
In-Reply-To: <201302081927.r18JRtYk017319@grabthar.secnetix.de>
References:  <20130206055322.GA1442@michelle.cdnetworks.com> <201302081927.r18JRtYk017319@grabthar.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 08, 2013 at 08:27:55PM +0100, Oliver Fromme wrote:
> 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.

Hmm, it seems GMAC is in sane state.
Would you show me the output of "devinfo -rv | grep rgephy"?

To rule out hardware issues, could you also try other OS like
Linux?

> 
> Best regards
>    Oliver



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