Skip to contentSkip to conversation

440gx ethernet lockup

DISCUSSION Brian Kuschak 3 participants 8 messages Nov 21, 2003 – Dec 3, 2003

lore
Share & tools
lore
#0 lore raw

Is anyone actively working with ethernet on the 440GX?
I'm seeing TX lockups when stressing the 10/100 EMAC
with heavy NFS traffic:

find /nfs_mnt -type f |xargs grep blahblahblah

This is the only way I can make it happen, but it does happen quickly.

The 'get_next_packet' bit is set but never clears. The EMAC_ISR doesn't have any unusual errors (except for some deferrals). The 'dead_bit' is _not_ asserted. The MAL channels are enabled, and so is the EMAC. No TXDE interrupts have occurred. The BD ring is filled with packets ready to send. The same code on a 440GP works fine. This version of the CPU (PVR 0x51b21851) is supposed to have all the EMAC-related errata fixed, but this smells like a silicon bug to me.

I'm still waiting on a response from IBM... Any ideas?

Thanks,
Brian

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 10 lines · Brian Kuschak

Is anyone actively working with ethernet on the 440GX?
I'm seeing TX lockups when stressing the 10/100 EMAC
with heavy NFS traffic:

find /nfs_mnt -type f |xargs grep blahblahblah

This is the only way I can make it happen, but it does happen quickly.

Quoted 10 lines

The 'get_next_packet' bit is set but never clears. The EMAC_ISR doesn't have any unusual errors (except for some deferrals). The 'dead_bit' is _not_ asserted. The MAL channels are enabled, and so is the EMAC. No TXDE interrupts have occurred. The BD ring is filled with packets ready to send. The same code on a 440GP works fine. This version of the CPU (PVR 0x51b21851) is supposed to have all the EMAC-related errata fixed, but this smells like a silicon bug to me.

What kernel version? What board? Eval or your custom one? If the custom one, did you try your test on eval?

How long does it usually take to get into lock up state?

I've just ran your "find" cmd for 10 minutes on our 440GX board without any problems.

What clock mode are you using (533/152, 500/166 or smth else)? Do you have L2C enabled? If yes, please check L2C0_SR for parity errors (we have some problems with several our 440GX boards).

Eugene.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 6 lines

What kernel version? What board? Eval or your custom one?
If the custom one, did you try your test on eval?

It's based on 2.4.19 linuxppc_2_4 plus IBM's 440gx_nova_fp patch. Custom hardware. During previous testing on eval board there was a loss of connectivity, which in hindsight could have been this problem. I'm working on reproducing it on the eval board.

Quoted 7 lines

How long does it usually take to get into lock up
state?

I've just ran your "find" cmd for 10 minutes on our 440GX board
without any problems.

With aforementioned command, <5000 to 300,000 packets, if MSWM bit is disabled or enabled, respectively. Only happens if nfs is mounted tcp, udp mode doesn't seem to trigger it, or at least not as quickly.

Quoted 7 lines

What clock mode are you using (533/152, 500/166 or smth else)?
Do you have L2C enabled? If yes, please check L2C0_SR for parity
errors (we have some problems with several our 440GX boards).

666/166.
CONFIG_440GX_L2_INSTRUCTION=y
CONFIG_440GXL2_CACHE=y

I'll check on the parity errors, although I'm not sure how that could lockup the EMAC.

Brian

Quoted 4 lines

Eugene.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#3 lore raw
Quoted 9 lines · Brian Kuschak
Quoted 6 lines

What kernel version? What board? Eval or your custom one?
If the custom one, did you try your test on eval?

It's based on 2.4.19 linuxppc_2_4 plus IBM's 440gx_nova_fp patch.

I got impression that IBM patch wasn't of a good quality (the one against mvl 2.4.17).
linuxppc-2.4 tree has some changes for EMAC4, not sure they were in IBM's patch.

Quoted 14 lines

