Attention is currently required from: Philipp Hug, ron minnich.

Arthur Heymans has uploaded this change for review.

View Change

mb/emulation/riscv: Limit DRAM size

Qemu only limits 16GiB of address space and gets confused when probing
for addresses much higher. Therefore limit the amount of dram we wish to
probe.

Change-Id: Ib8555de361d1129d3d1995f056518c576f055515
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
---
M src/mainboard/emulation/qemu-riscv/Kconfig
1 file changed, 17 insertions(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/43/68843/1
diff --git a/src/mainboard/emulation/qemu-riscv/Kconfig b/src/mainboard/emulation/qemu-riscv/Kconfig
index 0af309a..5891595 100644
--- a/src/mainboard/emulation/qemu-riscv/Kconfig
+++ b/src/mainboard/emulation/qemu-riscv/Kconfig
@@ -44,9 +44,11 @@
int
default 1

+# Qemu maps MMIO at ALIGN_UP(top_of_mem, 16 * GiB)
+# To avoid confusing the dram probing algoritm, avoid large dram sizes (16G - 1m)
config DRAM_SIZE_MB
int
- default 32768
+ default 16383

config OPENSBI_PLATFORM
string

To view, visit change 68843. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib8555de361d1129d3d1995f056518c576f055515
Gerrit-Change-Number: 68843
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur@aheymans.xyz>
Gerrit-Reviewer: Philipp Hug <philipp@hug.cx>
Gerrit-Reviewer: ron minnich <rminnich@gmail.com>
Gerrit-Attention: Philipp Hug <philipp@hug.cx>
Gerrit-Attention: ron minnich <rminnich@gmail.com>
Gerrit-MessageType: newchange