Martin L Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/71596 )
Change subject: src: Move POST_BOOTBLOCK_CAR to common postcodes and use it
......................................................................
src: Move POST_BOOTBLOCK_CAR to common postcodes and use it
This moves the definition for POST_BOOTBLOCK_CAR from the intel-specific
postcodes into the common postcode list, and uses it for the
cache-as-RAM init as needed.
Signed-off-by: Martin Roth <gaumless(a)gmail.com>
Change-Id: I8527334e679a23006b77a5645f919aea76dd4926
---
M src/commonlib/include/commonlib/console/post_codes.h
M src/cpu/qemu-x86/cache_as_ram_bootblock.S
M src/drivers/intel/fsp1_1/cache_as_ram.S
M src/include/cpu/intel/post_codes.h
4 files changed, 22 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/96/71596/1
diff --git a/src/commonlib/include/commonlib/console/post_codes.h b/src/commonlib/include/commonlib/console/post_codes.h
index d838815..0283b5d 100644
--- a/src/commonlib/include/commonlib/console/post_codes.h
+++ b/src/commonlib/include/commonlib/console/post_codes.h
@@ -66,6 +66,12 @@
#define POST_ENTRY_C_START 0x13
/**
+ * \brief Entry into bootblock cache-as-RAM code
+ *
+ */
+#define POST_BOOTBLOCK_CAR 0x20
+
+/**
* \brief Entry into pci_scan_bus
*
* Entered pci_scan_bus()
diff --git a/src/cpu/qemu-x86/cache_as_ram_bootblock.S b/src/cpu/qemu-x86/cache_as_ram_bootblock.S
index f828d6f..617da53 100644
--- a/src/cpu/qemu-x86/cache_as_ram_bootblock.S
+++ b/src/cpu/qemu-x86/cache_as_ram_bootblock.S
@@ -15,7 +15,7 @@
bootblock_pre_c_entry:
cache_as_ram:
- post_code(0x20)
+ post_code(POST_BOOTBLOCK_CAR)
/*
* Nothing to do here on qemu, RAM works just fine without any
* initialization.
@@ -103,7 +103,6 @@
#endif
before_c_entry:
- post_code(0x29)
call bootblock_c_entry_bist
/* Never returns */
.Lhlt:
diff --git a/src/drivers/intel/fsp1_1/cache_as_ram.S b/src/drivers/intel/fsp1_1/cache_as_ram.S
index 6a19b87..571feb4 100644
--- a/src/drivers/intel/fsp1_1/cache_as_ram.S
+++ b/src/drivers/intel/fsp1_1/cache_as_ram.S
@@ -34,7 +34,7 @@
movd %eax, %mm1
cache_as_ram:
- post_code(0x20)
+ post_code(POST_BOOTBLOCK_CAR)
/* Cache the rom and update the microcode */
cache_rom:
@@ -181,8 +181,6 @@
pushl %eax /* tsc[31:0] */
before_romstage:
- post_code(0x2a)
-
/* Call bootblock_c_entry(uint64_t base_timestamp) */
call bootblock_c_entry
diff --git a/src/include/cpu/intel/post_codes.h b/src/include/cpu/intel/post_codes.h
index 3db0aeb..6c1ca79 100644
--- a/src/include/cpu/intel/post_codes.h
+++ b/src/include/cpu/intel/post_codes.h
@@ -3,7 +3,6 @@
#ifndef CPU_INTEL_CAR_POST_CODES_H
#define CPU_INTEL_CAR_POST_CODES_H
-#define POST_BOOTBLOCK_CAR 0x20
#define POST_SOC_SET_DEF_MTRR_TYPE 0x21
#define POST_SOC_CLEAR_FIXED_MTRRS 0x22 // Intentional Duplicate
#define POST_SOC_DETERMINE_CPU_ADDR_BITS 0x22
--
To view, visit https://review.coreboot.org/c/coreboot/+/71596
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I8527334e679a23006b77a5645f919aea76dd4926
Gerrit-Change-Number: 71596
Gerrit-PatchSet: 1
Gerrit-Owner: Martin L Roth <gaumless(a)gmail.com>
Gerrit-MessageType: newchange
Attention is currently required from: Jason Glenesk, Martin L Roth, Angel Pons.
Felix Singer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/71581 )
Change subject: Docs/releases: Update 4.17 & 4.18 notes to remove RESOURCE_ALLOCATOR_V3
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/71581
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I35607a86242c37e1578874b3a79ff0387a55b146
Gerrit-Change-Number: 71581
Gerrit-PatchSet: 1
Gerrit-Owner: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Attention: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Comment-Date: Sun, 01 Jan 2023 01:26:20 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Martin L Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/71595 )
Change subject: inc/cpu/x86: Make sure the post_code macro is only used in asm
......................................................................
inc/cpu/x86: Make sure the post_code macro is only used in asm
Because this post_code macro could override the post_code function,
make sure it's only used in assembly files.
Signed-off-by: Martin Roth <gaumless(a)gmail.com>
Change-Id: If106ab9a3f8d635a013bfe793405914b20e2123c
---
M src/include/cpu/x86/post_code.h
1 file changed, 17 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/71595/1
diff --git a/src/include/cpu/x86/post_code.h b/src/include/cpu/x86/post_code.h
index db8f90d..c9680f7 100644
--- a/src/include/cpu/x86/post_code.h
+++ b/src/include/cpu/x86/post_code.h
@@ -5,6 +5,8 @@
#include <commonlib/console/post_codes.h>
+#if __ASSEMBLY__
+
#if CONFIG(POST_IO) && !(ENV_BOOTBLOCK && CONFIG(NO_EARLY_BOOTBLOCK_POSTCODES))
#define post_code(value) \
movb $value, %al; \
@@ -14,4 +16,6 @@
#define post_code(value)
#endif
+#endif /* __ASSEMBLY__ */
+
#endif /* __X86_POST_CODE_H__ */
--
To view, visit https://review.coreboot.org/c/coreboot/+/71595
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If106ab9a3f8d635a013bfe793405914b20e2123c
Gerrit-Change-Number: 71595
Gerrit-PatchSet: 1
Gerrit-Owner: Martin L Roth <gaumless(a)gmail.com>
Gerrit-MessageType: newchange
Attention is currently required from: David Wu, Tarun Tuli, Ren Kuo, Reka Norman, Eric Lai.
Martin L Roth has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/71170 )
Change subject: mb/google/nissa/var/craask: Modify GPIOs for NVMe
......................................................................
Patch Set 7: Code-Review-1
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/71170/comment/2ca79fd4_9203365e
PS7, Line 9: EVT build.
Please don't mention project phases in public commits.
--
To view, visit https://review.coreboot.org/c/coreboot/+/71170
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If45c1a87144d5370b1ca2525295fb7947639362f
Gerrit-Change-Number: 71170
Gerrit-PatchSet: 7
Gerrit-Owner: Ren Kuo <ren.kuo(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: David Wu <david_wu(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Kangheui Won <khwon(a)chromium.org>
Gerrit-Reviewer: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: Reka Norman <rekanorman(a)chromium.org>
Gerrit-Reviewer: Ren Kuo <ren.kuo(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Reviewer: Tyler Wang <tyler.wang(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: David Wu <david_wu(a)quanta.corp-partner.google.com>
Gerrit-Attention: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Attention: Ren Kuo <ren.kuo(a)quanta.corp-partner.google.com>
Gerrit-Attention: Reka Norman <rekanorman(a)chromium.org>
Gerrit-Attention: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-Comment-Date: Sun, 01 Jan 2023 00:39:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Martin L Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/71592 )
Change subject: vc/google: Add and use POST_CODE_CLEAR definition
......................................................................
vc/google: Add and use POST_CODE_CLEAR definition
The CR50 code clears the post code value. Add this as a #define.
Signed-off-by: Martin Roth <gaumless(a)gmail.com>
Change-Id: If3b73a3159ac8ac9ab08c6ff705b0ca289ab453c
---
M src/commonlib/include/commonlib/console/post_codes.h
M src/vendorcode/google/chromeos/cr50_enable_update.c
2 files changed, 20 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/92/71592/1
diff --git a/src/commonlib/include/commonlib/console/post_codes.h b/src/commonlib/include/commonlib/console/post_codes.h
index d838815..ef296bd 100644
--- a/src/commonlib/include/commonlib/console/post_codes.h
+++ b/src/commonlib/include/commonlib/console/post_codes.h
@@ -28,6 +28,12 @@
#define POST_CODES_H
/**
+ * \brief Not an actual post-code - used to clear port80h
+ *
+ */
+#define POST_CODE_CLEAR 0x00
+
+/**
* \brief Entry into 'crt0.s'. reset code jumps to here
*
* First instruction that gets executed after the reset vector jumps.
diff --git a/src/vendorcode/google/chromeos/cr50_enable_update.c b/src/vendorcode/google/chromeos/cr50_enable_update.c
index 9ac33a5..6beea91 100644
--- a/src/vendorcode/google/chromeos/cr50_enable_update.c
+++ b/src/vendorcode/google/chromeos/cr50_enable_update.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <bootstate.h>
+#include <commonlib/console/post_codes.h>
#include <console/console.h>
#include <ec/google/chromeec/ec.h>
#include <elog.h>
@@ -133,7 +134,7 @@
mainboard_prepare_cr50_reset();
/* clear current post code avoid chatty eventlog on subsequent boot*/
- post_code(0);
+ post_code(POST_CODE_CLEAR);
/*
* Older Cr50 firmware doesn't support the timeout parameter for the
--
To view, visit https://review.coreboot.org/c/coreboot/+/71592
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If3b73a3159ac8ac9ab08c6ff705b0ca289ab453c
Gerrit-Change-Number: 71592
Gerrit-PatchSet: 1
Gerrit-Owner: Martin L Roth <gaumless(a)gmail.com>
Gerrit-MessageType: newchange