Marshall Dawson has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/37221 )
Change subject: [NOT FOR MERGE] - For Richard - hack the Makefile for testing
......................................................................
[NOT FOR MERGE] - For Richard - hack the Makefile for testing
This will let you test WIP amd_blobs (and blobs) that you might
want, without worrying the submodule will be updated when you
use USE_AMD_BLOBS.
Change-Id: Iaa6b1a3ed1fbeababb38aa5cdafd90e14fcac50f
Signed-off-by: Marshall Dawson <marshalldawson3rd(a)gmail.com>
---
M Makefile.inc
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/21/37221/1
diff --git a/Makefile.inc b/Makefile.inc
index dc5272e..b7170e2 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -199,14 +199,14 @@
ifeq ($(CONFIG_USE_BLOBS),y)
# These items are necessary because each has update=none in .gitmodules. They are ignored
# until expressly requested and enabled with --checkout
-forgetthis:=$(if $(GIT),$(shell git submodule update --init --checkout 3rdparty/blobs))
+# forgetthis:=$(if $(GIT),$(shell git submodule update --init --checkout 3rdparty/blobs))
forgetthis:=$(if $(GIT),$(shell git submodule update --init --checkout 3rdparty/intel-microcode))
ifeq ($(CONFIG_PLATFORM_USES_FSP1_0)$(CONFIG_PLATFORM_USES_FSP1_1)$(CONFIG_PLATFORM_USES_FSP2_0),y)
forgetthis:=$(if $(GIT),$(shell git submodule update --init --checkout 3rdparty/fsp))
endif
-ifeq ($(CONFIG_USE_AMD_BLOBS),y)
-forgetthis:=$(if $(GIT),$(shell git submodule update --init --checkout 3rdparty/amd_blobs))
-endif
+# ifeq ($(CONFIG_USE_AMD_BLOBS),y)
+# forgetthis:=$(if $(GIT),$(shell git submodule update --init --checkout 3rdparty/amd_blobs))
+# endif
endif
UPDATED_SUBMODULES:=1
COREBOOT_EXPORTS += UPDATED_SUBMODULES
--
To view, visit https://review.coreboot.org/c/coreboot/+/37221
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iaa6b1a3ed1fbeababb38aa5cdafd90e14fcac50f
Gerrit-Change-Number: 37221
Gerrit-PatchSet: 1
Gerrit-Owner: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange
Hello Hung-Te Lin,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/37465
to review the following change.
Change subject: arm64: Print a char to UART early in exception handler
......................................................................
arm64: Print a char to UART early in exception handler
Over time our printk() seems to acquire more and more features... which
is nice, but it also makes it a little less robust when something goes
wrong. If the wrong global is trampled by some buffer overflow, it
suddenly doesn't print anymore. It would be nice to have at least some
way to tell that we triggered a real exception in that case.
With this patch, arm64 exceptions will print a '!' straight to the UART
before trying any of the more fancy printk() stuff. It's not much but it
should tell the difference between an exception and a hang and hopefully
help someone dig in the right direction sooner. This violates loglevels
(which is part of the point), but presumably when you have a fatal
exception you shouldn't care about that anymore.
Change-Id: I3b08ab86beaee55263786011caa5588d93bbc720
Signed-off-by: Julius Werner <jwerner(a)chromium.org>
---
M src/arch/arm64/armv8/exception.c
1 file changed, 8 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/65/37465/1
diff --git a/src/arch/arm64/armv8/exception.c b/src/arch/arm64/armv8/exception.c
index ec8fc05..c11ce57 100644
--- a/src/arch/arm64/armv8/exception.c
+++ b/src/arch/arm64/armv8/exception.c
@@ -34,6 +34,7 @@
#include <arch/exception.h>
#include <arch/transition.h>
#include <console/console.h>
+#include <console/uart.h>
#include <arch/lib_helpers.h>
uint8_t exception_stack[1*KiB] __attribute__((aligned(16)));
@@ -131,8 +132,13 @@
static void print_exception_info(struct exc_state *state, uint64_t idx)
{
- if (idx < NUM_EXC_VIDS)
- printk(BIOS_DEBUG, "exception %s\n", exception_names[idx]);
+ /* Poor man's sign of life in case printk() is shot. */
+ __uart_tx_byte('\r');
+ __uart_tx_byte('\n');
+ __uart_tx_byte('!');
+
+ printk(BIOS_DEBUG, "\nexception %s\n",
+ idx < NUM_EXC_VIDS ? exception_names[idx] : "_unknown");
print_regs(state);
/* Few words below SP in case we need state from a returned function. */
--
To view, visit https://review.coreboot.org/c/coreboot/+/37465
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I3b08ab86beaee55263786011caa5588d93bbc720
Gerrit-Change-Number: 37465
Gerrit-PatchSet: 1
Gerrit-Owner: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-MessageType: newchange
Hello Hung-Te Lin,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/37464
to review the following change.
Change subject: arm64: Bump exception stack size to 2KB
......................................................................
arm64: Bump exception stack size to 2KB
To avoid trampling over interesting exception artifacts on the real
stack, our arm64 systems switch to a separate exception stack when
entering an exception handler. We don't want that to use up too much
SRAM so we just set it to 512 bytes. I mean it just prints a bunch of
registers, how much stack could it need, right?
Quite a bit it turns out. The whole vtxprintf() call stack goes pretty
deep, and aarch64 generally seems to be very generous with stack space.
Just the varargs handling seems to require 128 bytes for some reason,
and the other stuff adds up too. In the end the current implementation
takes 1008 bytes, so bump the exception stack size to 2K to make sure it
fits.
Change-Id: I910be4c5f6b29fae35eb53929c733a1bd4585377
Signed-off-by: Julius Werner <jwerner(a)chromium.org>
---
M src/arch/arm64/armv8/exception.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/64/37464/1
diff --git a/src/arch/arm64/armv8/exception.c b/src/arch/arm64/armv8/exception.c
index 579e104..ec8fc05 100644
--- a/src/arch/arm64/armv8/exception.c
+++ b/src/arch/arm64/armv8/exception.c
@@ -36,7 +36,7 @@
#include <console/console.h>
#include <arch/lib_helpers.h>
-uint8_t exception_stack[0x200] __attribute__((aligned(16)));
+uint8_t exception_stack[1*KiB] __attribute__((aligned(16)));
static const char *exception_names[NUM_EXC_VIDS] = {
[EXC_VID_CUR_SP_EL0_SYNC] = "_sync_sp_el0",
--
To view, visit https://review.coreboot.org/c/coreboot/+/37464
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I910be4c5f6b29fae35eb53929c733a1bd4585377
Gerrit-Change-Number: 37464
Gerrit-PatchSet: 1
Gerrit-Owner: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-MessageType: newchange