Johnny Lin has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45326 )
Change subject: mb/ocp/deltalake: Select CONSOLE_VPD_OVERRIDE_LOGLEVEL
......................................................................
mb/ocp/deltalake: Select CONSOLE_VPD_OVERRIDE_LOGLEVEL
And set CONSOLE_VPD_DEFAULT_LOGLEVEL to 4 if the VPD
variable is not found.
Change-Id: I36d4b01b6fb6acc726749641df089cb3f9a4dc3e
Signed-off-by: Johnny Lin <johnny_lin(a)wiwynn.com>
---
M src/mainboard/ocp/deltalake/Kconfig
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/26/45326/1
diff --git a/src/mainboard/ocp/deltalake/Kconfig b/src/mainboard/ocp/deltalake/Kconfig
index b229c94..9fab7de 100644
--- a/src/mainboard/ocp/deltalake/Kconfig
+++ b/src/mainboard/ocp/deltalake/Kconfig
@@ -3,6 +3,7 @@
config BOARD_SPECIFIC_OPTIONS
def_bool y
select BOARD_ROMSIZE_KB_65536
+ select CONSOLE_VPD_OVERRIDE_LOGLEVEL
select FSP_CAR
select HAVE_ACPI_TABLES
select MAINBOARD_USES_FSP2_0
@@ -51,4 +52,8 @@
bool
default y
+config CONSOLE_VPD_DEFAULT_LOGLEVEL
+ int
+ default 4
+
endif # BOARD_OCP_DELTALAKE
--
To view, visit https://review.coreboot.org/c/coreboot/+/45326
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I36d4b01b6fb6acc726749641df089cb3f9a4dc3e
Gerrit-Change-Number: 45326
Gerrit-PatchSet: 1
Gerrit-Owner: Johnny Lin <Johnny_Lin(a)wiwynn.com>
Gerrit-MessageType: newchange
Hello Martin Roth, Marc Jones, Johnny Lin, Angel Pons, Kyösti Mälkki,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/45765
to review the following change.
Change subject: console/init: Drop CONSOLE_LEVEL_CONST
......................................................................
console/init: Drop CONSOLE_LEVEL_CONST
We limited the configurability of the debug level to stages that have
a `.data` section. This is not really a requirement, because a `.bss`
section should suffice and we always have that now.
Making the debug level always configurable, adds an early call to
get_option(). But that shouldn't hurt: The value is cached locally.
Change-Id: I11484fc32dcbba8d31772bd0b82785f17b2fba11
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
---
M src/console/init.c
1 file changed, 2 insertions(+), 18 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/65/45765/1
diff --git a/src/console/init.c b/src/console/init.c
index 1dba9ad..9776e2a 100644
--- a/src/console/init.c
+++ b/src/console/init.c
@@ -8,40 +8,24 @@
#include <option.h>
#include <version.h>
-/* Mutable console log level only allowed when RAM comes online. */
-#define CONSOLE_LEVEL_CONST !ENV_STAGE_HAS_DATA_SECTION
-
static int console_inited;
-static int console_loglevel = CONFIG_DEFAULT_CONSOLE_LOGLEVEL;
+static int console_loglevel;
static inline int get_log_level(void)
{
if (console_inited == 0)
return -1;
- if (CONSOLE_LEVEL_CONST)
- return get_console_loglevel();
return console_loglevel;
}
-static inline void set_log_level(int new_level)
-{
- if (CONSOLE_LEVEL_CONST)
- return;
-
- console_loglevel = new_level;
-}
-
static void init_log_level(void)
{
int debug_level = get_console_loglevel();
- if (CONSOLE_LEVEL_CONST)
- return;
-
get_option(&debug_level, "debug_level");
- set_log_level(debug_level);
+ console_loglevel = debug_level;
}
int console_log_level(int msg_level)
--
To view, visit https://review.coreboot.org/c/coreboot/+/45765
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I11484fc32dcbba8d31772bd0b82785f17b2fba11
Gerrit-Change-Number: 45765
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Johnny Lin <Johnny_Lin(a)wiwynn.com>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Marc Jones <marc.jones(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-MessageType: newchange
Marc Jones has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45836 )
Change subject: soc/intel/xeon_sp/acpi: Add pch.asl
......................................................................
soc/intel/xeon_sp/acpi: Add pch.asl
Add ASL for the PCH. Initially, this only contains
soc/intel/common/block/acpi/acpi/lpc.asl. Additional PCH ASL
may be added in the future.
Change-Id: I70cb790355430f63f25e0dbc9fccc22462fe3572
Signed-off-by: Marc Jones <marcjones(a)sysproconsulting.com>
---
A src/soc/intel/xeon_sp/acpi/pch.asl
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/36/45836/1
diff --git a/src/soc/intel/xeon_sp/acpi/pch.asl b/src/soc/intel/xeon_sp/acpi/pch.asl
new file mode 100644
index 0000000..98a5fdd
--- /dev/null
+++ b/src/soc/intel/xeon_sp/acpi/pch.asl
@@ -0,0 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+/* This file should be included in the proper platform ACPI \_SB PCI scope */
+
+/* LPC 0:1f.0 */
+#include <soc/intel/common/block/acpi/acpi/lpc.asl>
--
To view, visit https://review.coreboot.org/c/coreboot/+/45836
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I70cb790355430f63f25e0dbc9fccc22462fe3572
Gerrit-Change-Number: 45836
Gerrit-PatchSet: 1
Gerrit-Owner: Marc Jones <marc(a)marcjonesconsulting.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-MessageType: newchange