Richard Spiegel has uploaded this change for review. ( https://review.coreboot.org/22934
Change subject: soc/amd/common/block/pci: Fix validation of pointer
......................................................................
soc/amd/common/block/pci: Fix validation of pointer
Procedure write_pci_int_table() does not validates intr_data_ptr. It must
be validated together with picr_data_ptr and idx_name.
BUG=b:69868534
TEST=Build fake kahlee with intr_data_ptr not initialized, boot and see
error message. Than build correct kahlee and verify that error message
is gone.
Change-Id: I5ee9a362600dbd6325254d7431172501181b52b0
Signed-off-by: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
---
M src/soc/amd/common/block/pci/amd_pci_util.c
1 file changed, 4 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/34/22934/1
diff --git a/src/soc/amd/common/block/pci/amd_pci_util.c b/src/soc/amd/common/block/pci/amd_pci_util.c
index c5659cb..74bb533 100644
--- a/src/soc/amd/common/block/pci/amd_pci_util.c
+++ b/src/soc/amd/common/block/pci/amd_pci_util.c
@@ -59,11 +59,12 @@
const struct irq_idx_name *idx_name;
idx_name = sb_get_apic_reg_association(&limit);
- if (picr_data_ptr == NULL || idx_name == NULL) {
+ if (picr_data_ptr == NULL || intr_data_ptr == NULL ||
+ idx_name == NULL) {
printk(BIOS_ERR, "Warning: Can't write PCI_INTR 0xC00/0xC01"
" registers because\n"
- "'mainboard_picr_data' or"
- " irq_association' tables are NULL\n");
+ "'mainboard_picr_data' or 'mainboard_intr_data'"
+ " or 'irq_association'\ntables are NULL\n");
return;
}
--
To view, visit https://review.coreboot.org/22934
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: I5ee9a362600dbd6325254d7431172501181b52b0
Gerrit-Change-Number: 22934
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/22933
Change subject: drivers/mrc_cache: Make CACHE_MRC_SETTINGS not selectable
......................................................................
drivers/mrc_cache: Make CACHE_MRC_SETTINGS not selectable
Don't allow the user to select this manually, since it doesn't build
on platforms that don't use it.
Don't set the bool value so that it doesn't show as not selected in
the .config file of platforms that don't use this.
Change-Id: Icf026a297204868d485be270ccee7e0bec0ac73b
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/drivers/mrc_cache/Kconfig
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/22933/1
diff --git a/src/drivers/mrc_cache/Kconfig b/src/drivers/mrc_cache/Kconfig
index 3e0bdda..93ae6c6 100644
--- a/src/drivers/mrc_cache/Kconfig
+++ b/src/drivers/mrc_cache/Kconfig
@@ -1,6 +1,7 @@
config CACHE_MRC_SETTINGS
- bool "Save cached MRC settings"
- default n
+ bool
+ help
+ Save cached MRC settings
if CACHE_MRC_SETTINGS
--
To view, visit https://review.coreboot.org/22933
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: Icf026a297204868d485be270ccee7e0bec0ac73b
Gerrit-Change-Number: 22933
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>