SeaBIOS Kconfig: Update logging

The SeaBIOS and coreboot log levels don't really align, so setting the
SeaBIOS log level to the same as coreboot's isn't really what we want.

- Update default log level to use the default SeaBIOS log level.
- Update the current help text to match the new defaults.
- Add help text for what is displayed at various levels.
- Get rid of separate type & prompt lines.
- Add comments for default seabios level & logging disabled

Change-Id: I5a8b75bd44748cb94a83a77ac3a379c8a9587e7b
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/18210
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Martin Roth 2017-01-23 14:56:55 -07:00
parent 20aa043b44
commit 8556db35e0
1 changed files with 26 additions and 7 deletions

View File

@ -95,13 +95,32 @@ config PAYLOAD_VGABIOS_FILE
default "payloads/external/SeaBIOS/seabios/out/vgabios.bin"
config SEABIOS_DEBUG_LEVEL
prompt "SeaBIOS debug level (verbosity)"
default DEFAULT_CONSOLE_LOGLEVEL
int
int "SeaBIOS debug level (verbosity)"
default -1
help
The higher the number, the more verbose SeaBIOS will be. The range is
not well defined but the typical values range from 0 to about 9 inclusive
where 0 disables all output. Set this value to -1 to use SeaBIOS' default.
The higher the number, the more verbose SeaBIOS will be. See the table
below for the current values corresponding to various items as of SeaBIOS
version 1.10.1. Set this value to -1 to use SeaBIOS' default.
Output at various SeaBIOS log levels:
level 0 - Logging disabled
level 1 - Basic output, interrupts 5, 18h, 19h, 40h, SMP, PNP, PMM
level 2 - AHCI, Floppy, Basic ps2, interrupts 11h, 12h, 14h, 17h
level 3 - bootsplash, initializations, SeaBIOS VGA BIOS interrupts
level 4 - bios tables, more optionrom
level 5 - Extra bootsplash, more XHCI
level 6 - ATA commands, extra optionrom
level 7 - extra ps2 commands, more OHCI & EHCI
level 8 - extra malloc info, more AHCI
level 9 - interrupts 15h, 16h, 1ah, APM, PCI, SMIs, PCIBIOS,
USB-HID commands, SDcard commands, Floppy commands
level 10 - interrupt 13h (Drives other than floppy)
level 20 - interrupt 10h (Display)
comment "Using default SeaBIOS log level"
depends on SEABIOS_DEBUG_LEVEL = -1
comment "SeaBIOS logging disabled"
depends on SEABIOS_DEBUG_LEVEL = 0
The default is to use coreboot's loglevel.
endif