NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/50206: panic: mii_anar -- setting media for alc(4)



The following reply was made to PR kern/50206; it has been noted by GNATS.

From: Leonardo Taccari <iamleot%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/50206: panic: mii_anar -- setting media for alc(4)
Date: Fri, 04 Sep 2015 15:05:21 +0200

 Hello Masanobu and matthew,
 
 Masanobu SAITOH writes:
 >  Could you try with the following diff?
 > I have no any atphy(4) device.
 > 
 > Index: atphy.c
 > ===================================================================
 > RCS file: /cvsroot/src/sys/dev/mii/atphy.c,v
 > retrieving revision 1.16
 > diff -u -r1.16 atphy.c
 > --- atphy.c	16 Jun 2014 12:36:41 -0000	1.16
 > +++ atphy.c	4 Sep 2015 10:26:43 -0000
 > @@ -228,7 +228,7 @@
 >  			return EINVAL;
 >  		}
 >  
 > -		anar = mii_anar(ife->ifm_media);
 > +		anar = mii_anar(IFM_SUBTYPE(ife->ifm_media));
 >  		if (((ife->ifm_media & IFM_GMASK) & IFM_FDX) != 0) {
 >  			bmcr |= BMCR_FDX;
 >  			/* Enable pause. */
 I can confirm that applying your patch fixes the issue!
 I have first reproduced the problem, then applied the patch and tested
 on another alc(4) chipset:
 
  alc0 at pci2 dev 0 function 0: Atheros AR8171 PCIe Gigabit Ethernet
 
 
 Thank you very much for the quick fix!
 Ciao,
 L.
 


Home | Main Index | Thread Index | Old Index