Custom hardware. During
previous testing on eval board there was a loss of connectivity, which in hindsight could have been this problem. I'm working on reproducing it on the eval board.

Quoted 7 lines

How long does it usually take to get into lock up
state?

I've just ran your "find" cmd for 10 minutes on our 440GX board
without any problems.

Quoted 4 lines

With aforementioned command, <5000 to 300,000 packets, if MSWM bit is disabled or enabled, respectively. Only happens if nfs is mounted tcp, udp mode doesn't seem to trigger it, or at least not as quickly.

Hmm, I was testing NFS over UDP for 40 min. Not sure I can easily test NFS over TCP. What about netperf?

Quoted 9 lines
Quoted 7 lines

What clock mode are you using (533/152, 500/166 or smth else)?
Do you have L2C enabled? If yes, please check L2C0_SR for parity
errors (we have some problems with several our 440GX boards).

666/166.

You may want to try lower speeds. May help to isolate problem :)

Quoted 5 lines

CONFIG_440GX_L2_INSTRUCTION=y
CONFIG_440GXL2_CACHE=y

I'll check on the parity errors, although I'm not sure how that could lockup the EMAC.

Well, you can get corrupted code with impredictable results. We are still investigating these L2C parity errors. I saw several times something similar to your situation when EMAC was stuck on faulty board, although I didn't look at it hard.

Eugene.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#4 lore raw

I found the problem. Our SEEPROM was misconfigured to set the MAL clock to PLB/4. This resulted in a MAL clock of 41MHz, apparently too slow... After changing the MAL clock to PLB/1, the system ran for days without any problems. Unfortunately I couldn't find any IBM docs which specify requirements for the MAL clock, and IBM still hasn't responded.

BTW, is anyone else having trouble with ppcsupp lately?

Brian

Quoted 76 lines
Quoted 1 line
Quoted 1 line

What kernel version? What board? Eval or your

custom

Quoted 2 lines
Quoted 2 lines

one?
If the custom one, did you try your test on

eval?

Quoted 4 lines
Quoted 1 line

It's based on 2.4.19 linuxppc_2_4 plus IBM's
440gx_nova_fp patch.

I got impression that IBM patch wasn't of a good
quality (the one
against mvl 2.4.17).
linuxppc-2.4 tree has some changes for EMAC4, not
sure they
were in IBM's patch.

Quoted 3 lines

Custom hardware. During
previous testing on eval board there was a loss of connectivity, which in hindsight could have been

this

Quoted 1 line

problem. I'm working on reproducing it on the

eval

Quoted 3 lines

board.

Quoted 1 line

How long does it usually take to get into lock

up

Quoted 3 lines
Quoted 3 lines

state?

I've just ran your "find" cmd for 10 minutes on

our

Quoted 5 lines
Quoted 3 lines

440GX board
without any problems.

With aforementioned command, <5000 to 300,000

packets,

Quoted 2 lines

if MSWM bit is disabled or enabled, respectively.
Only happens if nfs is mounted tcp, udp mode

doesn't

Quoted 1 line

seem to trigger it, or at least not as quickly.

Hmm, I was testing NFS over UDP for 40 min. Not sure I can easily test
NFS over TCP. What about netperf?

Quoted 1 line
Quoted 1 line

What clock mode are you using (533/152, 500/166

or

Quoted 4 lines
Quoted 4 lines

smth else)?
Do you have L2C enabled? If yes, please check
L2C0_SR for parity
errors (we have some problems with several our

440GX

Quoted 4 lines
Quoted 2 lines

boards).

666/166.

You may want to try lower speeds. May help to
isolate problem :)

Quoted 4 lines

CONFIG_440GX_L2_INSTRUCTION=y
CONFIG_440GXL2_CACHE=y

I'll check on the parity errors, although I'm not

sure

Quoted 1 line

how that could lockup the EMAC.

Well, you can get corrupted code with impredictable results. We are
still investigating these L2C parity errors. I saw several times
something similar to your situation when EMAC was stuck on faulty
board, although I didn't look at it hard.

