Re: [PATCH v2 3/3] power: reset: Remove SpacemiT P1 reboot driver

From: Frédéric Mahé

Date: Tue Dec 01 2026 - 13:11:00 EST


Hi Anand,

Tested v2 on a Banana Pi BPI-F3, v7.4-rc5, with its vendor OpenSBI
(v1.0.3, SBI 1.0, no SRST extension). With all three patches, reboot
hangs after "reboot: Restarting system" and the board needs a power
cycle: 2/3 has nothing to register and 3/3 removed the only restart
handler. So, as Aurelien said, the P1 driver is still needed as a
fallback on boards with this firmware.

With 1/3 and 2/3 only, reboot works (3/3). Each reboot still warns
"Voluntary context switch within RCU read-side critical section" from
spacemit_p1_restart_handler(); that one is fixed by Troy's "riscv:
disable local interrupts and stop other CPUs before reboot/shutdown"
v5, and with it added 3/3 reboots are clean. The bus reset path changed
by 1/3 was not hit (no stuck bus).
Testing done with the help of Claude (AI assistant).

For 1/3 and 2/3:
Tested-by: Frédéric Mahé <frederic.mahe@xxxxxxxx> # BPI-F3

Frédéric