firmware: google: memconsole: Make memconsole interface more flexible
authorJulius Werner <jwerner@chromium.org>
Tue, 2 May 2017 22:16:29 +0000 (15:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 May 2017 14:59:06 +0000 (16:59 +0200)
commit7918cfc46cfad784b2aafdbbc690a96af0ae78d0
treed775a893e4bc85b26b8df0f43570ccfa03c753e1
parentacec09e67dc450d09a912735855326c3f1146a37
firmware: google: memconsole: Make memconsole interface more flexible

This patch redesigns the interface between the generic memconsole driver
and its implementations to become more flexible than a flat memory
buffer with unchanging bounds. This allows memconsoles like coreboot's
to include lines that were added by runtime firmware after the driver
was initialized. Since the console log size is thus no longer static,
this means that the /sys/firmware/log file has to become unseekable.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/google/memconsole-coreboot.c
drivers/firmware/google/memconsole-x86-legacy.c
drivers/firmware/google/memconsole.c
drivers/firmware/google/memconsole.h