diff options
author | Joel Stanley <joel@jms.id.au> | 2017-01-13 06:53:49 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-01-25 05:33:55 +0300 |
commit | 14a41d6b7572026cf8fc88ee72e81b6b40db2ec0 (patch) | |
tree | 3774df6ebd4a306fa11a35a6e3e8c9c850a650f1 /arch/powerpc/platforms/powernv/opal-msglog.c | |
parent | 8ad43336b5c1ad9ac945148cb5e26a1200ccd45c (diff) | |
download | linux-14a41d6b7572026cf8fc88ee72e81b6b40db2ec0.tar.xz |
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>
Diffstat (limited to 'arch/powerpc/platforms/powernv/opal-msglog.c')
-rw-r--r-- | arch/powerpc/platforms/powernv/opal-msglog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powernv/opal-msglog.c b/arch/powerpc/platforms/powernv/opal-msglog.c index 39d6ff9e5630..7a9cde0cfbd1 100644 --- a/arch/powerpc/platforms/powernv/opal-msglog.c +++ b/arch/powerpc/platforms/powernv/opal-msglog.c @@ -123,6 +123,10 @@ void __init opal_msglog_init(void) return; } + /* Report maximum size */ + opal_msglog_attr.size = be32_to_cpu(mc->ibuf_size) + + be32_to_cpu(mc->obuf_size); + opal_memcons = mc; } |