Kyösti Mälkki has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33735 )
Change subject: mb/emulation/qemu-riscv: Use generic 8250 uart driver
......................................................................
Patch Set 1:
The change brings in dependency of udelay(), so printk() before mtime_init() in riscv/mcall.c:hls_init() is wrong. It's BIOS_SPEW and UART code may never actually reach the udelay(), but there's a possible die() there in the path for this case.
Looking into riscv/arch_timer.c:timer_monotonic_get(), HLS()->time seems uninitialized and probably does not reference the intended hardware register SIFIVE_TIME_BASE (yet).
Also, I see SIFIVE_CLINT_TIMEBASE_FREQ 10+E6 in QEMU, assuming 10 MHz or 1/10 us per tick.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/33735
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6efda913fa39e0cfa466b52c570572aca90dacdf
Gerrit-Change-Number: 33735
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Reviewer: Jonathan Neuschäfer
j.neuschaefer@gmx.net
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Reviewer: Philipp Hug
philipp@hug.cx
Gerrit-Reviewer: Xiang Wang
wxjstz@126.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Reviewer: ron minnich
rminnich@gmail.com
Gerrit-CC: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-CC: Patrick Rudolph
siro@das-labor.org
Gerrit-Comment-Date: Sun, 23 Jun 2019 20:26:24 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment