mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
c716341c13
I realised that the Dell OptiPlex 3050 Micro has NVRAM available. Use that backend, and hardcode power_on_after_fail to Disable, which is already done in cmos.default. The Lenovo ThinkPad T480 currently has no option table in coreboot, besides the CBFS one. For this, the CBFS option table has been enabled, and the build system has been modified to insert a relevant config for power_on_after_fail. Nicholas Chin informs me that Kabylake generally has legacy NVRAM, so enabling it for the T480/T480s should work, but we'll need to use it in the future anyway; better to just use CBFS now. I *could* use the CBFS backend on 3050micro as well. Signed-off-by: Leah Rowe <leah@libreboot.org>
62 lines
1.8 KiB
Diff
62 lines
1.8 KiB
Diff
From 7194444fbddcf6567d0c82f0986e5deeacaea680 Mon Sep 17 00:00:00 2001
|
|
From: Leah Rowe <leah@libreboot.org>
|
|
Date: Mon, 6 Jan 2025 01:36:23 +0000
|
|
Subject: [PATCH 31/40] src/intel/skylake: Disable stack overflow debug options
|
|
|
|
The option was appearing in T480/3050micro configs of lbmk,
|
|
after updating on the coreboot/next uprev for 20241206 rev8:
|
|
|
|
CONFIG_DEBUG_STACK_OVERFLOW_BREAKPOINTS=y
|
|
|
|
I did some digging. See coreboot commit:
|
|
|
|
commit 51cc2bacb6b07279b97e9934d079060475481fb6
|
|
Author: Subrata Banik <subratabanik@google.com>
|
|
Date: Fri Dec 13 13:07:28 2024 +0530
|
|
|
|
soc/intel/pantherlake: Disable stack overflow debug options
|
|
|
|
Well now:
|
|
|
|
I'm disabling this behaviour on Skylake, for the same
|
|
behaviour, because I want as few behaviour changes in general,
|
|
as possible, for the rev8 release.
|
|
|
|
According to Subrata's patch, which was for Pantherlake,
|
|
without this change, stack corruption can occur on verstage
|
|
and romstage early on. Please look at that coreboot patch,
|
|
referenced above, for clarity.
|
|
|
|
I see no harm in disabling this option for Skylake, since
|
|
the behaviour that it otherwise enables was not present
|
|
before.
|
|
|
|
Signed-off-by: Leah Rowe <leah@libreboot.org>
|
|
---
|
|
src/soc/intel/skylake/Kconfig | 9 +++++++++
|
|
1 file changed, 9 insertions(+)
|
|
|
|
diff --git a/src/soc/intel/skylake/Kconfig b/src/soc/intel/skylake/Kconfig
|
|
index 9191ed0ff8..493a2d835a 100644
|
|
--- a/src/soc/intel/skylake/Kconfig
|
|
+++ b/src/soc/intel/skylake/Kconfig
|
|
@@ -129,6 +129,15 @@ config DCACHE_RAM_SIZE
|
|
The size of the cache-as-ram region required during bootblock
|
|
and/or romstage.
|
|
|
|
+# Override DEBUG Kconfig to avoid false alarm about stack overflow.
|
|
+config DEBUG_STACK_OVERFLOW_BREAKPOINTS
|
|
+ bool
|
|
+ default n
|
|
+
|
|
+config DEBUG_STACK_OVERFLOW_BREAKPOINTS_IN_ALL_STAGES
|
|
+ bool
|
|
+ default n
|
|
+
|
|
config DCACHE_BSP_STACK_SIZE
|
|
hex
|
|
default 0x20400 if FSP_USES_CB_STACK
|
|
--
|
|
2.47.3
|
|
|