powerpc/powernv: Add OPAL message log interface
authorJoel Stanley <joel@jms.id.au>
Tue, 1 Apr 2014 03:58:19 +0000 (14:28 +1030)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 9 Apr 2014 02:53:19 +0000 (12:53 +1000)
commitbfc36894a48b996eba7e02d8e43093a289c1fb91
treea2429363b192b759a0d4d27c8403f062a6fbbaf3
parent6e556b471036b751aaa1a1b5a189eff76b1a2d0b
powerpc/powernv: Add OPAL message log interface

OPAL provides an in-memory circular buffer containing a message log
populated with various runtime messages produced by the firmware.

Provide a sysfs interface /sys/firmware/opal/msglog for userspace to
view the messages.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/Makefile
arch/powerpc/platforms/powernv/opal-msglog.c [new file with mode: 0644]
arch/powerpc/platforms/powernv/opal.c