Attention is currently required from: Arthur Heymans, Maximilian Brune.
Philipp Hug has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/80746?usp=email )
The change is no longer submittable: All-Comments-Resolved is unsatisfied now.
Change subject: mb/emulation/qemu-riscv: Change to -bios option
......................................................................
Patch Set 5:
(1 comment)
Patchset:
PS5:
as discussed, rebase this on top of 36486 to avoid fixed RAM size
--
To view, visit https://review.coreboot.org/c/coreboot/+/80746?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I009d97fa3e13068b91c604e987e50a65e525407d
Gerrit-Change-Number: 80746
Gerrit-PatchSet: 5
Gerrit-Owner: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Philipp Hug <philipp(a)hug.cx>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Reviewer: ron minnich <rminnich(a)gmail.com>
Gerrit-Attention: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Comment-Date: Sun, 03 Mar 2024 09:35:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Benjamin Doron, Lean Sheng Tan, Martin L Roth, Matt DeVillier, Sean Rhodes, Stefan Reinauer.
Nicholas Sudsgaard has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/80883?usp=email )
Change subject: payload/external/edk2: Explicitly define the build arch
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS1:
> what issue are you seeing with the arch not specified / what problem does this resolve? Does this wo […]
Without this option, the EDK2 UefiPayloadPkg will not build.
One reason may be that it creates `workspace/Build/UefiPayloadPkg$(BUILD_ARCH)` (literally) instead of `workspace/Build/UefiPayloadPkgX64` when `BUILD_ARCH` is not defined.
Regarding the UniversalPayload, I can get to the `Successfully build Universal Payload` without any issues with this change. I can't seem to get any further (with or without this change) as it throws this error:
```
Loading previous configuration from /home/nicholas/Development/coreboot/payloads/external/edk2/workspace/starlabsltd/Conf/BuildEnv.sh
Using EDK2 in-source Basetools
WORKSPACE: /home/nicholas/Development/coreboot/payloads/external/edk2/workspace
EDK_TOOLS_PATH: /home/nicholas/Development/coreboot/payloads/external/edk2/workspace/starlabsltd/BaseTools
CONF_PATH: /home/nicholas/Development/coreboot/payloads/external/edk2/workspace/starlabsltd/Conf
Build environment: Linux-6.5.0-21-generic-x86_64-with-glibc2.35
Build start time: 00:56:51, Mar.03 2024
WORKSPACE = /home/nicholas/Development/coreboot/payloads/external/edk2/workspace
PACKAGES_PATH = /home/nicholas/Development/coreboot/payloads/external/edk2/workspace/starlabsltd
EDK_TOOLS_PATH = /home/nicholas/Development/coreboot/payloads/external/edk2/workspace/starlabsltd/BaseTools
CONF_PATH = /home/nicholas/Development/coreboot/payloads/external/edk2/workspace/starlabsltd/Conf
PYTHON_COMMAND = python3
Architecture(s) = IA32 X64
Build target = RELEASE
Toolchain = COREBOOT
Processing meta-data
Active Platform = /home/nicholas/Development/coreboot/payloads/external/edk2/workspace/starlabsltd/UefiPayloadPkg/UefiPayloadPkg.dsc
.Active Module = /home/nicholas/Development/coreboot/payloads/external/edk2/workspace/starlabsltd/UefiPayloadPkg/ShimLayer/ShimLayer.inf
build.py...
/home/nicholas/Development/coreboot/payloads/external/edk2/workspace/starlabsltd/UefiPayloadPkg/UefiPayloadPkg.dsc(...): error 4000: Instance of library class [UefiCpuLib] is not found
in [/home/nicholas/Development/coreboot/payloads/external/edk2/workspace/starlabsltd/UefiPayloadPkg/ShimLayer/ShimLayer.inf] [IA32]
consumed by module [/home/nicholas/Development/coreboot/payloads/external/edk2/workspace/starlabsltd/UefiPayloadPkg/ShimLayer/ShimLayer.inf]
- Failed -
Build end time: 00:56:52, Mar.03 2024
Build total time: 00:00:01
make[1]: *** [Makefile:295: /home/nicholas/Development/coreboot/payloads/external/edk2/workspace/Build/UefiPayloadPkgX64/RELEASE_COREBOOT/IA32/UefiPayloadPkg/ShimLayer/ShimLayer/DEBUG/ShimLayer.dll] Error 1
make: *** [payloads/external/Makefile.mk:207: build/ShimmedUniversalPayload.elf] Error 2
```
Doing some light digging it appears that `UefiCpuLib` was removed/merged into `CpuLib` (`git log --grep UefiCpuLib`). I changed all instances of `UefiCpuLib` to `CpuLib` and it appears to compile. One thing to note is that I'm not very familiar with edk2 and may be doing something wrong here.
--
To view, visit https://review.coreboot.org/c/coreboot/+/80883?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Icd942d0c15a99231d09f9cbdc5eb48333b6aa6e5
Gerrit-Change-Number: 80883
Gerrit-PatchSet: 2
Gerrit-Owner: Nicholas Sudsgaard <devel+coreboot(a)nsudsgaard.com>
Gerrit-Reviewer: Benjamin Doron <benjamin.doron00(a)gmail.com>
Gerrit-Reviewer: Lean Sheng Tan <sheng.tan(a)9elements.com>
Gerrit-Reviewer: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)gmail.com>
Gerrit-Reviewer: Sean Rhodes <sean(a)starlabs.systems>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Sean Rhodes <sean(a)starlabs.systems>
Gerrit-Attention: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Attention: Matt DeVillier <matt.devillier(a)gmail.com>
Gerrit-Attention: Benjamin Doron <benjamin.doron00(a)gmail.com>
Gerrit-Attention: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Attention: Lean Sheng Tan <sheng.tan(a)9elements.com>
Gerrit-Comment-Date: Sun, 03 Mar 2024 01:16:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Matt DeVillier <matt.devillier(a)gmail.com>
Gerrit-MessageType: comment
Attention is currently required from: Benjamin Doron, Lean Sheng Tan, Martin L Roth, Nicholas Sudsgaard, Sean Rhodes, Stefan Reinauer.
Hello Benjamin Doron, Lean Sheng Tan, Martin L Roth, Matt DeVillier, Sean Rhodes, Stefan Reinauer, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/80883?usp=email
to look at the new patch set (#2).
Change subject: payload/external/edk2: Explicitly define the build arch
......................................................................
payload/external/edk2: Explicitly define the build arch
Upstream commit 11ad164bce (UefiPayloadPkg: Make UPL build script arch
agnostic, 2024-02-22) changes the build script's behavior to not assume
the arch. Without defining BUILD_ARCH, the build script will not
function properly and results in the payload failing to build.
Change-Id: Icd942d0c15a99231d09f9cbdc5eb48333b6aa6e5
Signed-off-by: Nicholas Sudsgaard <devel+coreboot(a)nsudsgaard.com>
---
M payloads/external/edk2/Makefile
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/83/80883/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/80883?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Icd942d0c15a99231d09f9cbdc5eb48333b6aa6e5
Gerrit-Change-Number: 80883
Gerrit-PatchSet: 2
Gerrit-Owner: Nicholas Sudsgaard <devel+coreboot(a)nsudsgaard.com>
Gerrit-Reviewer: Benjamin Doron <benjamin.doron00(a)gmail.com>
Gerrit-Reviewer: Lean Sheng Tan <sheng.tan(a)9elements.com>
Gerrit-Reviewer: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)gmail.com>
Gerrit-Reviewer: Sean Rhodes <sean(a)starlabs.systems>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Sean Rhodes <sean(a)starlabs.systems>
Gerrit-Attention: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Attention: Benjamin Doron <benjamin.doron00(a)gmail.com>
Gerrit-Attention: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Attention: Nicholas Sudsgaard <devel+coreboot(a)nsudsgaard.com>
Gerrit-Attention: Lean Sheng Tan <sheng.tan(a)9elements.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: Arthur Heymans, Nico Huber, Philipp Hug.
ron minnich has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/68842?usp=email )
Change subject: lib/ramdetect: Limit probe size to function argument
......................................................................
Patch Set 10: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/68842?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Ie7f915c6e150629eff235ee94719172467a54db2
Gerrit-Change-Number: 68842
Gerrit-PatchSet: 10
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Reviewer: Philipp Hug <philipp(a)hug.cx>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Reviewer: ron minnich <rminnich(a)gmail.com>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Philipp Hug <philipp(a)hug.cx>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Comment-Date: Sat, 02 Mar 2024 22:23:44 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Martin L Roth, Philipp Hug, ron minnich.
Maximilian Brune has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/76689?usp=email )
Change subject: soc/sifive/fu740: Add FU740 SOC
......................................................................
Patch Set 13:
(9 comments)
File src/soc/sifive/fu740/Makefile.inc:
https://review.coreboot.org/c/coreboot/+/76689/comment/7841b30c_e593f5f9 :
PS12, Line 3: ifdef
> This needs to be `ifeq ($(CONFIG_SOC_SIFIVE_FU740),y)` […]
That was quite the blooper. I am wondering why it even compiled then.
File src/soc/sifive/fu740/cbmem.c:
https://review.coreboot.org/c/coreboot/+/76689/comment/793f52ba_fdd8254f :
PS12, Line 11: #define FU740_MAXDRAM 0x800000000ULL // 32 GiB
> Can we move this outside of the function?
I only put it in here to emphasis it is only used here and for all other operations `sdram_size()` is supposed to be the source of truth regarding dram size.
File src/soc/sifive/fu740/clint.c:
https://review.coreboot.org/c/coreboot/+/76689/comment/0b49f026_6d0af326 :
PS12, Line 11: (uint64_t *)(FU740_CLINT + 0xbff8);
: HLS()->timecmp = (uint64_t *)(FU740_CLINT + 0x4000 + 8 * hart_id);
> Can the magic numbers be made into #defines?
Done
https://review.coreboot.org/c/coreboot/+/76689/comment/0d7131c0_e5f85ad4 :
PS12, Line 17: 4 * (uintptr_t)hartid
> I assume this means we're always 32-bit? If that's not the case, should hartid be cast to a 32-bit v […]
We are 64 bit always. Therefore before casting it to a (void *) I need to cast it to a 64 bit value.
File src/soc/sifive/fu740/clock.c:
https://review.coreboot.org/c/coreboot/+/76689/comment/5df3028d_d835770f :
PS12, Line 16: *
> Nit: Add some spaces around '*'?
Done
https://review.coreboot.org/c/coreboot/+/76689/comment/9c07af08_db2a32c5 :
PS12, Line 153: Oszillator
> oscillator?
I accidentally used the german word.
File src/soc/sifive/fu740/ddrregs.c:
https://review.coreboot.org/c/coreboot/+/76689/comment/a4da0bb0_0d41ad04 :
PS12, Line 1: /* SPDX-License-Identifier: Apache-2.0 */
> Did this file come from somewhere else? Why not just GPL?
First I copied the magic values from our fu540 implementation (that is where the apache license comes from), but that didn't work so I got my values from SiFive u-boot devicetree. Since that is also GPL licensed, I removed the Apache license now.
https://review.coreboot.org/c/coreboot/+/76689/comment/0092a354_92b24d89 :
PS12, Line 9: DENALI_PHY_00_DATA
> Why bother with the #defines? why not just include the data directly?
good point. They are magic values anyway.
File src/soc/sifive/fu740/spi_internal.h:
https://review.coreboot.org/c/coreboot/+/76689/comment/784c9867_5b069fbf :
PS12, Line 1: /* SPDX-License-Identifier: GPL-2.0-only */
> Put this into the include directory?
This file contains the SPI stuff that is not needed outside of the SOC code. `include/soc/spi.h` contains the SPI code needed for configurating things in mainboard code. I tried to separate it similar to the fu540 SOC for future SiFive SOC common code.
--
To view, visit https://review.coreboot.org/c/coreboot/+/76689?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I4a8fe02ef0adcb939aa65377a35874715c5ee58a
Gerrit-Change-Number: 76689
Gerrit-PatchSet: 13
Gerrit-Owner: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Reviewer: Philipp Hug <philipp(a)hug.cx>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Reviewer: ron minnich <rminnich(a)gmail.com>
Gerrit-CC: Jan Samek <jan.samek(a)siemens.com>
Gerrit-CC: Martin L Roth <gaumless(a)gmail.com>
Gerrit-CC: Marvin Drees <marvin.drees(a)9elements.com>
Gerrit-Attention: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Attention: Philipp Hug <philipp(a)hug.cx>
Gerrit-Attention: ron minnich <rminnich(a)gmail.com>
Gerrit-Comment-Date: Sat, 02 Mar 2024 20:59:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Martin L Roth <gaumless(a)gmail.com>
Gerrit-MessageType: comment
Attention is currently required from: Maximilian Brune, Philipp Hug, ron minnich.
Hello Philipp Hug, build bot (Jenkins), ron minnich,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/76689?usp=email
to look at the new patch set (#13).
The following approvals got outdated and were removed:
Code-Review+2 by Philipp Hug, Code-Review+2 by ron minnich, Verified+1 by build bot (Jenkins)
Change subject: soc/sifive/fu740: Add FU740 SOC
......................................................................
soc/sifive/fu740: Add FU740 SOC
Signed-off-by: Maximilian Brune <maximilian.brune(a)9elements.com>
Change-Id: I4a8fe02ef0adcb939aa65377a35874715c5ee58a
---
M src/soc/sifive/fu540/include/soc/spi.h
A src/soc/sifive/fu740/Kconfig
A src/soc/sifive/fu740/Makefile.inc
A src/soc/sifive/fu740/TODO
A src/soc/sifive/fu740/cbmem.c
A src/soc/sifive/fu740/chip.c
A src/soc/sifive/fu740/clint.c
A src/soc/sifive/fu740/clock.c
A src/soc/sifive/fu740/ddrregs.c
A src/soc/sifive/fu740/gpio.c
A src/soc/sifive/fu740/include/soc/addressmap.h
A src/soc/sifive/fu740/include/soc/clock.h
A src/soc/sifive/fu740/include/soc/gpio.h
A src/soc/sifive/fu740/include/soc/otp.h
A src/soc/sifive/fu740/include/soc/sdram.h
A src/soc/sifive/fu740/include/soc/spi.h
A src/soc/sifive/fu740/memlayout.ld
A src/soc/sifive/fu740/otp.c
A src/soc/sifive/fu740/sdram.c
A src/soc/sifive/fu740/spi.c
A src/soc/sifive/fu740/spi_internal.h
A src/soc/sifive/fu740/uart.c
22 files changed, 3,190 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/89/76689/13
--
To view, visit https://review.coreboot.org/c/coreboot/+/76689?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I4a8fe02ef0adcb939aa65377a35874715c5ee58a
Gerrit-Change-Number: 76689
Gerrit-PatchSet: 13
Gerrit-Owner: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Reviewer: Philipp Hug <philipp(a)hug.cx>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Reviewer: ron minnich <rminnich(a)gmail.com>
Gerrit-CC: Jan Samek <jan.samek(a)siemens.com>
Gerrit-CC: Martin L Roth <gaumless(a)gmail.com>
Gerrit-CC: Marvin Drees <marvin.drees(a)9elements.com>
Gerrit-Attention: Philipp Hug <philipp(a)hug.cx>
Gerrit-Attention: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Attention: ron minnich <rminnich(a)gmail.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: Maximilian Brune, Philipp Hug, ron minnich.
Martin L Roth has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/80943?usp=email )
Change subject: Revert "mb/sifive: Add Hifive Unmatched mainboard"
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
Merging to fix broken build.
--
To view, visit https://review.coreboot.org/c/coreboot/+/80943?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I71c024b13411c4e0c9b4d6358f9cd31c57bbbfe2
Gerrit-Change-Number: 80943
Gerrit-PatchSet: 1
Gerrit-Owner: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Reviewer: Philipp Hug <philipp(a)hug.cx>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Reviewer: ron minnich <rminnich(a)gmail.com>
Gerrit-CC: Jan Samek <jan.samek(a)siemens.com>
Gerrit-Attention: Philipp Hug <philipp(a)hug.cx>
Gerrit-Attention: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Attention: ron minnich <rminnich(a)gmail.com>
Gerrit-Comment-Date: Sat, 02 Mar 2024 18:09:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment