summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/powernv/opal.c
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2014-04-01 14:28:19 +1030
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-04-09 12:53:19 +1000
commitbfc36894a48b996eba7e02d8e43093a289c1fb91 (patch)
treea2429363b192b759a0d4d27c8403f062a6fbbaf3 /arch/powerpc/platforms/powernv/opal.c
parent6e556b471036b751aaa1a1b5a189eff76b1a2d0b (diff)
downloadblackbird-op-linux-bfc36894a48b996eba7e02d8e43093a289c1fb91.tar.gz
blackbird-op-linux-bfc36894a48b996eba7e02d8e43093a289c1fb91.zip
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>
Diffstat (limited to 'arch/powerpc/platforms/powernv/opal.c')
-rw-r--r--arch/powerpc/platforms/powernv/opal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/opal.c b/arch/powerpc/platforms/powernv/opal.c
index 3697772e3759..99e9c2887e21 100644
--- a/arch/powerpc/platforms/powernv/opal.c
+++ b/arch/powerpc/platforms/powernv/opal.c
@@ -46,7 +46,7 @@ struct mcheck_recoverable_range {
static struct mcheck_recoverable_range *mc_recoverable_range;
static int mc_recoverable_range_len;
-static struct device_node *opal_node;
+struct device_node *opal_node;
static DEFINE_SPINLOCK(opal_write_lock);
extern u64 opal_mc_secondary_handler[];
static unsigned int *opal_irqs;
@@ -602,6 +602,8 @@ static int __init opal_init(void)
opal_platform_dump_init();
/* Setup system parameters interface */
opal_sys_param_init();
+ /* Setup message log interface. */
+ opal_msglog_init();
}
return 0;
OpenPOWER on IntegriCloud