re: Rework arch/ia64/kernel/salinfo.c for 2.4

From: Zoltan Menyhart <>
Date: 2003-10-21 00:38:54

I did see an uncorrectable cache error (MCA) and a corrected
memory error (CMC) in a single SAL error log record.
Can you sort out such a case ?

Is there any use to show the log of INIT ?

/* save last 5 records from mca.c, must be < 255 */
struct salinfo_data: struct salinfo_data_saved data_saved[5]; :

It would be much more safe for the MCA stuff to reserve a data
buffer for each CPU. As there is no mutual exclusion with the
MCA handler:
- do not "clear" nor "shift" MCA logs
- the MCA handler can overwrite the buffer of the CPU on which
  it executes
- for the "read <n>" command, you may:
  + calculate a CRC32 of the buffer[n]
  + copy_to_user(buffer[n],...)
  + calculate again the CRC32 of the buffer[n] and restart
    if it is not the same as before

Assuming I've got a CPE, can I read its SAL log on any CPU ?
Can I clear this SAL log on a different CPU ?

If a CMC's SAL log includes some Platform ... Error Info
structures and another CPU can pinch the platform related
error information (and it can clear it too), how can the CPU
causing the error know what has happened ?

Assuming I've got a CMC / CPE, I read its log but I do not clear it.
Assuming I've got another CMC / CPE and I read the log: are the
new / old errors merged ?


Zoltan Menyhart
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Mon Oct 20 10:39:47 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:19 EST