From nobody@FreeBSD.org  Thu Nov 15 21:32:16 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 81AC4105
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Nov 2012 21:32:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 6923E8FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Nov 2012 21:32:16 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qAFLWFV0095615
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Nov 2012 21:32:15 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id qAFLWFph095614;
	Thu, 15 Nov 2012 21:32:15 GMT
	(envelope-from nobody)
Message-Id: <201211152132.qAFLWFph095614@red.freebsd.org>
Date: Thu, 15 Nov 2012 21:32:15 GMT
From: Julien Cigar <jcigar@ulb.ac.be>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [ale] problem: could not disable Tx/Rx MAC(0x00000004)!
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         173652
>Category:       kern
>Synopsis:       [ale] problem: could not disable Tx/Rx MAC(0x00000004)!
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    yongari
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 15 21:40:00 UTC 2012
>Closed-Date:    Tue Jan 08 05:46:53 UTC 2013
>Last-Modified:  Tue Jan 08 05:46:53 UTC 2013
>Originator:     Julien Cigar
>Release:        9-STABLE
>Organization:
ULB
>Environment:
FreeBSD rivendell 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: Thu Nov  1 18:35:54 CET 2012     root@rivendell:/usr/obj/usr/src/sys/CUSTOM  amd64
>Description:
Suddently my machine "lost" the connection with the network, and only a hard reboot fixed the problem. I got the following messages in the kernel logs:

<<6>6>nneewwnnffss  sseerrvveerr  119922..116688..00..225544:://hhoommee//mmaaggee::  nnoto t rreespsopnonddiinngg

newnfs server 192.168.0.254:/home/mage: not responding
ale0: could not disable Tx/Rx MAC(0x00000004)!
ale0: link state changed to DOWN
ale0: could not disable Tx/Rx MAC(0x00000004)!
ale0: link state changed to UP
in6_purgeaddr: err=65, destination address delete failed

This is with:

ale0@pci0:2:0:0:    class=0x020000 card=0x83041043 chip=0x10261969 rev=0xb0 hdr=0x00
    vendor     = 'Atheros Communications'
    device     = 'AR8121/AR8113/AR8114 Gigabit or Fast Ethernet'
    class      = network
    subclass   = ethernet 
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Nov 29 07:06:07 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173652 
Responsible-Changed-From-To: freebsd-net->yongari 
Responsible-Changed-By: yongari 
Responsible-Changed-When: Thu Nov 29 08:04:49 UTC 2012 
Responsible-Changed-Why:  
Grab. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173652 
State-Changed-From-To: open->feedback 
State-Changed-By: yongari 
State-Changed-When: Thu Nov 29 08:07:44 UTC 2012 
State-Changed-Why:  
Would you try the patch at the following URL? 
http://people.freebsd.org/~yongari/ale/ale.mac.diff 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173652 
State-Changed-From-To: feedback->patched 
State-Changed-By: yongari 
State-Changed-When: Mon Dec 17 06:08:31 UTC 2012 
State-Changed-Why:  
Fixed in r244341. Will MFC after settlement. 
Thanks for reporting and testing! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173652 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/173652: commit references a PR
Date: Tue,  8 Jan 2013 05:35:26 +0000 (UTC)

 Author: yongari
 Date: Tue Jan  8 05:35:18 2013
 New Revision: 245154
 URL: http://svnweb.freebsd.org/changeset/base/245154
 
 Log:
   MFC r244341:
     Make sure to stop both TX and RX MACs in ale_stop_mac(). Previously
     it used to stop TX MAC only such that MAC reconfiguration after
     getting a link didn't work as expected.
   
     PR:	kern/173652
 
 Modified:
   stable/8/sys/dev/ale/if_ale.c
 Directory Properties:
   stable/8/sys/   (props changed)
   stable/8/sys/dev/   (props changed)
   stable/8/sys/dev/ale/   (props changed)
 
 Modified: stable/8/sys/dev/ale/if_ale.c
 ==============================================================================
 --- stable/8/sys/dev/ale/if_ale.c	Tue Jan  8 05:34:17 2013	(r245153)
 +++ stable/8/sys/dev/ale/if_ale.c	Tue Jan  8 05:35:18 2013	(r245154)
 @@ -2929,7 +2929,7 @@ ale_stop_mac(struct ale_softc *sc)
  
  	reg = CSR_READ_4(sc, ALE_MAC_CFG);
  	if ((reg & (MAC_CFG_TX_ENB | MAC_CFG_RX_ENB)) != 0) {
 -		reg &= ~MAC_CFG_TX_ENB | MAC_CFG_RX_ENB;
 +		reg &= ~(MAC_CFG_TX_ENB | MAC_CFG_RX_ENB);
  		CSR_WRITE_4(sc, ALE_MAC_CFG, reg);
  	}
  
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/173652: commit references a PR
Date: Tue,  8 Jan 2013 05:34:35 +0000 (UTC)

 Author: yongari
 Date: Tue Jan  8 05:34:17 2013
 New Revision: 245153
 URL: http://svnweb.freebsd.org/changeset/base/245153
 
 Log:
   MFC r244341:
     Make sure to stop both TX and RX MACs in ale_stop_mac(). Previously
     it used to stop TX MAC only such that MAC reconfiguration after
     getting a link didn't work as expected.
   
     PR:	kern/173652
 
 Modified:
   stable/9/sys/dev/ale/if_ale.c
 Directory Properties:
   stable/9/sys/   (props changed)
   stable/9/sys/dev/   (props changed)
 
 Modified: stable/9/sys/dev/ale/if_ale.c
 ==============================================================================
 --- stable/9/sys/dev/ale/if_ale.c	Tue Jan  8 05:30:45 2013	(r245152)
 +++ stable/9/sys/dev/ale/if_ale.c	Tue Jan  8 05:34:17 2013	(r245153)
 @@ -2932,7 +2932,7 @@ ale_stop_mac(struct ale_softc *sc)
  
  	reg = CSR_READ_4(sc, ALE_MAC_CFG);
  	if ((reg & (MAC_CFG_TX_ENB | MAC_CFG_RX_ENB)) != 0) {
 -		reg &= ~MAC_CFG_TX_ENB | MAC_CFG_RX_ENB;
 +		reg &= ~(MAC_CFG_TX_ENB | MAC_CFG_RX_ENB);
  		CSR_WRITE_4(sc, ALE_MAC_CFG, reg);
  	}
  
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: yongari 
State-Changed-When: Tue Jan 8 05:46:16 UTC 2013 
State-Changed-Why:  
MFC to stable/9 and stable/8 done. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173652 
>Unformatted:
