Arthur Heymans has uploaded a new patch set (#2). ( https://review.coreboot.org/23695 )
Change subject: driver/spi: Warn when probed SF size differs from CONFIG_ROM_SIZE
......................................................................
driver/spi: Warn when probed SF size differs from CONFIG_ROM_SIZE
Some assumptions are made with respect to CONFIG_ROM_SIZE being the
actual size of the boot medium, e.g. when automatically creating an
fmap with and RW_MRC_CACHE region. With this patch the user is
warned when this is detected.
Change-Id: Ib5d6cc61ea29214d338d4c52ff799d6620a9cac7
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/drivers/spi/spi_flash.c
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/23695/2
--
To view, visit https://review.coreboot.org/23695
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ib5d6cc61ea29214d338d4c52ff799d6620a9cac7
Gerrit-Change-Number: 23695
Gerrit-PatchSet: 2
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/23695
Change subject: driver/spi: Warn when probed SF size differs from CONFIG_ROM_SIZE
......................................................................
driver/spi: Warn when probed SF size differs from CONFIG_ROM_SIZE
Some assumptions are made with respect to CONFIG_ROM_SIZE being the
actual size of the boot medium, e.g. when automatically creating an
fmap with and RW_MRC_CACHE region. It is therefore a good to warn the
user when this is not the case.
Change-Id: Ib5d6cc61ea29214d338d4c52ff799d6620a9cac7
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/drivers/spi/spi_flash.c
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/23695/1
diff --git a/src/drivers/spi/spi_flash.c b/src/drivers/spi/spi_flash.c
index 93335de..b166d2a 100644
--- a/src/drivers/spi/spi_flash.c
+++ b/src/drivers/spi/spi_flash.c
@@ -374,6 +374,10 @@
printk(BIOS_INFO, "SF: Detected %s with sector size 0x%x, total 0x%x\n",
flash->name, flash->sector_size, flash->size);
+ if (flash->size != CONFIG_ROM_SIZE)
+ printk(BIOS_ERR, "SF size 0x%x does not correspond to"
+ " CONFIG_ROM_SIZE 0x%x!!", flash->size,
+ CONFIG_ROM_SIZE);
return 0;
}
--
To view, visit https://review.coreboot.org/23695
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib5d6cc61ea29214d338d4c52ff799d6620a9cac7
Gerrit-Change-Number: 23695
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Mike Banon has uploaded this change for review. ( https://review.coreboot.org/23692
Change subject: southbridge/amd/agesa/hudson: don't put apu/amdfw without blobs to CBFS
......................................................................
southbridge/amd/agesa/hudson: don't put apu/amdfw without blobs to CBFS
Currently, when no blobs are selected, empty apu/amdfw area (full of 0xFF)
is being included to the CBFS - thus wasting 4096 bytes. After this commit
apu/amdfw will be created only if there are blobs chosen to be installed
Change-Id: I3b8c796ccceec4abc1f16fee9111caf1ec5eb892
Signed-off-by: Mike Banon <mikebdp2(a)gmail.com>
---
M src/southbridge/amd/agesa/hudson/Makefile.inc
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/92/23692/1
diff --git a/src/southbridge/amd/agesa/hudson/Makefile.inc b/src/southbridge/amd/agesa/hudson/Makefile.inc
index 2bf6f02..4ac48f3 100644
--- a/src/southbridge/amd/agesa/hudson/Makefile.inc
+++ b/src/southbridge/amd/agesa/hudson/Makefile.inc
@@ -48,6 +48,8 @@
pci$(stripped_ahci_rom_id).rom-required := Hudson AHCI Option ROM (Contact your AMD representative)
endif
+ifneq ($(CONFIG_HUDSON_XHCI_FWM_FILE)$(CONFIG_HUDSON_IMC_FWM_FILE)$(CONFIG_HUDSON_GEC_FWM_FILE),)
+
add_opt_prefix=$(if $(call strip_quotes, $(1)), $(2) $(call strip_quotes, $(1)), )
OPT_HUDSON_XHCI_FWM_FILE=$(call add_opt_prefix, $(CONFIG_HUDSON_XHCI_FWM_FILE), --xhci)
@@ -71,3 +73,5 @@
apu/amdfw-file := $(obj)/amdfw.rom
apu/amdfw-position := $(HUDSON_FWM_POSITION)
apu/amdfw-type := raw
+
+endif
--
To view, visit https://review.coreboot.org/23692
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3b8c796ccceec4abc1f16fee9111caf1ec5eb892
Gerrit-Change-Number: 23692
Gerrit-PatchSet: 1
Gerrit-Owner: Mike Banon <mikebdp2(a)gmail.com>