summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorAtish Patra <atish.patra@wdc.com>2019-03-06 05:03:27 +0300
committerAnup Patel <anup@brainfault.org>2019-03-07 05:37:18 +0300
commitb225583881c82eaab3059af9277c091432d50266 (patch)
treeb4261f2bd35af68233d9cbacd5238750bd59b1f8 /firmware
parent69d794cbcbab9ad50e090b06fd7ff6fd2b7b8315 (diff)
downloadopensbi-b225583881c82eaab3059af9277c091432d50266.tar.xz
firmware: Add nop to reduce bus traffic.
All the non-boot harts run in a tight loop which may cause a heavy load on the memory bus. This may delay the boot hart to complete the cold boot process. Introduce few nop that will ease up the traffic. Signed-off-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'firmware')
-rw-r--r--firmware/fw_base.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/fw_base.S b/firmware/fw_base.S
index 9b525cc..dccaef1 100644
--- a/firmware/fw_base.S
+++ b/firmware/fw_base.S
@@ -116,6 +116,10 @@ _fdt_reloc_done:
_wait_for_boot_hart:
la a4, _boot_hart_done
REG_L a5, (a4)
+ /* Reduce the bus traffic so that boot hart may proceed faster */
+ nop
+ nop
+ nop
beqz a5, _wait_for_boot_hart
_start_warm: