Attention is currently required from: Hung-Te Lin, Jarried Lin.
Hello Hung-Te Lin, Yidi Lin, Yu-Ping Wu, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/85717?usp=email
to look at the new patch set (#3).
Change subject: mb/google/rauru: Add support for getting storage id
......................................................................
mb/google/rauru: Add support for getting storage id
We add storage_id() to read the storage id from auxadc.
BUG=b:317009620
TEST=Build pass
Change-Id: I036df324cd6644ff69110c6247af29360b83225f
Signed-off-by: Jarried Lin <jarried.lin(a)mediatek.corp-partner.google.com>
---
M src/mainboard/google/rauru/Makefile.mk
A src/mainboard/google/rauru/boardid.c
M src/mainboard/google/rauru/romstage.c
A src/mainboard/google/rauru/storage.h
4 files changed, 75 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/17/85717/3
--
To view, visit https://review.coreboot.org/c/coreboot/+/85717?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I036df324cd6644ff69110c6247af29360b83225f
Gerrit-Change-Number: 85717
Gerrit-PatchSet: 3
Gerrit-Owner: Jarried Lin <jarried.lin(a)mediatek.com>
Gerrit-Reviewer: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Reviewer: Yidi Lin <yidilin(a)google.com>
Gerrit-Reviewer: Yu-Ping Wu <yupingso(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Knox Chiou <knoxchiou(a)google.com>
Gerrit-Attention: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Attention: Jarried Lin <jarried.lin(a)mediatek.com>
Attention is currently required from: Hung-Te Lin, Knox Chiou, Yidi Lin, Yu-Ping Wu.
Jarried Lin has posted comments on this change by Jarried Lin. ( https://review.coreboot.org/c/coreboot/+/85666?usp=email )
Change subject: mb/google/rauru: Implement SKU ID
......................................................................
Patch Set 10:
(2 comments)
File src/mainboard/google/rauru/boardid.c:
https://review.coreboot.org/c/coreboot/+/85666/comment/ffaa1745_392904c8?us… :
PS9, Line 65:
> If the definition starts getting that complicated, I'd suggest using `DEFINE_BITFIELD` API: […]
Done
https://review.coreboot.org/c/coreboot/+/85666/comment/fd8195b3_2503baec?us… :
PS9, Line 77: 8
> Shouldn't this be 9 if bit[11:9] is for storage id?
Done
--
To view, visit https://review.coreboot.org/c/coreboot/+/85666?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I49ba6f428f55d3aae1b84a4d5ce06bec765caece
Gerrit-Change-Number: 85666
Gerrit-PatchSet: 10
Gerrit-Owner: Jarried Lin <jarried.lin(a)mediatek.com>
Gerrit-Reviewer: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Reviewer: Yidi Lin <yidilin(a)google.com>
Gerrit-Reviewer: Yu-Ping Wu <yupingso(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Knox Chiou <knoxchiou(a)google.com>
Gerrit-Attention: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Attention: Knox Chiou <knoxchiou(a)google.com>
Gerrit-Attention: Yu-Ping Wu <yupingso(a)google.com>
Gerrit-Attention: Yidi Lin <yidilin(a)google.com>
Gerrit-Comment-Date: Sun, 22 Dec 2024 12:02:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Yu-Ping Wu <yupingso(a)google.com>
Comment-In-Reply-To: Yidi Lin <yidilin(a)google.com>
Attention is currently required from: Hung-Te Lin, Jarried Lin.
Hello Hung-Te Lin, Yidi Lin, Yu-Ping Wu, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/85717?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Verified+1 by build bot (Jenkins)
Change subject: mb/google/rauru: Add support for getting storage id
......................................................................
mb/google/rauru: Add support for getting storage id
We add storage_id() to read the storage id from auxadc.
BUG=b:317009620
TEST=Build pass
Change-Id: I036df324cd6644ff69110c6247af29360b83225f
Signed-off-by: Jarried Lin <jarried.lin(a)mediatek.corp-partner.google.com>
---
M src/mainboard/google/rauru/Makefile.mk
A src/mainboard/google/rauru/boardid.c
M src/mainboard/google/rauru/romstage.c
A src/mainboard/google/rauru/storage.h
4 files changed, 76 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/17/85717/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/85717?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I036df324cd6644ff69110c6247af29360b83225f
Gerrit-Change-Number: 85717
Gerrit-PatchSet: 2
Gerrit-Owner: Jarried Lin <jarried.lin(a)mediatek.com>
Gerrit-Reviewer: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Reviewer: Yidi Lin <yidilin(a)google.com>
Gerrit-Reviewer: Yu-Ping Wu <yupingso(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Knox Chiou <knoxchiou(a)google.com>
Gerrit-Attention: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Attention: Jarried Lin <jarried.lin(a)mediatek.com>
Attention is currently required from: Hung-Te Lin, Jarried Lin, Knox Chiou, Yidi Lin.
Hello Hung-Te Lin, Yidi Lin, Yu-Ping Wu, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/85666?usp=email
to look at the new patch set (#10).
The following approvals got outdated and were removed:
Code-Review+1 by Yidi Lin, Verified+1 by build bot (Jenkins)
Change subject: mb/google/rauru: Implement SKU ID
......................................................................
mb/google/rauru: Implement SKU ID
Retrieve the SKU ID for Rauru via CBI interface. If that failed
(or no data found), fall back to ADC channels for SKU ID.
TEST=Build pass, boot ok, log show:
SKU Code: 0x2
BUG=b:317009620
Change-Id: I49ba6f428f55d3aae1b84a4d5ce06bec765caece
Signed-off-by: Jarried Lin <jarried.lin(a)mediatek.corp-partner.google.com>
---
M src/mainboard/google/rauru/Kconfig
M src/mainboard/google/rauru/boardid.c
2 files changed, 25 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/66/85666/10
--
To view, visit https://review.coreboot.org/c/coreboot/+/85666?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I49ba6f428f55d3aae1b84a4d5ce06bec765caece
Gerrit-Change-Number: 85666
Gerrit-PatchSet: 10
Gerrit-Owner: Jarried Lin <jarried.lin(a)mediatek.com>
Gerrit-Reviewer: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Reviewer: Yidi Lin <yidilin(a)google.com>
Gerrit-Reviewer: Yu-Ping Wu <yupingso(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Knox Chiou <knoxchiou(a)google.com>
Gerrit-Attention: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Attention: Knox Chiou <knoxchiou(a)google.com>
Gerrit-Attention: Yidi Lin <yidilin(a)google.com>
Gerrit-Attention: Jarried Lin <jarried.lin(a)mediatek.com>
Attention is currently required from: Pranava Y N.
Subrata Banik has posted comments on this change by Subrata Banik. ( https://review.coreboot.org/c/coreboot/+/85687?usp=email )
Change subject: mb/google/fatcat/var/fatcat: Enable FPS
......................................................................
Patch Set 5:
This change is ready for review.
--
To view, visit https://review.coreboot.org/c/coreboot/+/85687?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Ifced5c779407b4ffcc69a7ed1297704def09b554
Gerrit-Change-Number: 85687
Gerrit-PatchSet: 5
Gerrit-Owner: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: Pranava Y N <pranavayn(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Pranava Y N <pranavayn(a)google.com>
Gerrit-Comment-Date: Sun, 22 Dec 2024 07:48:26 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Attention is currently required from: Martin L Roth.
Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/85729?usp=email )
Change subject: [test] upgrade GCC to 15-20241215 Snapshot
......................................................................
[test] upgrade GCC to 15-20241215 Snapshot
Change-Id: I644fae70488c26ba833c2332059e805e50764c2a
Signed-off-by: Elyes Haouas <ehaouas(a)noos.fr>
---
M util/crossgcc/buildgcc
D util/crossgcc/patches/gcc-14.2.0_asan_shadow_offset_callback.patch
R util/crossgcc/patches/gcc-15-20241215_gnat.patch
R util/crossgcc/patches/gcc-15-20241215_libcpp.patch
R util/crossgcc/patches/gcc-15-20241215_libgcc.patch
R util/crossgcc/patches/gcc-15-20241215_musl_poisoned_calloc.patch
R util/crossgcc/patches/gcc-15-20241215_rv32iafc.patch
D util/crossgcc/sum/gcc-14.2.0.tar.xz.cksum
A util/crossgcc/sum/gcc-15-20241215.tar.xz.cksum
9 files changed, 3 insertions(+), 91 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/29/85729/1
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 9dbd7ae..da09b07 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -38,7 +38,7 @@
GMP_VERSION=6.3.0
MPFR_VERSION=4.2.1
MPC_VERSION=1.3.1
-GCC_VERSION=14.2.0
+GCC_VERSION=15-20241215
LIBSTDCXX_VERSION="${GCC_VERSION}"
BINUTILS_VERSION=2.43.1
IASL_VERSION=20241212
@@ -74,7 +74,7 @@
GMP_BASE_URL="https://ftpmirror.gnu.org/gmp"
MPFR_BASE_URL="https://ftpmirror.gnu.org/mpfr"
MPC_BASE_URL="https://ftpmirror.gnu.org/mpc"
-GCC_BASE_URL="https://ftpmirror.gnu.org/gcc/gcc-${GCC_VERSION}"
+GCC_BASE_URL="https://gcc.gnu.org/pub/gcc/snapshots/15-20241215"
LIBSTDCXX_BASE_URL="${GCC_BASE_URL}"
BINUTILS_BASE_URL="https://ftpmirror.gnu.org/binutils"
IASL_BASE_URL="https://github.com/acpica/acpica/releases/download/R2024_12_12"
diff --git a/util/crossgcc/patches/gcc-14.2.0_asan_shadow_offset_callback.patch b/util/crossgcc/patches/gcc-14.2.0_asan_shadow_offset_callback.patch
deleted file mode 100644
index d446025..0000000
--- a/util/crossgcc/patches/gcc-14.2.0_asan_shadow_offset_callback.patch
+++ /dev/null
@@ -1,88 +0,0 @@
-From 41a82fb711f3637b4b7f57756492b628058f9d5f Mon Sep 17 00:00:00 2001
-From: Harshit Sharma <harshitsharmajs(a)gmail.com>
-Date: Fri, 10 Jul 2020 13:06:08 -0700
-Subject: [PATCH] crossgcc: Enable GCC to get asan shadow offset at runtime
-
-Unlike Linux kernel which has a static shadow region layout, we have multiple stages in
-coreboot and thus require a different shadow offset address. Unfortunately, GCC currently
-only supports adding a static shadow offset at compile time using -fasan-shadow-offset flag.
-
-For this reason, we enable GCC to determine asan shadow offset address at runtime using a
-callback function named __asan_shadow_offset(). This supersedes the need to specify this
-address at compile time. GCC then makes use of this shadow offset to protect stack buffers
-by inserting red zones around them.
-
-Some other benefits of having this GCC patch are:
-a. We can place the shadow region in a separate linker section with all its advantages like
- automatic fit insurance. This ensures if a platform doesn't have enough memory space to
- hold shadow region, the build will fail. (However, if we use a fixed shadow offset on a
- platform that actually doesn't have enough memory, it may still build without any errors.)
-b. We don't modify the memory layout compared to the current one, as we are placing the
- shadow region at the end of the space already occupied by the program.
-c. We can be much more flexible later if needed (thinking of other stages like bootblock).
-d. Since we are appending the shadow buffer to the region already occupied, we make efficient
- use of the limited memory available which is highly beneficial when using cache as ram.
-
-Further, we have made sure that if you compile you tree with ASan enabled but missed this
-patch, it will end up in the following compilation error:
-"invalid --param name 'asan-use-shadow-offset-callback'"
-So, you cannot accidentally enable the feature without having your compiler patched.
-
-[pgeorgi: Updated for gcc 11.1]
-
-Signed-off-by: Harshit Sharma <harshitsharmajs(a)gmail.com>
-Signed-off-by: Patrick Georgi <pgeorgi(a)google.com>
-
-diff --git a/gcc/asan.c b/gcc/asan.c
-index 235e21947..713bf994d 100644
---- a/gcc/asan.cc
-+++ b/gcc/asan.cc
-@@ -1389,13 +1389,28 @@ asan_emit_stack_protection (rtx base, rtx pbase, unsigned int alignb,
- TREE_ASM_WRITTEN (decl) = 1;
- TREE_ASM_WRITTEN (id) = 1;
- emit_move_insn (mem, expand_normal (build_fold_addr_expr (decl)));
-- shadow_base = expand_binop (Pmode, lshr_optab, base,
-- gen_int_shift_amount (Pmode, ASAN_SHADOW_SHIFT),
-- NULL_RTX, 1, OPTAB_DIRECT);
-- shadow_base
-- = plus_constant (Pmode, shadow_base,
-- asan_shadow_offset ()
-- + (base_align_bias >> ASAN_SHADOW_SHIFT));
-+ if (param_asan_use_shadow_offset_callback) {
-+ rtx addr, shadow_offset_rtx;
-+ ret = init_one_libfunc ("__asan_shadow_offset");
-+ addr = convert_memory_address (ptr_mode, base);
-+ ret = emit_library_call_value (ret, NULL_RTX, LCT_NORMAL, ptr_mode,
-+ addr, ptr_mode);
-+ shadow_offset_rtx = convert_memory_address (Pmode, ret);
-+ shadow_base = expand_binop (Pmode, lshr_optab, base,
-+ gen_int_shift_amount (Pmode, ASAN_SHADOW_SHIFT),
-+ NULL_RTX, 1, OPTAB_DIRECT);
-+ shadow_base = expand_binop (Pmode, add_optab, shadow_base,
-+ shadow_offset_rtx, NULL_RTX, 1, OPTAB_LIB_WIDEN);
-+ shadow_base = plus_constant (Pmode, shadow_base,
-+ (base_align_bias >> ASAN_SHADOW_SHIFT));
-+ } else {
-+ shadow_base = expand_binop (Pmode, lshr_optab, base,
-+ gen_int_shift_amount (Pmode, ASAN_SHADOW_SHIFT),
-+ NULL_RTX, 1, OPTAB_DIRECT);
-+ shadow_base = plus_constant (Pmode, shadow_base,
-+ asan_shadow_offset ()
-+ + (base_align_bias >> ASAN_SHADOW_SHIFT));
-+ }
- gcc_assert (asan_shadow_set != -1
- && (ASAN_RED_ZONE_SIZE >> ASAN_SHADOW_SHIFT) == 4);
- shadow_mem = gen_rtx_MEM (SImode, shadow_base);
---- gcc-11.1.0/gcc/params.opt~ 2021-05-11 09:02:51.897508677 +0200
-+++ gcc-11.1.0/gcc/params.opt 2021-05-11 09:10:43.692610696 +0200
-@@ -50,6 +50,10 @@
- Common Joined UInteger Var(param_asan_instrumentation_with_call_threshold) Init(7000) Param Optimization
- Use callbacks instead of inline code if number of accesses in function becomes greater or equal to this number.
-
-+-param=asan-use-shadow-offset-callback=
-+Common Joined UInteger Var(param_asan_use_shadow_offset_callback) Init(0) IntegerRange(0, 1) Param Optimization
-+Use shadow offset callback function at runtime instead of fixed value at compile time at the cost of runtime overhead.
-+
- -param=asan-memintrin=
- Common Joined UInteger Var(param_asan_memintrin) Init(1) IntegerRange(0, 1) Param Optimization
- Enable asan builtin functions protection.
diff --git a/util/crossgcc/patches/gcc-14.2.0_gnat.patch b/util/crossgcc/patches/gcc-15-20241215_gnat.patch
similarity index 100%
rename from util/crossgcc/patches/gcc-14.2.0_gnat.patch
rename to util/crossgcc/patches/gcc-15-20241215_gnat.patch
diff --git a/util/crossgcc/patches/gcc-14.2.0_libcpp.patch b/util/crossgcc/patches/gcc-15-20241215_libcpp.patch
similarity index 100%
rename from util/crossgcc/patches/gcc-14.2.0_libcpp.patch
rename to util/crossgcc/patches/gcc-15-20241215_libcpp.patch
diff --git a/util/crossgcc/patches/gcc-14.2.0_libgcc.patch b/util/crossgcc/patches/gcc-15-20241215_libgcc.patch
similarity index 100%
rename from util/crossgcc/patches/gcc-14.2.0_libgcc.patch
rename to util/crossgcc/patches/gcc-15-20241215_libgcc.patch
diff --git a/util/crossgcc/patches/gcc-14.2.0_musl_poisoned_calloc.patch b/util/crossgcc/patches/gcc-15-20241215_musl_poisoned_calloc.patch
similarity index 100%
rename from util/crossgcc/patches/gcc-14.2.0_musl_poisoned_calloc.patch
rename to util/crossgcc/patches/gcc-15-20241215_musl_poisoned_calloc.patch
diff --git a/util/crossgcc/patches/gcc-14.2.0_rv32iafc.patch b/util/crossgcc/patches/gcc-15-20241215_rv32iafc.patch
similarity index 100%
rename from util/crossgcc/patches/gcc-14.2.0_rv32iafc.patch
rename to util/crossgcc/patches/gcc-15-20241215_rv32iafc.patch
diff --git a/util/crossgcc/sum/gcc-14.2.0.tar.xz.cksum b/util/crossgcc/sum/gcc-14.2.0.tar.xz.cksum
deleted file mode 100644
index f81c535..0000000
--- a/util/crossgcc/sum/gcc-14.2.0.tar.xz.cksum
+++ /dev/null
@@ -1 +0,0 @@
-d91ecc3d20ce6298bd95f9b09cc51dc6d3c73ae3 tarballs/gcc-14.2.0.tar.xz
diff --git a/util/crossgcc/sum/gcc-15-20241215.tar.xz.cksum b/util/crossgcc/sum/gcc-15-20241215.tar.xz.cksum
new file mode 100644
index 0000000..88592d5
--- /dev/null
+++ b/util/crossgcc/sum/gcc-15-20241215.tar.xz.cksum
@@ -0,0 +1 @@
+cf3899e0c1bc7f9ea2b4b21bfcb21ecc6e49372c tarballs/gcc-15-20241215.tar.xz
--
To view, visit https://review.coreboot.org/c/coreboot/+/85729?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I644fae70488c26ba833c2332059e805e50764c2a
Gerrit-Change-Number: 85729
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Reviewer: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Attention: Martin L Roth <gaumless(a)gmail.com>