Hello Furquan Shaikh, Patrick Georgi,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/48278
to review the following change.
Change subject: cbfs: Add more error messages for lookup
......................................................................
cbfs: Add more error messages for lookup
The new CBFS stack will log messages for found files but leaves error
messages up to the caller. This patch adds appropriate generic error
messages to cbfs_lookup(), matching the behavior of the old CBFS stack
for not found files.
Signed-off-by: Julius Werner <jwerner(a)chromium.org>
Change-Id: I8cf44026accc03c466105d06683027caf1693ff0
---
M src/lib/cbfs.c
1 file changed, 10 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/78/48278/1
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c
index 5df1d8b..d66c5d6 100644
--- a/src/lib/cbfs.c
+++ b/src/lib/cbfs.c
@@ -52,8 +52,17 @@
name);
return cbfs_boot_lookup(name, true, mdata, rdev);
}
- if (err)
+ if (err) {
+ if (err == CB_CBFS_NOT_FOUND)
+ printk(BIOS_WARNING, "CBFS: '%s' not found.\n", name);
+ else if (err == CB_CBFS_HASH_MISMATCH)
+ die("CBFS FATAL ERROR: metadata hash mismatch!\n");
+ else
+ printk(BIOS_ERR,
+ "CBFS ERROR: error %d when looking up '%s'\n",
+ err, name);
return err;
+ }
if (rdev_chain(rdev, &cbd->rdev, data_offset, be32toh(mdata->h.len)))
return CB_ERR;
--
To view, visit https://review.coreboot.org/c/coreboot/+/48278
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I8cf44026accc03c466105d06683027caf1693ff0
Gerrit-Change-Number: 48278
Gerrit-PatchSet: 1
Gerrit-Owner: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange
Raul Rangel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/28101 )
Change subject: Makefile: Add $(xcompile) to specify where to write xcompile
......................................................................
Patch Set 11:
(2 comments)
https://review.coreboot.org/c/coreboot/+/28101/6/src/soc/nvidia/tegra124/lp…
File src/soc/nvidia/tegra124/lp0/Makefile:
https://review.coreboot.org/c/coreboot/+/28101/6/src/soc/nvidia/tegra124/lp…
PS6, Line 16: xcompile
> since this file doesn't respect the $(obj) variable I was hesitant to write anything into the src di […]
I want to leave the build cleanup for another day.
https://review.coreboot.org/c/coreboot/+/28101/6/util/testing/Makefile.inc
File util/testing/Makefile.inc:
https://review.coreboot.org/c/coreboot/+/28101/6/util/testing/Makefile.inc@…
PS6, Line 94:
> If the nvidia makefiles create .xcompile on their own, this is not needed.
Same
--
To view, visit https://review.coreboot.org/c/coreboot/+/28101
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia83f234447b977efa824751c9674154b77d606b0
Gerrit-Change-Number: 28101
Gerrit-PatchSet: 11
Gerrit-Owner: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-CC: Raul Rangel <rrangel(a)google.com>
Gerrit-Comment-Date: Fri, 04 Dec 2020 22:27:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Raul Rangel <rrangel(a)chromium.org>
Comment-In-Reply-To: Martin Roth <martinroth(a)google.com>
Gerrit-MessageType: comment
Raul Rangel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/28101 )
Change subject: Makefile: Add $(xcompile) to specify where to write xcompile
......................................................................
Patch Set 11:
(1 comment)
https://review.coreboot.org/c/coreboot/+/28101/6//COMMIT_MSG
Commit Message:
https://review.coreboot.org/c/coreboot/+/28101/6//COMMIT_MSG@21
PS6, Line 21: a
> an
Done
--
To view, visit https://review.coreboot.org/c/coreboot/+/28101
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia83f234447b977efa824751c9674154b77d606b0
Gerrit-Change-Number: 28101
Gerrit-PatchSet: 11
Gerrit-Owner: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-CC: Raul Rangel <rrangel(a)google.com>
Gerrit-Comment-Date: Fri, 04 Dec 2020 22:23:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Martin Roth <martinroth(a)google.com>
Gerrit-MessageType: comment
Hello build bot (Jenkins), Nico Huber, Patrick Georgi, Martin Roth, Stefan Reinauer, Paul Menzel, Julius Werner,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/28101
to look at the new patch set (#11).
Change subject: Makefile: Add $(xcompile) to specify where to write xcompile
......................................................................
Makefile: Add $(xcompile) to specify where to write xcompile
This file was being written to the root src directory. It is the only
file being written to src during a normal build, while all others are
being written to $(obj). I added a new variable to allow specifying the
xcompile path. This allows generating a single file if building multiple
boards. I also moved the default location into $(obj) so we don't
pollute the src directory by default.
I also cleaned up the generation of xcompile by removing the unnecessary
eval and NOCOMPILE check.
I also left .xcompile in distclean so it cleans up stale files.
Since .xcompile is written into $(obj), `make clean` will now remove it.
The tegra Makefiles are outside of the normal build process, so I just
updated those Makefiles to point to the default xcompile location of a
normal build. The what-jenkins-does target had to be updated to support
these special targets. We generate an xcompile specifically for these
targets and pass it into the Makefile. Ideally we should get these
targets added to the main build.
BUG=b:112267918
TEST=ran `emerge-grunt coreboot` and `make what-jenkins-does`
Signed-off-by: Raul E Rangel <rrangel(a)chromium.org>
Change-Id: Ia83f234447b977efa824751c9674154b77d606b0
---
M Makefile
M Makefile.inc
M src/soc/nvidia/tegra124/lp0/Makefile
M src/soc/nvidia/tegra210/lp0/Makefile
M util/abuild/abuild
M util/crossgcc/Makefile.inc
M util/docker/Makefile
M util/testing/Makefile.inc
8 files changed, 29 insertions(+), 20 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/01/28101/11
--
To view, visit https://review.coreboot.org/c/coreboot/+/28101
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia83f234447b977efa824751c9674154b77d606b0
Gerrit-Change-Number: 28101
Gerrit-PatchSet: 11
Gerrit-Owner: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-CC: Raul Rangel <rrangel(a)google.com>
Gerrit-MessageType: newpatchset
EricR Lai has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/48139 )
Change subject: mb/google/brya: Initiate device tree
......................................................................
mb/google/brya: Initiate device tree
Initiate device tree based on latest schematic.
BUG=b:174266035
TEST=Build Test
Signed-off-by: Eric Lai <ericr_lai(a)compal.corp-partner.google.com>
Change-Id: Ia94119cb6d7eff6ea13c7d6a7dfd6ce891f706fd
---
M src/mainboard/google/brya/variants/baseboard/devicetree.cb
1 file changed, 38 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/39/48139/1
diff --git a/src/mainboard/google/brya/variants/baseboard/devicetree.cb b/src/mainboard/google/brya/variants/baseboard/devicetree.cb
index fbd7d72..e01c4ff 100644
--- a/src/mainboard/google/brya/variants/baseboard/devicetree.cb
+++ b/src/mainboard/google/brya/variants/baseboard/devicetree.cb
@@ -2,4 +2,42 @@
device cpu_cluster 0 on
device lapic 0 on end
end
+
+ device domain 0 on
+ device ref igpu on end
+ device ref dptf on end
+ device ref tbt_pcie_rp0 on end
+ device ref tbt_pcie_rp1 on end
+ device ref tbt_pcie_rp2 on end
+ device ref tbt_dma0 on end
+ device ref tbt_dma1 on end
+ device ref gna on end
+ device ref north_xhci on end
+ device ref cnvi_bt on end
+ device ref south_xhci on end
+ device ref shared_ram on end
+ device ref cnvi_wifi on
+ chip drivers/wifi/generic
+ register "wake" = "GPE0_PME_B0"
+ device generic 0 on end
+ end
+ end
+ device ref heci1 on end
+ device ref sata on end
+ device ref pcie_rp1 on end #USB3-1 Type A
+ device ref pcie_rp4 on end #USB3-4 WWAN
+ device ref pcie_rp5 on end #PCIE5 WLAN
+ device ref pcie_rp6 on end #PCIE6 WWAN
+ device ref pcie_rp8 on end #PCIE8 SD card
+ device ref pcie_rp9 on end #PCIE9-12 SSD
+ device ref uart0 on end
+ device ref gspi0 on end
+ device ref gspi1 on end
+ device ref pch_espi on
+ chip ec/google/chromeec
+ device pnp 0c09.0 on end
+ end
+ end
+ device ref hda on end
+ end
end
--
To view, visit https://review.coreboot.org/c/coreboot/+/48139
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia94119cb6d7eff6ea13c7d6a7dfd6ce891f706fd
Gerrit-Change-Number: 48139
Gerrit-PatchSet: 1
Gerrit-Owner: EricR Lai <ericr_lai(a)compal.corp-partner.google.com>
Gerrit-MessageType: newchange
EricR Lai has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/48153 )
Change subject: soc/intel/alderlake: Align chipset.cb with pci_devs.h
......................................................................
soc/intel/alderlake: Align chipset.cb with pci_devs.h
Refer pci_devs.h naming to align chipset.cb.
Correct thc0, thc1 and add cnvi_bt.
Signed-off-by: Eric Lai <ericr_lai(a)compal.corp-partner.google.com>
Change-Id: Iac33983dc12ed4e5b9257c50d82adc8e4e728ad6
---
M src/soc/intel/alderlake/chipset.cb
1 file changed, 9 insertions(+), 8 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/53/48153/1
diff --git a/src/soc/intel/alderlake/chipset.cb b/src/soc/intel/alderlake/chipset.cb
index ff81560..de880e3 100644
--- a/src/soc/intel/alderlake/chipset.cb
+++ b/src/soc/intel/alderlake/chipset.cb
@@ -13,18 +13,19 @@
device pci 08.0 alias gna off end
device pci 09.0 alias north_tracehub off end
device pci 0a.0 alias crashlog off end
- device pci 0d.0 alias north_xhci off end
- device pci 0d.1 alias north_xdci off end
- device pci 0d.2 alias tbt_dma0 off end
- device pci 0d.3 alias tbt_dma1 off end
+ device pci 0d.0 alias tcss_xhci off end
+ device pci 0d.1 alias tcss_xdci off end
+ device pci 0d.2 alias tcss_dma0 off end
+ device pci 0d.3 alias tcss_dma1 off end
device pci 0e.0 alias vmd off end
- device pci 10.6 alias thc0 off end
- device pci 10.7 alias thc1 off end
+ device pci 10.0 alias thc0 off end
+ device pci 10.1 alias thc1 off end
+ device pci 10.2 alias cnvi_bt off end
device pci 12.0 alias ish off end
device pci 12.6 alias gspi2 off end
device pci 13.0 alias gspi3 off end
- device pci 14.0 alias south_xhci off end
- device pci 14.1 alias south_xdci off end
+ device pci 14.0 alias xhci off end
+ device pci 14.1 alias usb_otg off end
device pci 14.2 alias shared_sram off end
device pci 14.3 alias cnvi_wifi off end
device pci 15.0 alias i2c0 off end
--
To view, visit https://review.coreboot.org/c/coreboot/+/48153
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iac33983dc12ed4e5b9257c50d82adc8e4e728ad6
Gerrit-Change-Number: 48153
Gerrit-PatchSet: 1
Gerrit-Owner: EricR Lai <ericr_lai(a)compal.corp-partner.google.com>
Gerrit-MessageType: newchange