linux/drivers/acpi/apei
Huang Ying 885b976fad ACPI, APEI, Add ERST record ID cache
APEI ERST firmware interface and implementation has no multiple users
in mind.  For example, if there is four records in storage with ID: 1,
2, 3 and 4, if two ERST readers enumerate the records via
GET_NEXT_RECORD_ID as follow,

reader 1		reader 2
1
			2
3
			4
-1
			-1

where -1 signals there is no more record ID.

Reader 1 has no chance to check record 2 and 4, while reader 2 has no
chance to check record 1 and 3.  And any other GET_NEXT_RECORD_ID will
return -1, that is, other readers will has no chance to check any
record even they are not cleared by anyone.

This makes raw GET_NEXT_RECORD_ID not suitable for used by multiple
users.

To solve the issue, an in-memory ERST record ID cache is designed and
implemented.  When enumerating record ID, the ID returned by
GET_NEXT_RECORD_ID is added into cache in addition to be returned to
caller.  So other readers can check the cache to get all record ID
available.

Signed-off-by: Huang Ying <ying.huang@intel.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2011-03-21 22:59:06 -04:00
..
apei-base.c ACPI, APEI, Fix error path for memory allocation 2010-09-29 14:02:35 -04:00
apei-internal.h ACPI, APEI, Add APEI generic error status printing support 2010-12-13 23:42:12 -05:00
cper.c ACPI, APEI, Add APEI generic error status printing support 2010-12-13 23:42:12 -05:00
einj.c Fix spelling mistakes in comments 2011-01-03 13:51:58 +01:00
erst-dbg.c ACPI, APEI, Add ERST record ID cache 2011-03-21 22:59:06 -04:00
erst.c ACPI, APEI, Add ERST record ID cache 2011-03-21 22:59:06 -04:00
ghes.c ACPI, APEI, Generic Hardware Error Source POLL/IRQ/NMI notification type support 2011-01-12 03:06:19 -05:00
hest.c ACPI: Fix boot problem related to APEI with acpi_disabled set 2011-01-16 11:56:26 -08:00
Kconfig ACPI: Fix typos 2010-09-28 21:38:19 -04:00
Makefile ACPI, APEI, ERST debug support 2010-08-14 22:47:55 -04:00