XLlTemac soft lockup BUG
Hugo Villeneuve
hugo.villeneuve at lyrtech.com
Tue Apr 22 01:19:08 EST 2008
Brian Silverman wrote:
> Hugo,
> We have a design with the BCM5482, and will be trying it out shortly.
> Any chance you could post a patch of your BCM5466 mods?
Hi,
The main issue here is that you need to tell the LLTEMAC interface about the speed of your PHY. You can do this by adding this code example in the function
set_mac_speed():
---
#define BROADCOM_BCM5466_RGMII_AUX_STATUS 0x19
#define BCM5466_SPEED_1000BASE_T_FULL_DUPLEX 7
#define BCM5466_SPEED_1000BASE_T_HALF_DUPLEX 6
#define BCM5466_SPEED_100BASE_T_FULL_DUPLEX 5
#define BCM5466_SPEED_100BASE_T4 4
#define BCM5466_SPEED_100BASE_T_HALF_DUPLEX 3
#define BCM5466_SPEED_10BASE_T_FULL_DUPLEX 2
#define BCM5466_SPEED_10BASE_T_HALF_DUPLEX 1
#define BCM5466_SPEED_AN_NOT_COMPLETE 0
u16 RegValue;
_XLlTemac_PhyRead(&lp->Emac, lp->gmii_addr, BROADCOM_BCM5466_RGMII_AUX_STATUS, &RegValue);
phylinkspeed = ( RegValue & 0x0700 ) >> 8; /* Keeping only bits 10-8 */
/* Update TEMAC speed accordingly */
switch (phylinkspeed) {
case BCM5466_SPEED_1000BASE_T_FULL_DUPLEX:
case BCM5466_SPEED_1000BASE_T_HALF_DUPLEX:
lp->cur_speed = 1000;
break;
case BCM5466_SPEED_100BASE_T_FULL_DUPLEX:
case BCM5466_SPEED_100BASE_T_HALF_DUPLEX:
case BCM5466_SPEED_100BASE_T4:
lp->cur_speed = 100;
break;
case BCM5466_SPEED_10BASE_T_FULL_DUPLEX:
case BCM5466_SPEED_10BASE_T_HALF_DUPLEX:
lp->cur_speed = 10;
break;
default:
lp->cur_speed = 1000;
break;
}
_XLlTemac_SetOperatingSpeed(&lp->Emac, lp->cur_speed);
---
Hope it helps, Hugo.
> Hugo Villeneuve wrote:
>
> linuxppc-embedded-bounces+hugo.villeneuve=lyrtech.com at ozlabs.org
> wrote:
>
>
> Hi all,
>
> I am trying to switch my design from the PLB Temac to the local link
> temac, and i have a problem when trying to run ifconfig in my init
> script. It gives me a BUG: soft lockup - CPU#0 stuck for 11s!
> [ifconfig:208] Here is the rest of the dump, thanks for your help in
> advance. [ 233.114960] eth0: XLlTemac: Options: 0x3fa
>
> [ 233.118449] eth0: XLlTemac: allocating interrupt 8 for fifo mode.
>
> [ 237.135029] eth0: XLlTemac: We renegotiated the speed to: 100
>
> [ 237.150339] eth0: XLlTemac: speed set to 100Mb/s
>
> [ 244.792140] BUG: soft lockup - CPU#0 stuck for 11s!
> [ifconfig:204]
>
>
>
> Hi,
> we had a similar error message, which was caused by us selecting the
> wrong PHY type in the kernel configuration menu (latest
> linux-2.6-xlnx-git tree). In fact, we had to modify the lltemac
> driver to support our PHY (BCM5466). Once we did that, the error
> message went away.
>
> Hugo V.
>
>
> Hugo Villeneuve
> Hardware developer | Concepteur matériel
> Lyrtech
> Phone/Tél. : (1) (418) 877-4644 #2395
> Toll-free/Sans frais - Canada & USA : (1) (888) 922-4644 #2395
> Fax/Téléc. : (1) (418) 877-7710
> www.lyrtech.com
> Infinite possibilities...TM
>
> THIS MESSAGE AND ALL ATTACHED DOCUMENTS ARE EXCLUSIVELY INTENDED
> TO THE INDICATED RECIPIENTS AND ITS CONTENTS MAY BE CONFIDENTIAL.
> IT IS STRICTLY FORBIDDEN TO ANYONE TO TAKE COGNIZANCE, USE, OR
> DIVULGE THE INFORMATION CONTAINED HEREIN. IF YOU MISTAKENLY
> RECEIVE THIS MESSAGE, IMMEDIATELY INFORM LYRTECH AND DESTROY THE
> MESSAGE AND ATTACHMENTS FORTHWITH.THANK YOU.
>
> LE PRESENT MESSAGE ET LES DOCUMENTS QUI Y SONT JOINTS S'ADRESSENT
> EXCLUSIVEMENT AU(X)DESTINATAIRE(S) INDIQUE(S) ET LEUR TENEUR PEUT
> ETRE CONFIDENTIELLE. IL EST STRICTEMENT INTERDIT A QUICONQUE D'EN
> PRENDRE CONNAISSANCE, DE LES UTILISER OU DE LES DIVULGUER. SI
> VOUS RECEVEZ LE PRESENT MESSAGE PAR ERREUR, VEUILLEZ EN AVISER
> LYRTECH IMMEDIATEMENT ET DETRUIRE LE MESSAGE SEANCE TENANTE,
> AINSI QUE LES DOCUMENTS QUI Y SONT JOINTS.
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded at ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Hugo Villeneuve
Hardware developer | Concepteur matériel
Lyrtech
Phone/Tél. : (1) (418) 877-4644 #2395
Toll-free/Sans frais - Canada & USA : (1) (888) 922-4644 #2395
Fax/Téléc. : (1) (418) 877-7710
www.lyrtech.com
Infinite possibilities...TM
THIS MESSAGE AND ALL ATTACHED DOCUMENTS ARE EXCLUSIVELY INTENDED
TO THE INDICATED RECIPIENTS AND ITS CONTENTS MAY BE CONFIDENTIAL.
IT IS STRICTLY FORBIDDEN TO ANYONE TO TAKE COGNIZANCE, USE, OR
DIVULGE THE INFORMATION CONTAINED HEREIN. IF YOU MISTAKENLY
RECEIVE THIS MESSAGE, IMMEDIATELY INFORM LYRTECH AND DESTROY THE
MESSAGE AND ATTACHMENTS FORTHWITH.THANK YOU.
LE PRESENT MESSAGE ET LES DOCUMENTS QUI Y SONT JOINTS S'ADRESSENT
EXCLUSIVEMENT AU(X)DESTINATAIRE(S) INDIQUE(S) ET LEUR TENEUR PEUT
ETRE CONFIDENTIELLE. IL EST STRICTEMENT INTERDIT A QUICONQUE D'EN
PRENDRE CONNAISSANCE, DE LES UTILISER OU DE LES DIVULGUER. SI
VOUS RECEVEZ LE PRESENT MESSAGE PAR ERREUR, VEUILLEZ EN AVISER
LYRTECH IMMEDIATEMENT ET DETRUIRE LE MESSAGE SEANCE TENANTE,
AINSI QUE LES DOCUMENTS QUI Y SONT JOINTS.
More information about the Linuxppc-embedded
mailing list