]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: new function to access OPAL msglog
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>
Tue, 9 Feb 2016 07:17:48 +0000 (18:17 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 9 Feb 2016 09:27:04 +0000 (20:27 +1100)
commitc950c63f87f421000896bf83329759396e57775e
treeecf6a730de9265a94f7760440953af1f1a00d8e8
parentdb3a97c808fd61f130a6b8ccf213e4929de0d227
powerpc/powernv: new function to access OPAL msglog

Currently, the OPAL msglog/console buffer is exposed as a sysfs file, with
the sysfs read handler responsible for retrieving the log from the OPAL
buffer. We'd like to be able to use it in xmon as well.

Refactor the OPAL msglog code to create a new function, opal_msglog_copy(),
that copies to an arbitrary buffer. Separate the initialisation code into
generic memcons init and sysfs file creation.

Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal-msglog.c
arch/powerpc/platforms/powernv/opal.c