[coreboot-gerrit] Patch set updated for coreboot: drivers/intel/fsp2_0: Update the debug levels
Lee Leahy (leroy.p.leahy@intel.com)
gerrit at coreboot.org
Tue Aug 2 02:32:04 CEST 2016
Lee Leahy (leroy.p.leahy at intel.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16003
-gerrit
commit dbeb928d77bc558052424a719dcab1fc9dc5515f
Author: Lee Leahy <leroy.p.leahy at intel.com>
Date: Sun Jul 31 16:49:28 2016 -0700
drivers/intel/fsp2_0: Update the debug levels
Choose appropriate debug levels for the various messages in the FSP
driver. Change:
* BIOS_DEBUG --> BIOS_SPEW: Normal FSP driver output level, allows
builder to disable FSP driver output by selecting
CONFIG_DEFAULT_CONSOLE_LOGLEVEL_7
* BIOS_ERROR --> BIOS_CRIT: These errors will prevent coreboot and the
payload from successfully booting
TEST=Build and run on Galileo Gen2
Change-Id: Ic3352de2022e16482bf47fc953aedeef8f0c2880
Signed-off-by: Lee Leahy <leroy.p.leahy at intel.com>
---
src/drivers/intel/fsp2_0/memory_init.c | 6 +++---
src/drivers/intel/fsp2_0/util.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/drivers/intel/fsp2_0/memory_init.c b/src/drivers/intel/fsp2_0/memory_init.c
index 63c5d04..23a4392 100644
--- a/src/drivers/intel/fsp2_0/memory_init.c
+++ b/src/drivers/intel/fsp2_0/memory_init.c
@@ -144,7 +144,7 @@ static enum cb_err check_region_overlap(const struct memranges *ranges,
continue;
if (begin >= range_entry_end(r))
continue;
- printk(BIOS_ERR, "'%s' overlaps currently running program: "
+ printk(BIOS_CRIT, "'%s' overlaps currently running program: "
"[%p, %p)\n", description, (void *)begin, (void *)end);
return CB_ERR;
}
@@ -272,7 +272,7 @@ static enum cb_err load_fspm_xip(struct fsp_header *hdr,
base = rdev_mmap_full(rdev);
if ((uintptr_t)base != hdr->image_base) {
- printk(BIOS_ERR, "FSPM XIP base does not match: %p vs %p\n",
+ printk(BIOS_CRIT, "FSPM XIP base does not match: %p vs %p\n",
(void *)(uintptr_t)hdr->image_base, base);
return CB_ERR;
}
@@ -295,7 +295,7 @@ void fsp_memory_init(bool s3wake)
struct range_entry freeranges[2];
if (cbfs_boot_locate(&file_desc, name, NULL)) {
- printk(BIOS_ERR, "Could not locate %s in CBFS\n", name);
+ printk(BIOS_CRIT, "Could not locate %s in CBFS\n", name);
die("FSPM not available!\n");
}
diff --git a/src/drivers/intel/fsp2_0/util.c b/src/drivers/intel/fsp2_0/util.c
index bab0601..3fe2f9f 100644
--- a/src/drivers/intel/fsp2_0/util.c
+++ b/src/drivers/intel/fsp2_0/util.c
@@ -68,13 +68,13 @@ enum cb_err fsp_validate_component(struct fsp_header *hdr,
membase = rdev_mmap(rdev, FSP_HDR_OFFSET, FSP_HDR_LEN);
if (membase == NULL) {
- printk(BIOS_ERR, "Could not mmap() FSP header.\n");
+ printk(BIOS_CRIT, "Could not mmap() FSP header.\n");
return CB_ERR;
}
if (fsp_identify(hdr, membase) != CB_SUCCESS) {
rdev_munmap(rdev, membase);
- printk(BIOS_ERR, "No valid FSP header\n");
+ printk(BIOS_CRIT, "No valid FSP header\n");
return CB_ERR;
}
@@ -85,7 +85,7 @@ enum cb_err fsp_validate_component(struct fsp_header *hdr,
/* Check if size specified in the header matches the cbfs file size */
if (region_device_sz(rdev) < hdr->image_size) {
- printk(BIOS_ERR, "Component size bigger than cbfs file.\n");
+ printk(BIOS_CRIT, "Component size bigger than cbfs file.\n");
return CB_ERR;
}
More information about the coreboot-gerrit
mailing list