diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-03-03 10:25:42 +1100 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-03-07 16:19:10 +1100 |
commit | c7e64b9ce04aa2e3fad7396d92b5cb92056d16ac (patch) | |
tree | f7d827aa6f19d9573f699e170ada0c0a578be699 /arch/powerpc/boot/dts/fsl/p3041si-post.dtsi | |
parent | 774fea1a38c6a5a8ccc10969db84da24565f276f (diff) | |
download | blackbird-op-linux-c7e64b9ce04aa2e3fad7396d92b5cb92056d16ac.tar.gz blackbird-op-linux-c7e64b9ce04aa2e3fad7396d92b5cb92056d16ac.zip |
powerpc/powernv Platform dump interface
This enables support for userspace to fetch and initiate FSP and
Platform dumps from the service processor (via firmware) through sysfs.
Based on original patch from Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Flow:
- We register for OPAL notification events.
- OPAL sends new dump available notification.
- We make information on dump available via sysfs
- Userspace requests dump contents
- We retrieve the dump via OPAL interface
- User copies the dump data
- userspace sends ack for dump
- We send ACK to OPAL.
sysfs files:
- We add the /sys/firmware/opal/dump directory
- echoing 1 (well, anything, but in future we may support
different dump types) to /sys/firmware/opal/dump/initiate_dump
will initiate a dump.
- Each dump that we've been notified of gets a directory
in /sys/firmware/opal/dump/ with a name of the dump type and ID (in hex,
as this is what's used elsewhere to identify the dump).
- Each dump has files: id, type, dump and acknowledge
dump is binary and is the dump itself.
echoing 'ack' to acknowledge (currently any string will do) will
acknowledge the dump and it will soon after disappear from sysfs.
OPAL APIs:
- opal_dump_init()
- opal_dump_info()
- opal_dump_read()
- opal_dump_ack()
- opal_dump_resend_notification()
Currently we are only ever notified for one dump at a time (until
the user explicitly acks the current dump, then we get a notification
of the next dump), but this kernel code should "just work" when OPAL
starts notifying us of all the dumps present.
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/boot/dts/fsl/p3041si-post.dtsi')
0 files changed, 0 insertions, 0 deletions