]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Report size of OPAL memcons log
authorJoel Stanley <joel@jms.id.au>
Fri, 13 Jan 2017 03:53:49 +0000 (14:23 +1030)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 25 Jan 2017 02:33:55 +0000 (13:33 +1100)
commit2ef914ef35fa88c889fb6b32a5d6e61024a00831
tree3774df6ebd4a306fa11a35a6e3e8c9c850a650f1
parente82c16af4b5ef4ceef5cbcb3255f196d3658db24
powerpc/powernv: Report size of OPAL memcons log

The OPAL memory console is reported to be size zero, as we do not
initialise the struct attr with any size information due to the size
being variable. This leads users to think that the console is empty.

Instead report the maximum size.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-msglog.c