Revert "riscv: Add a Zalrsc-only alternative for synchronization in start.S"
authorYao Zi <ziyao@disroot.org>
Thu, 25 Sep 2025 16:01:48 +0000 (16:01 +0000)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 16 Oct 2025 08:36:37 +0000 (16:36 +0800)
commite6646b35f410c4ffbdb0f309d4dad1e16c1e4714
tree54972c45ab8a9696648db0dc7c5ef4024b47b5b3
parent2ba64e303b2706e5c42a6bf982326d632342ca66
Revert "riscv: Add a Zalrsc-only alternative for synchronization in start.S"

This reverts commit a681cfecb4346107212f377e2075f6eb1bdc6a2b.

It has been reported that the commit causes boot regression for SPL on
StarFive VisionFive 2 or compatible boards. Inspecting the code, I did
spot one logic error for deciding whether Zaamo or Zalrsc is used, and
it's still unclear what exactly causes the regression, let's revert it
for now.

Reported-by: E Shattow <e@freeshell.de>
Link: https://lore.kernel.org/u-boot/1871663e-b918-4351-9e9e-97f9a4c73733@freeshell.de/
Signed-off-by: Yao Zi <ziyao@disroot.org>
Acked-by: E Shattow <e@freeshell.de>
Acked-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/cpu/start.S