Attention is currently required from: Hung-Te Lin. Jianjun Wang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/62934 )
Change subject: soc/mediatek/mt8195: Reserve memory to store PCIe timestamp ......................................................................
soc/mediatek/mt8195: Reserve memory to store PCIe timestamp
Reserve 8 byte space from SRAM to store the timestamp of PCIe.
TEST=Build pass and boot up to kernel successfully via SSD on Dojo board, here is the SSD information in boot log: == NVME IDENTIFY CONTROLLER DATA == PCI VID : 0x15b7 PCI SSVID : 0x15b7 SN : 21517J440114 MN : WDC PC SN530 SDBPTPZ-256G-1006 RAB : 0x4 AERL : 0x7 SQES : 0x66 CQES : 0x44 NN : 0x1 Identified NVMe model WDC PC SN530 SDBPTPZ-256G-1006
BUG=b:178565024
Signed-off-by: Jianjun Wang jianjun.wang@mediatek.com Change-Id: Ia97468742e144d8343f5c7ae6db7cb82a316cf5c --- M src/soc/mediatek/mt8195/include/soc/memlayout.ld M src/soc/mediatek/mt8195/include/soc/symbols.h 2 files changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/34/62934/1
diff --git a/src/soc/mediatek/mt8195/include/soc/memlayout.ld b/src/soc/mediatek/mt8195/include/soc/memlayout.ld index 5942776..7a05e3b 100644 --- a/src/soc/mediatek/mt8195/include/soc/memlayout.ld +++ b/src/soc/mediatek/mt8195/include/soc/memlayout.ld @@ -19,6 +19,10 @@ _ = ASSERT(size % 4K == 0, \ "DRAM DMA buffer should be multiple of smallest page size (4K)!");
+#define PCIE_TIMESTAMP(addr, size) \ + REGION(pcie_timestamp, addr, size, 4) \ + _ = ASSERT(size == 8, "PCIe timestamp should be exactly 8 byte!"); + SECTIONS { SRAM_START(0x00100000) @@ -26,6 +30,7 @@ TPM_TCPA_LOG(0x00103000, 2K) FMAP_CACHE(0x00103800, 2K) WATCHDOG_TOMBSTONE(0x00104000, 4) + PCIE_TIMESTAMP(0x00104004, 8) CBFS_MCACHE(0x00107c00, 8K) TIMESTAMP(0x00109c00, 1K) STACK(0x0010a000, 12K) diff --git a/src/soc/mediatek/mt8195/include/soc/symbols.h b/src/soc/mediatek/mt8195/include/soc/symbols.h index 76d9c6d..eeb466d 100644 --- a/src/soc/mediatek/mt8195/include/soc/symbols.h +++ b/src/soc/mediatek/mt8195/include/soc/symbols.h @@ -5,5 +5,6 @@ #include <symbols.h>
DECLARE_REGION(dram_dma) +DECLARE_REGION(pcie_timestamp)
#endif /* _SOC_MEDIATEK_MT8195_SYMBOLS_H_ */