Skip to contentSkip to conversation

8572E - machine check pin (MCP0)

DISCUSSION Morrison, Tom 2 participants 3 messages Nov 24, 2008 – Nov 25, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Running 2.6.23.25 kernel...

I have an external watchdog timer that is going off - and pulsing into the MCP0 of the 8572E. I get the printk indicating that the MCP0 went off - the problem is - how do I clear the condition that caused this because my hardware engineer swears that the pulse is ONLY 250ms - and after resetting several status registers (mcpsumr & rst (because my hardware engineer swears that the pulse is ONLY 250ms long (and I have a delay after my printk of 250ms)) - so I am pretty sure

I am resetting the conditions mcpsumr (also, extra: the rstsr), but after writing mcpsumr - and reading back - it still has=20 the mcp0 bit set?

Where else do I need to reset the status - I think I am doing it right...
but it isn't clearing the exception - and it 'dies' the next time through
this (why is another problem - but first, I'd like to know why the condition
is NOT being cleared...at all)...

A couple of possibilities is that because the external MCP0 condition is actually a pulse - another machine check could be clocked in on the 'falling' edge - but this pulse is long gone before I even come close to attempting clearing the mcp0 exception in mcpsumr?

FWIW, I also have the same signal pulsing to my UDE - and at least after resetting the UDE condition, it 'looks' reset - before immediately getting
another UDE interrupt (potentially for the falling edge)...

I am very confused here...

Thanks for any advice...

Tom

#2 lore raw
Quoted 14 lines · Tom

Running 2.6.23.25 kernel...

I have an external watchdog timer that is going off - and pulsing into the MCP0 of the 8572E. I get the printk indicating that the MCP0 went off - the problem is - how do I clear the condition that caused this because my hardware engineer swears that the pulse is ONLY 250ms - and after resetting several status registers (mcpsumr & rst (because my hardware engineer swears that the pulse is ONLY 250ms long (and I have a delay after my printk of 250ms)) - so I am pretty sure

I am resetting the conditions mcpsumr (also, extra: the rstsr), but after writing mcpsumr - and reading back - it still has the mcp0 bit set?

Quoted 7 lines

Where else do I need to reset the status - I think I am doing it right...
but it isn't clearing the exception - and it 'dies' the next time through
this (why is another problem - but first, I'd like to know why the condition
is NOT being cleared...at all)...

SRESET# also sets MCP0 and MCP1, maybe that is on?

I'd also check the EMCP bit in SPRN_HID0 (on core 0 for MCP0).

#3 lore raw

I wrote:
<snip some things>

Quoted 1 line
Quoted 1 line

I have an external watchdog timer that is going off - and pulsing

into

Quoted 3 lines
Quoted 3 lines

the MCP0 of the 8572E. I get the printk indicating that the MCP0 went off - the problem is - how do I clear the condition that caused this because my hardware engineer swears that the pulse is ONLY 250ms -

and

Quoted 2 lines
Quoted 2 lines

after resetting several status registers (mcpsumr & rst (because my hardware engineer swears that the pulse is ONLY 250ms

long

Quoted 5 lines
Quoted 5 lines

(and I have a delay after my printk of 250ms)) - so I am pretty sure

I am resetting the conditions mcpsumr (also, extra: the rstsr), but after writing mcpsumr - and reading back - it still has the mcp0 bit set?

<snip more>

Quoted 2 lines · Trent

SRESET# also sets MCP0 and MCP1, maybe that is on? I'd also check the EMCP bit in SPRN_HID0 (on core 0 for MCP0).

I think SRESET is a separate signal - and even if it was ON (which it shouldn't be) - it should show up in the MCPSUMR=20 Register (and I am clearing that condition)...

I am getting the first machine check (with an indication that=20 the MCP0 is pulled) - I don't think you can get a Machine check without=20 SPRN_HID0's EMCP being set?=20

The only thing that I am thinking is that I have two edges, and after returning from the machine check (first time) the ME bit is NOT enabled, so when the falling edge of that pulse occurs, it=20 causes another machine check - which because ME bit is NOT set it causes a checkstop - and it goes away...

That explains why it hangs for the second machine check - although it still 'starts' into the machine check handler before dying=20 very early in its execution (before it does a full dump of registers)...

very strange stuff here...

Tom