Commit 14a41d6b authored by Joel Stanley's avatar Joel Stanley Committed by Michael Ellerman

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: default avatarJoel Stanley <joel@jms.id.au>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 8ad43336
...@@ -123,6 +123,10 @@ void __init opal_msglog_init(void) ...@@ -123,6 +123,10 @@ void __init opal_msglog_init(void)
return; return;
} }
/* Report maximum size */
opal_msglog_attr.size = be32_to_cpu(mc->ibuf_size) +
be32_to_cpu(mc->obuf_size);
opal_memcons = mc; opal_memcons = mc;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment