Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/63624 )
Change subject: soc/intel/cmn/fast_spi: Add API to check if SPI Cycle In Progress
......................................................................
soc/intel/cmn/fast_spi: Add API to check if SPI Cycle In Progress
This patch creates a helper function to check if any SPI transaction
is pending.
As per Intel PCH BIOS spec section 3.6 Flash Security Recommendation,
it's important to ensure there is no pending SPI transaction before
setting SPI lock bits.
BUG=b:211954778
TEST=Able to build google/brya with this patch and no error msg seen
due to `SPI transaction is pending`.
Signed-off-by: Subrata Banik <subratabanik(a)google.com>
Change-Id: Ibd3f67ae60bfcb3610cd0950b057da97ff74b5b9
---
M src/soc/intel/common/block/fast_spi/fast_spi_flash.c
M src/soc/intel/common/block/include/intelblocks/fast_spi.h
2 files changed, 13 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/63624/1
diff --git a/src/soc/intel/common/block/fast_spi/fast_spi_flash.c b/src/soc/intel/common/block/fast_spi/fast_spi_flash.c
index 269db63..155bc9e 100644
--- a/src/soc/intel/common/block/fast_spi/fast_spi_flash.c
+++ b/src/soc/intel/common/block/fast_spi/fast_spi_flash.c
@@ -161,6 +161,17 @@
return wait_for_hwseq_xfer(ctx, flash_addr);
}
+int fast_spi_cycle_in_progress(void)
+{
+ BOILERPLATE_CREATE_CTX(ctx);
+
+ enum errors ret = wait_for_hwseq_spi_cycle_complete(ctx);
+ if (ret != SUCCESS)
+ printk(BIOS_ERR, "SPI transaction is pending\n");
+
+ return ret;
+}
+
/*
* Ensure read/write xfer len is not greater than SPIBAR_FDATA_FIFO_SIZE and
* that the operation does not cross page boundary.
diff --git a/src/soc/intel/common/block/include/intelblocks/fast_spi.h b/src/soc/intel/common/block/include/intelblocks/fast_spi.h
index a903ea83..eb3f2aa 100644
--- a/src/soc/intel/common/block/include/intelblocks/fast_spi.h
+++ b/src/soc/intel/common/block/include/intelblocks/fast_spi.h
@@ -5,6 +5,8 @@
#include <types.h>
+/* Check if SPI transaction is pending */
+int fast_spi_cycle_in_progress(void);
/*
* Disable the BIOS write protect and Enable Prefetching and Caching.
*/
--
To view, visit https://review.coreboot.org/c/coreboot/+/63624
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibd3f67ae60bfcb3610cd0950b057da97ff74b5b9
Gerrit-Change-Number: 63624
Gerrit-PatchSet: 1
Gerrit-Owner: Subrata Banik <subratabanik(a)google.com>
Gerrit-MessageType: newchange
Attention is currently required from: Wonkyu Kim, Angel Pons.
Hello build bot (Jenkins), Subrata Banik, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/63615
to look at the new patch set (#3).
Change subject: intel/common/../systemagent: Enable MCHBAR in bootblock
......................................................................
intel/common/../systemagent: Enable MCHBAR in bootblock
MCHBAR is enabled from romstage so far while new SOC like Meteorlake
uses MCHBAR in GPMR driver from bootblock. As there is no harm to enable
MCHBAR from bootblock even in existing plaforms, enabling it from
bootblock in common code.
TEST=boot to OS in TGL RVP and MTL PSS
Signed-off-by: Wonkyu Kim <wonkyu.kim(a)intel.com>
Change-Id: Ie4c7af3ea8c2b2b6afcc76e1165fadbe15e0bceb
---
M src/soc/intel/common/block/systemagent/systemagent_early.c
1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/15/63615/3
--
To view, visit https://review.coreboot.org/c/coreboot/+/63615
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ie4c7af3ea8c2b2b6afcc76e1165fadbe15e0bceb
Gerrit-Change-Number: 63615
Gerrit-PatchSet: 3
Gerrit-Owner: Wonkyu Kim <wonkyu.kim(a)intel.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Wonkyu Kim <wonkyu.kim(a)intel.com>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: Frank Wu, John Su, YH Lin, Dtrain Hsu, Ian Feng, Tim Wawrzynczak, Nick Vaccaro, Amanda Hwang.
Eric Lai has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/63622 )
Change subject: mb/google/brya/var/banshee: add the smbus addr for dimm1
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
Please elaborate why MRC training again. IIUC, banshee only have 2 MC.
--
To view, visit https://review.coreboot.org/c/coreboot/+/63622
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I708d6c3f7976891b1178e43449168090e215d122
Gerrit-Change-Number: 63622
Gerrit-PatchSet: 1
Gerrit-Owner: Frank Wu <frank_wu(a)compal.corp-partner.google.com>
Gerrit-Reviewer: Amanda Hwang <amanda_hwang(a)compal.corp-partner.google.com>
Gerrit-Reviewer: Dtrain Hsu <dtrain_hsu(a)compal.corp-partner.google.com>
Gerrit-Reviewer: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Ian Feng <ian_feng(a)compal.corp-partner.google.com>
Gerrit-Reviewer: John Su <john_su(a)compal.corp-partner.google.com>
Gerrit-Reviewer: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: YH Lin <yueherngl(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Van Chen <van_chen(a)compal.corp-partner.google.com>
Gerrit-Attention: Frank Wu <frank_wu(a)compal.corp-partner.google.com>
Gerrit-Attention: John Su <john_su(a)compal.corp-partner.google.com>
Gerrit-Attention: YH Lin <yueherngl(a)google.com>
Gerrit-Attention: Dtrain Hsu <dtrain_hsu(a)compal.corp-partner.google.com>
Gerrit-Attention: Ian Feng <ian_feng(a)compal.corp-partner.google.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Attention: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-Attention: Amanda Hwang <amanda_hwang(a)compal.corp-partner.google.com>
Gerrit-Comment-Date: Thu, 14 Apr 2022 06:39:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Frank Wu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/63622 )
Change subject: mb/google/brya/var/banshee: add the smbus addr for dimm1
......................................................................
mb/google/brya/var/banshee: add the smbus addr for dimm1
Align the setting with the adlrvp.
BUG=b:213964936
BRANCH=firmware-brya-14505.B
TEST=emerge-brya coreboot chromeos-bootimage
The MRC training does not be performed again after rebooting.
Signed-off-by: Frank Wu <frank_wu(a)compal.corp-partner.google.com>
Change-Id: I708d6c3f7976891b1178e43449168090e215d122
---
M src/mainboard/google/brya/variants/banshee/memory.c
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/22/63622/1
diff --git a/src/mainboard/google/brya/variants/banshee/memory.c b/src/mainboard/google/brya/variants/banshee/memory.c
index 7371f57..deccf13 100644
--- a/src/mainboard/google/brya/variants/banshee/memory.c
+++ b/src/mainboard/google/brya/variants/banshee/memory.c
@@ -33,5 +33,7 @@
{
spd_info->topo = MEM_TOPO_DIMM_MODULE;
spd_info->smbus[0].addr_dimm[0] = 0x50;
+ spd_info->smbus[0].addr_dimm[1] = 0x51;
spd_info->smbus[1].addr_dimm[0] = 0x52;
+ spd_info->smbus[1].addr_dimm[1] = 0x53;
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/63622
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I708d6c3f7976891b1178e43449168090e215d122
Gerrit-Change-Number: 63622
Gerrit-PatchSet: 1
Gerrit-Owner: Frank Wu <frank_wu(a)compal.corp-partner.google.com>
Gerrit-MessageType: newchange