Attention is currently required from: Maximilian Brune, Patrick Rudolph, Philipp Hug, ron minnich.
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/77974?usp=email )
Change subject: include/memlayout.h: Add OPENSBI linker macro
......................................................................
Patch Set 5: Code-Review+2
(2 comments)
File src/arch/riscv/include/arch/memlayout.h:
https://review.coreboot.org/c/coreboot/+/77974/comment/53bb7a5f_a1d30f2d :
PS5, Line 27: opensbi
> I am actually a little uncertain about that. If I choose to use: […]
+1 to what Max said, I think we should stick to the convention that all macros always take address and size. We could instead eliminate the redundant Kconfig as I suggested above, so that the address defined in memlayout becomes meaningful on its own.
File src/arch/riscv/include/arch/memlayout.h:
https://review.coreboot.org/c/coreboot/+/77974/comment/320fa5e6_fbecf362 :
PS3, Line 24: #if CONFIG(RISCV_OPENSBI)
> Honestly I am not a fan of the whole static addressing approach. […]
Well, the original idea behind having the address everywhere was that memlayout files can serve as both definition and documentation at once, so that if you want to know which address a certain region is mapped at you can simply look it up in the file. Of course, that requires that you write absolute offsets rather than your `FU540_L2LIM + ...` notation. (I don't think it's error-prone because any typos you make that would lead to overlaps get caught at build-time.)
You're not generally supposed to do the if-else thing for optional features. It only really makes sense when you really have an exclusive-or situation (where only one or the other case can be active, but not both). This normally only happens for stages (e.g. how `OVERLAP_VERSTAGE_ROMSTAGE()` is implemented), or for very rare cases where there's an exclusive choice of implementations (e.g. if we had support for both TF-A and another Secure Monitor on arm64, then overlapping the regions for them like this might make sense). But for anything that's independently optional, we want all of those regions in the layout unconditionally because we don't want to get into a situation where a certain board only builds when you enable a limited subset of optional features, but doesn't fit the available space when you enable all of them at once.
--
To view, visit https://review.coreboot.org/c/coreboot/+/77974?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: I4f138de685c6bfb3cdbf79d63787eb0c5aab8590
Gerrit-Change-Number: 77974
Gerrit-PatchSet: 5
Gerrit-Owner: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
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: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Attention: Philipp Hug <philipp(a)hug.cx>
Gerrit-Attention: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Attention: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Attention: ron minnich <rminnich(a)gmail.com>
Gerrit-Comment-Date: Tue, 16 Jan 2024 22:19:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Comment-In-Reply-To: Maximilian Brune <maximilian.brune(a)9elements.com>
Comment-In-Reply-To: Julius Werner <jwerner(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Eric Lai, Nick Vaccaro, Paul Menzel.
Shelley Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/79854?usp=email )
Change subject: mb/google/brox: Set up FW_CONFIG
......................................................................
Patch Set 8:
(6 comments)
Commit Message:
https://review.coreboot.org/c/coreboot/+/79854/comment/86923c2c_51ba326d :
PS2, Line 10: making
> Imperative mood: make
Done
https://review.coreboot.org/c/coreboot/+/79854/comment/858a6a88_e366b3e9 :
PS2, Line 11: moving
> move
Removed.
https://review.coreboot.org/c/coreboot/+/79854/comment/2409d673_6a507c38 :
PS2, Line 11: Also, moving the storage devices to brox
: overridetree.cb as they are specific to this board.
> A separate commit would be nice.
Moved to https://review.coreboot.org/c/coreboot/+/79995
File src/mainboard/google/brox/variants/baseboard/brox/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/79854/comment/7d57f07c_082b94cd :
PS2, Line 180: device ref pcie4_0 on
> Probably separate the PCIE with another CL?
Moved to https://review.coreboot.org/c/coreboot/+/79995
File src/mainboard/google/brox/variants/brox/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/79854/comment/05684750_7f0e8eb8 :
PS1, Line 8: option STORAGE_UFS 0
> If you think emmc might be added later, might be better to make this […]
Done
https://review.coreboot.org/c/coreboot/+/79854/comment/69a34347_747bf570 :
PS1, Line 11: end
> 1) It will likely need a field for WiFi Device (not sure if kernel will need a field for WLAN type a […]
Nick, can you review these fw config settings to make sure that they cover your conerns?
--
To view, visit https://review.coreboot.org/c/coreboot/+/79854?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: Iaf43003b7e8210eee9016d779839d7048c15825f
Gerrit-Change-Number: 79854
Gerrit-PatchSet: 8
Gerrit-Owner: Shelley Chen <shchen(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Eric Lai <ericllai(a)google.com>
Gerrit-CC: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Eric Lai <ericllai(a)google.com>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-Comment-Date: Tue, 16 Jan 2024 21:54:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Eric Lai <ericllai(a)google.com>
Comment-In-Reply-To: Paul Menzel <paulepanter(a)mailbox.org>
Comment-In-Reply-To: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-MessageType: comment
Attention is currently required from: Shelley Chen.
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/79854?usp=email
to look at the new patch set (#8).
Change subject: mb/google/brox: Set up FW_CONFIG
......................................................................
mb/google/brox: Set up FW_CONFIG
Brox project has FW_CONFIG bits already set up in the project file for
the retimer and for storage, so make sure that the brox device tree
matches those settings.
BUG=b:311450057,b:300690448,b:319058143
BRANCH=None
TEST=emerge-brox coreboot chromeos-bootimage
will check if this helps detect the storage device in the factory
Change-Id: Iaf43003b7e8210eee9016d779839d7048c15825f
Signed-off-by: Shelley Chen <shchen(a)google.com>
---
M src/mainboard/google/brox/variants/brox/overridetree.cb
1 file changed, 23 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/79854/8
--
To view, visit https://review.coreboot.org/c/coreboot/+/79854?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: Iaf43003b7e8210eee9016d779839d7048c15825f
Gerrit-Change-Number: 79854
Gerrit-PatchSet: 8
Gerrit-Owner: Shelley Chen <shchen(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Eric Lai <ericllai(a)google.com>
Gerrit-CC: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Shelley Chen <shchen(a)google.com>
Gerrit-MessageType: newpatchset
Shelley Chen has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/79995?usp=email )
Change subject: mb/google/brox: Move storage devices to overridetree
......................................................................
mb/google/brox: Move storage devices to overridetree
These are specific to the brox board, so moving devices to the brox
variant.
BUG=b:311450057,b:300690448,b:319058143
BRANCH=None
TEST=emerge-brox coreboot chromeos-bootimage
will check if this helps detect the storage device in the factory
Change-Id: I18d096040c293abfd4cd0b1bb5f50ba6dcc2e183
Signed-off-by: Shelley Chen <shchen(a)google.com>
---
M src/mainboard/google/brox/variants/baseboard/brox/devicetree.cb
M src/mainboard/google/brox/variants/brox/overridetree.cb
2 files changed, 19 insertions(+), 15 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/79995/1
diff --git a/src/mainboard/google/brox/variants/baseboard/brox/devicetree.cb b/src/mainboard/google/brox/variants/baseboard/brox/devicetree.cb
index 23db754..c1c561b 100644
--- a/src/mainboard/google/brox/variants/baseboard/brox/devicetree.cb
+++ b/src/mainboard/google/brox/variants/baseboard/brox/devicetree.cb
@@ -173,21 +173,6 @@
end
device ref heci1 on end
device ref sata on end
- device ref pcie4_0 on
- # Enable CPU PCIE RP 1 using CLK 3
- register "cpu_pcie_rp[CPU_RP(1)]" = "{
- .clk_req = 3,
- .clk_src = 3,
- .flags = PCIE_RP_LTR | PCIE_RP_AER,
- }"
- end
- device ref ish on
- chip drivers/intel/ish
- register "add_acpi_dma_property" = "true"
- device generic 0 on end
- end
- end
- device ref ufs on end
device ref uart0 on end
device ref gspi1 on end
device ref pch_espi on
diff --git a/src/mainboard/google/brox/variants/brox/overridetree.cb b/src/mainboard/google/brox/variants/brox/overridetree.cb
index 48c7b3d..c399634 100644
--- a/src/mainboard/google/brox/variants/brox/overridetree.cb
+++ b/src/mainboard/google/brox/variants/brox/overridetree.cb
@@ -170,5 +170,24 @@
device generic 0 on end
end
end
+ device ref pcie4_0 on
+ # Enable CPU PCIE RP 1 using CLK 3
+ register "cpu_pcie_rp[CPU_RP(1)]" = "{
+ .clk_req = 3,
+ .clk_src = 3,
+ .flags = PCIE_RP_LTR | PCIE_RP_AER,
+ }"
+ probe STORAGE STORAGE_NVME
+ end
+ device ref ish on
+ chip drivers/intel/ish
+ register "add_acpi_dma_property" = "true"
+ device generic 0 on end
+ end
+ probe STORAGE STORAGE_UFS
+ end
+ device ref ufs on
+ probe STORAGE STORAGE_UFS
+ end
end
end
--
To view, visit https://review.coreboot.org/c/coreboot/+/79995?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: I18d096040c293abfd4cd0b1bb5f50ba6dcc2e183
Gerrit-Change-Number: 79995
Gerrit-PatchSet: 1
Gerrit-Owner: Shelley Chen <shchen(a)google.com>
Gerrit-MessageType: newchange
Attention is currently required from: Shelley Chen.
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/79854?usp=email
to look at the new patch set (#7).
The following approvals got outdated and were removed:
Verified+1 by build bot (Jenkins)
Change subject: mb/google/brox: Set up FW_CONFIG
......................................................................
mb/google/brox: Set up FW_CONFIG
Brox project has FW_CONFIG bits already set up in the project file for
the retimer and for storage, so making sure that the brox device tree
matches those settings.
BUG=b:311450057,b:300690448,b:319058143
BRANCH=None
TEST=emerge-brox coreboot chromeos-bootimage
will check if this helps detect the storage device in the factory
Change-Id: Iaf43003b7e8210eee9016d779839d7048c15825f
Signed-off-by: Shelley Chen <shchen(a)google.com>
---
M src/mainboard/google/brox/variants/brox/overridetree.cb
1 file changed, 23 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/79854/7
--
To view, visit https://review.coreboot.org/c/coreboot/+/79854?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: Iaf43003b7e8210eee9016d779839d7048c15825f
Gerrit-Change-Number: 79854
Gerrit-PatchSet: 7
Gerrit-Owner: Shelley Chen <shchen(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Eric Lai <ericllai(a)google.com>
Gerrit-CC: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Shelley Chen <shchen(a)google.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: Felix Held, Jérémy Compostella.
Martin Roth has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/79994?usp=email )
Change subject: arch/x86/mpspec: turn compile-time check into Kconfig dependency
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/79994?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: Ie532a401ad0161890d0fb4ca2889af022d5f6b47
Gerrit-Change-Number: 79994
Gerrit-PatchSet: 1
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Jérémy Compostella <jeremy.compostella(a)intel.com>
Gerrit-Reviewer: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-Attention: Jérémy Compostella <jeremy.compostella(a)intel.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Comment-Date: Tue, 16 Jan 2024 19:57:51 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Felix Held has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/79994?usp=email )
Change subject: arch/x86/mpspec: turn compile-time check into Kconfig dependency
......................................................................
arch/x86/mpspec: turn compile-time check into Kconfig dependency
Instead of checking if there is more than one PCI segment group and
erroring out in that case during the build, add this requirement as a
dependency to the GENERATE_MP_TABLE Kconfig option. The mpspec.c source
file only gets included in the build if GENERATE_MP_TABLE is selected.
Signed-off-by: Felix Held <felix-coreboot(a)felixheld.de>
Suggested-by: Martin Roth <gaumless(a)gmail.com>
Change-Id: Ie532a401ad0161890d0fb4ca2889af022d5f6b47
---
M src/Kconfig
M src/arch/x86/mpspec.c
2 files changed, 1 insertion(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/94/79994/1
diff --git a/src/Kconfig b/src/Kconfig
index 5cb9a1a..9797624 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -907,6 +907,7 @@
config GENERATE_MP_TABLE
prompt "Generate an MP table" if HAVE_MP_TABLE
bool
+ depends on !ECAM_MMCONF_SUPPORT || ECAM_MMCONF_BUS_NUMBER <= 256
default HAVE_MP_TABLE
help
Generate an MP table (conforming to the Intel MultiProcessor
diff --git a/src/arch/x86/mpspec.c b/src/arch/x86/mpspec.c
index 3b4c8ad..7744f68 100644
--- a/src/arch/x86/mpspec.c
+++ b/src/arch/x86/mpspec.c
@@ -14,10 +14,6 @@
#include <stdint.h>
#include <string.h>
-#if CONFIG(ECAM_MMCONF_SUPPORT) && PCI_SEGMENT_GROUP_COUNT > 1
-#error "MPTable doesn't support systems with multiple PCI segment groups"
-#endif
-
/* Initialize the specified "mc" struct with initial values. */
void mptable_init(struct mp_config_table *mc)
{
--
To view, visit https://review.coreboot.org/c/coreboot/+/79994?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: Ie532a401ad0161890d0fb4ca2889af022d5f6b47
Gerrit-Change-Number: 79994
Gerrit-PatchSet: 1
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-MessageType: newchange
Attention is currently required from: Felix Held, Patrick Rudolph.
Martin Roth has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/79980?usp=email )
Change subject: device/device_const: add pcidev_path_on_segbus
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/79980?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: Ibbbee9966abc997ded6389e72912e621c1f0bdbf
Gerrit-Change-Number: 79980
Gerrit-PatchSet: 2
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Comment-Date: Tue, 16 Jan 2024 19:46:50 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment