Attention is currently required from: Nico Huber, Subrata Banik, Tim Wawrzynczak, EricR Lai.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/60470 )
Change subject: console: Create helper function to get max console log level
......................................................................
Patch Set 3:
(1 comment)
File src/console/init.c:
https://review.coreboot.org/c/coreboot/+/60470/comment/8e6a7e4c_2d7fbe03
PS2, Line 55: return get_log_level();
> Initially I had the same understanding as well but later I realised that `get_log_level()` will return always Kconfig value irrespective of the console level. For example: irrespective of console type (CONSOLE_LOG_FAST), it will alway return '8' (BIOS_SPEW).
The idea behind `CONSOLE_LOG_FAST` is to log up to BIOS_DEBUG in CBMEM, even if the chosen log level is lower. This is because CBMEM is fast (it's just writing to CAR/RAM) compared to other consoles, e.g. serial, usbdebug, flashconsole...
Note that `get_max_console_log_level(CONSOLE_LOG_FAST)` can only return `BIOS_DEBUG` or `-1` depending on whether `CONFIG(CBMEM)` is true or false. I'm not sure if this is very useful.
Note that `get_log_level()` can also return the value from the `debug_level` CMOS option, or `get_console_loglevel()` if `CONSOLE_OVERRIDE_LOGLEVEL` is selected.
> Will also let Nico to share his thoughts as he suggested to create console level to msg level function at the first place.
Sure!
--
To view, visit https://review.coreboot.org/c/coreboot/+/60470
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I56349f22c71c9db757b2be8eeb2dbfe959f80397
Gerrit-Change-Number: 60470
Gerrit-PatchSet: 3
Gerrit-Owner: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: EricR Lai <ericr_lai(a)compal.corp-partner.google.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Attention: EricR Lai <ericr_lai(a)compal.corp-partner.google.com>
Gerrit-Comment-Date: Sat, 01 Jan 2022 12:32:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Subrata Banik <subratabanik(a)google.com>
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: comment
Attention is currently required from: Felix Singer, Elyes HAOUAS, Subrata Banik, Patrick Rudolph.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/60622 )
Change subject: soc/intel/common: Remove unnecessary new lines throughout the crashlog.c
......................................................................
Patch Set 1: Code-Review+2
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/60622/comment/d9326ae0_d4330927
PS1, Line 7: soc/intel/common: Remove unnecessary new lines throughout the crashlog.c
How about:
soc/intel/common/blk/crashlog: Drop some new lines
Remove unnecessary new lines in crashlog code.
Also, happy new year! 😊
--
To view, visit https://review.coreboot.org/c/coreboot/+/60622
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0920f563d6fdf9414eab86796cedcac83173dba3
Gerrit-Change-Number: 60622
Gerrit-PatchSet: 1
Gerrit-Owner: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Elyes HAOUAS
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Attention: Elyes HAOUAS
Gerrit-Attention: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Sat, 01 Jan 2022 11:10:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment