]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
firmware: Expose DMI type 15 System Event Log
authorMike Waychison <mikew@google.com>
Wed, 23 Feb 2011 01:53:31 +0000 (17:53 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Feb 2011 20:02:34 +0000 (12:02 -0800)
commita3857a5c9893aa69d44be6e881927b0950b1d931
tree4ffadf0c16167fecfc66b3a096a19cab48e27c0d
parent925a1da7477fc4ba5849c6f0243934fa5072493c
firmware: Expose DMI type 15 System Event Log

The System Event Log described by DMI entry type 15 may be backed by
either memory or may be indirectly accessed via an IO index/data
register pair.

In order to get read access to this log, expose it in the
"system_event_log" sub-directory of type 15 DMI entries, ie:
/sys/firmware/dmi/entries/15-0/system_event_log/raw_event_log.

This commit handles both IO accessed and memory access system event
logs.  OEM specific access and GPNV support is explicitly not handled
and we error out in the logs when we do not recognize the access method.

Signed-off-by: Mike Waychison <mikew@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/firmware/dmi-sysfs.c