]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit896cf5fd683033c4be14a5aa7409a1cd3d538208
treed775a893e4bc85b26b8df0f43570ccfa03c753e1
parent544995492740f7005a209a7fed650ca267e8315b
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