Quoted 3 lines

Eugene.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#5 lore raw

ppcsup seems to be pretty busy lately. I've pushed them on some important issues and they take action but it seems that there are a lot of very important issues right now.

} I found the problem. Our SEEPROM was misconfigured to } set the MAL clock to PLB/4. This resulted in a MAL } clock of 41MHz, apparently too slow... After changing } the MAL clock to PLB/1, the system ran for days } without any problems. Unfortunately I couldn't find } any IBM docs which specify requirements for the MAL } clock, and IBM still hasn't responded.
}
} BTW, is anyone else having trouble with ppcsupp } lately?
}
} Brian
}
}
} > > > What kernel version? What board? Eval or your } > custom
} > > > one?
} > > > If the custom one, did you try your test on } > eval?
} > > >
} > >
} > > It's based on 2.4.19 linuxppc_2_4 plus IBM's } > > 440gx_nova_fp patch.
} >
} > I got impression that IBM patch wasn't of a good } > quality (the one
} > against mvl 2.4.17).
} > linuxppc-2.4 tree has some changes for EMAC4, not } > sure they
} > were in IBM's patch.
} >
} > > Custom hardware. During
} > > previous testing on eval board there was a loss of } > > connectivity, which in hindsight could have been } > this
} > > problem. I'm working on reproducing it on the } > eval
} > > board.
} > >
} > > > How long does it usually take to get into lock } > up
} > > > state?
} > > >
} > > > I've just ran your "find" cmd for 10 minutes on } > our
} > > > 440GX board
} > > > without any problems.
} > > >
} > >
} > > With aforementioned command, <5000 to 300,000 } > packets,
} > > if MSWM bit is disabled or enabled, respectively. } > > Only happens if nfs is mounted tcp, udp mode } > doesn't
} > > seem to trigger it, or at least not as quickly. } >
} > Hmm, I was testing NFS over UDP for 40 min. Not sure } > I can easily test
} > NFS over TCP. What about netperf?
} >
} > > > What clock mode are you using (533/152, 500/166 } > or
} > > > smth else)?
} > > > Do you have L2C enabled? If yes, please check } > > > L2C0_SR for parity
} > > > errors (we have some problems with several our } > 440GX
} > > > boards).
} > > >
} > >
} > > 666/166.
} >
} > You may want to try lower speeds. May help to } > isolate problem :)
} >
} > > CONFIG_440GX_L2_INSTRUCTION=y
} > > CONFIG_440GXL2_CACHE=y
} > >
} > > I'll check on the parity errors, although I'm not } > sure
} > > how that could lockup the EMAC.
} >
} > Well, you can get corrupted code with impredictable } > results. We are
} > still investigating these L2C parity errors. I saw } > several times
} > something similar to your situation when EMAC was } > stuck on faulty
} > board, although I didn't look at it hard.
} >
} > Eugene.
} >
} >
}
}

--
Cort Dougan
Director of Engineering, FSMLabs
Office: (505) 838-9109

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#6 lore raw
In reply to Brian Kuschak
Quoted 9 lines · Brian Kuschak

I found the problem. Our SEEPROM was misconfigured to set the MAL clock to PLB/4. This resulted in a MAL clock of 41MHz, apparently too slow... After changing the MAL clock to PLB/1, the system ran for days without any problems. Unfortunately I couldn't find any IBM docs which specify requirements for the MAL clock, and IBM still hasn't responded.

Well, I just checked 440GX manual and it does states that minimum MAL clock is 45MHz (see CPR0_MALD register definition).

Eugene.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#7 lore raw
Quoted 7 lines

Well, I just checked 440GX manual and it does states that minimum MAL
clock is 45MHz (see CPR0_MALD register definition).

Eugene.

Hmmm... Mine doesn't say that. Which revision of the manual are you using? Paper or PDF?

That is good information, though. Thanks.

Brian

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/