Skip to contentSkip to conversation

Yet another MCA handler

DISCUSSION Zoltan Menyhart 3 participants 4 messages Jan 14, 2004 – Jan 15, 2004

lore
Share & tools
lore
#0 lore raw

This is the season of the MCA handlers :-)
Let me show you the one that Christian Cotte-Barrot and I wrote...

I'd like to take this opportunity to express our special thanks to Jenna Hall, she gave us the initial version of the ".S" code and much help, and also to Mani Ayyar, David Song and Tony Luck for the technical consultations.

Our handler currently deals with the translation register errors only. I was to write the code for the recovery for poisoned memory, too, but I've got no way to provoke this kind of error
( I do not really know what it like is :-) )

The key features of our MCA handler are:

* Everything is CPU local ( an MCA data area is allocated and hooked to each "cpuinfo" structure )

* No locks

* No rendezvous
- Does not seem to work if not all the CPUs are started up, i.e. you specify a "maxcpus=<NUM>"...
- A failed rendezvous is a bad omen to start with
- The correctable / recoverable MCAs are CPU local businesses
- All the CPUs can handle MCAs simultaneously

* The translation registers are purged / reloaded unconditionally:
cheaper than calling SAL_GET_STATE_INFO(MCA)

* Table driven TR purging / reload (except for the kernel stack mapping)

* TRs are all purged before the reloading starts ( an erroneous TR can still be in conflict with a freshly purged / reloaded one )

* SAL_CLEAR_STATE_INFO(MCA) is called only for MCAs which have been corrected (TR errors). For the others, the recovery will be tempted by a fake page fault handler, by the device drivers and by the MCA daemon, therefore the SAL MCA log is not cleared here -- future extension :-)

* "Silent" MCA handler: no prints by default ( unless debugging )
- Output uses locks...

* A bit more serious error / status checking

This patch is against the version 2.6.1 + kdb-v4.3-2.6.1-common-b0.bz2 + kdb-v4.3-2.6.1-ia64-b0.bz2.

Testing:
- Obviously by use of an ITP
- In my next mail I'll include a patch that can insert an illegal translation in a TR provoking an MCA

Problems:
Neither "IA64_LOG_NEXT_BUFFER()" nor "salinfo_log_wakeup()" works :-( I think some addresses are messed up. The system says it cannot translate virtual address...

I'll send the patch in the next letter.
Should the list refuse it due to its length, please pick it up at our anonymous FTP server: ftp://visibull.frec.bull.fr/pub/linux/mca/

Your remarks will be appreciated.

Zoltan Menyhart

#1 lore raw

I've started looking at this ... I definitely like the idea of the MCA data area hooked to each percpu area.

-Tony

#2 lore raw
In reply to Zoltan Menyhart
Quoted 4 lines · Zoltan Menyhart

I was to write the code for the recovery for poisoned memory, too, but I've got no way to provoke this kind of error
( I do not really know what it like is :-) )

If you get that far, take the Intel Itanium 2 Processor Specification Update (December 2003) errata 78 into account

78. L2 cache line with poison data results in unexpected fatal MCA

http://www.intel.com/design/itanium2/specupdt/251141.htm

Signature · 2 lines
Russ Anderson, OS RAS/Partitioning Project Lead  
SGI - Silicon Graphics Inc          [email protected]
#3 lore raw
In reply to Zoltan Menyhart
Quoted 7 lines · Russ Anderson
Quoted 4 lines · Zoltan Menyhart

I was to write the code for the recovery for poisoned memory, too, but I've got no way to provoke this kind of error
( I do not really know what it like is :-) )

Quoted 6 lines

If you get that far, take the Intel Itanium 2 Processor Specification Update (December 2003) errata 78 into account

78. L2 cache line with poison data results in unexpected fatal MCA

http://www.intel.com/design/itanium2/specupdt/251141.htm

Thanks for the hint, but as far as I can see, it's not what I look for. This is a fatal MCA. I need something classified as recoverable (byte 10: ERR_SEVERITY in the SAL log record header).

Zoltan Menyhart