Rob Barnes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45264 )
Change subject: mb/google/zork: Add woomax memory ID 0
......................................................................
mb/google/zork: Add woomax memory ID 0
Woomax needs memory ID 0 to map to MT40A512M16TB-062E:J.
BUG=b:165611555
TEST=None
Signed-off-by: Rob Barnes <robbarnes(a)google.com>
Change-Id: Ibbcef6be382bd6649c93cfe92427f124dd137112
---
M src/mainboard/google/zork/variants/woomax/spd/Makefile.inc
M src/mainboard/google/zork/variants/woomax/spd/dram_id.generated.txt
M src/mainboard/google/zork/variants/woomax/spd/mem_parts_used.txt
3 files changed, 3 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/64/45264/1
diff --git a/src/mainboard/google/zork/variants/woomax/spd/Makefile.inc b/src/mainboard/google/zork/variants/woomax/spd/Makefile.inc
index dd877fd..91ef5e5 100644
--- a/src/mainboard/google/zork/variants/woomax/spd/Makefile.inc
+++ b/src/mainboard/google/zork/variants/woomax/spd/Makefile.inc
@@ -2,7 +2,7 @@
## This is an auto-generated file. Do not edit!!
SPD_SOURCES =
-SPD_SOURCES += ddr4-spd-empty.hex # ID = 0(0b0000)
+SPD_SOURCES += ddr4-spd-1.hex # ID = 0(0b0000) Parts = MT40A512M16TB-062E:J
SPD_SOURCES += ddr4-spd-1.hex # ID = 1(0b0001) Parts = H5AN8G6NCJR-XNC
SPD_SOURCES += ddr4-spd-empty.hex # ID = 2(0b0010)
SPD_SOURCES += ddr4-spd-empty.hex # ID = 3(0b0011)
diff --git a/src/mainboard/google/zork/variants/woomax/spd/dram_id.generated.txt b/src/mainboard/google/zork/variants/woomax/spd/dram_id.generated.txt
index 7d40e2a..c0583f4 100644
--- a/src/mainboard/google/zork/variants/woomax/spd/dram_id.generated.txt
+++ b/src/mainboard/google/zork/variants/woomax/spd/dram_id.generated.txt
@@ -1,4 +1,5 @@
DRAM Part Name ID to assign
+MT40A512M16TB-062E:J 0 (0000)
H5AN8G6NCJR-XNC 1 (0001)
MT40A512M16TB-062E:J 8 (1000)
H5AN8G6NCJR-XNC 9 (1001)
diff --git a/src/mainboard/google/zork/variants/woomax/spd/mem_parts_used.txt b/src/mainboard/google/zork/variants/woomax/spd/mem_parts_used.txt
index 625a8d0..65988e9 100644
--- a/src/mainboard/google/zork/variants/woomax/spd/mem_parts_used.txt
+++ b/src/mainboard/google/zork/variants/woomax/spd/mem_parts_used.txt
@@ -7,6 +7,7 @@
# See util/spd_tools/ddr4/README.md for more details and instructions.
# Part Name, Fixed ID (optional)
+MT40A512M16TB-062E:J, 0
H5AN8G6NCJR-XNC, 1
MT40A512M16TB-062E:J, 8
H5AN8G6NCJR-XNC, 9
--
To view, visit https://review.coreboot.org/c/coreboot/+/45264
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibbcef6be382bd6649c93cfe92427f124dd137112
Gerrit-Change-Number: 45264
Gerrit-PatchSet: 1
Gerrit-Owner: Rob Barnes <robbarnes(a)google.com>
Gerrit-MessageType: newchange
Marshall Dawson has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45115 )
Change subject: soc/amd/picasso: Assign IOAPIC IDs using FSP
......................................................................
soc/amd/picasso: Assign IOAPIC IDs using FSP
Add a Kconfig symbol to use for the FCH and GNB IOAPIC IDs, then pass
the info to FSP to keep it in sync. The assignment assumes that the
FCH IOAPIC is set to CONFIG_MAX_CPUS and the GNB one is the next
higher.
BUG=b:167421913, b:166519072
TEST=Boot Morphius and verify settings
BRANCH=Zork
Signed-off-by: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Change-Id: I57d3d6b2ebd8b5d511dbcb4324ea065cc3111a2d
---
M src/soc/amd/picasso/Kconfig
M src/soc/amd/picasso/acpi.c
M src/soc/amd/picasso/fsp_params.c
3 files changed, 16 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/15/45115/1
diff --git a/src/soc/amd/picasso/Kconfig b/src/soc/amd/picasso/Kconfig
index ec5ff76..4a3082b 100644
--- a/src/soc/amd/picasso/Kconfig
+++ b/src/soc/amd/picasso/Kconfig
@@ -243,6 +243,14 @@
hex
default 0xfef00000
+config PICASSO_IOAPIC_IDS
+ hex
+ default MAX_CPUS
+ help
+ The Picasso APU has two IOAPICs, one in the FCH and one in the
+ northbridge. Set this value for the intended ID to assign to the
+ FCH IOAPIC. The northbridge's one will be the next higher ID.
+
config SERIRQ_CONTINUOUS_MODE
bool
default n
diff --git a/src/soc/amd/picasso/acpi.c b/src/soc/amd/picasso/acpi.c
index 1b9c0ca..0f1a4c2 100644
--- a/src/soc/amd/picasso/acpi.c
+++ b/src/soc/amd/picasso/acpi.c
@@ -51,7 +51,7 @@
/* Write Kern IOAPIC, only one */
current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *)current,
- CONFIG_MAX_CPUS, IO_APIC_ADDR, 0);
+ CONFIG_PICASSO_IOAPIC_IDS, IO_APIC_ADDR, 0);
/* 0: mean bus 0--->ISA */
/* 0: PIC 0 */
diff --git a/src/soc/amd/picasso/fsp_params.c b/src/soc/amd/picasso/fsp_params.c
index 1dbb8e5..aeccfca 100644
--- a/src/soc/amd/picasso/fsp_params.c
+++ b/src/soc/amd/picasso/fsp_params.c
@@ -122,6 +122,12 @@
}
}
+static void fsp_assign_ioapic_ids(FSP_S_CONFIG *scfg)
+{
+ scfg->fch_ioapic_id = CONFIG_PICASSO_IOAPIC_IDS;
+ scfg->gnb_ioapic_id = CONFIG_PICASSO_IOAPIC_IDS + 1;
+}
+
void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd)
{
const struct soc_amd_picasso_config *cfg;
@@ -130,5 +136,6 @@
cfg = config_of_soc();
fsps_update_emmc_config(scfg, cfg);
fsp_fill_pcie_ddi_descriptors(scfg);
+ fsp_assign_ioapic_ids(scfg);
fsp_usb_oem_customization(scfg, cfg);
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/45115
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I57d3d6b2ebd8b5d511dbcb4324ea065cc3111a2d
Gerrit-Change-Number: 45115
Gerrit-PatchSet: 1
Gerrit-Owner: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-MessageType: newchange
Caveh Jalali has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45232 )
Change subject: drivers/spi/tpm: Improve error checking
......................................................................
Patch Set 3:
(1 comment)
> Patch Set 2:
>
> lgtm, I am just curious where the 2 minute wait was and how does this help to avoid it.
the 2 minute wait is in wait_for_status() (same file).
with error checking, we bail out of tpm2_process_command()
earlier so we never reach the point where wait_for_status()
is called.
https://review.coreboot.org/c/coreboot/+/45232/2/src/drivers/spi/tpm/tpm.c
File src/drivers/spi/tpm/tpm.c:
https://review.coreboot.org/c/coreboot/+/45232/2/src/drivers/spi/tpm/tpm.c@…
PS2, Line 729: return 1;
> nit: blank line before return
Done
--
To view, visit https://review.coreboot.org/c/coreboot/+/45232
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia8a1202000abce1857ee694b06b1478e6b045069
Gerrit-Change-Number: 45232
Gerrit-PatchSet: 3
Gerrit-Owner: Caveh Jalali <caveh(a)chromium.org>
Gerrit-Reviewer: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Reviewer: Duncan Laurie <dlaurie(a)chromium.org>
Gerrit-Reviewer: Jes Klinke <jbk(a)chromium.org>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: Vadim Bendebury <vbendeb(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Fri, 11 Sep 2020 04:34:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-MessageType: comment