]> asedeno.scripts.mit.edu Git - linux.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)
commit14a41d6b7572026cf8fc88ee72e81b6b40db2ec0
tree3774df6ebd4a306fa11a35a6e3e8c9c850a650f1
parent8ad43336b5c1ad9ac945148cb5e26a1200ccd45c
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