This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 1b127c52ebb47e77979197f20da3fc136a2c62c8 Author: Bowen Wang <[email protected]> AuthorDate: Tue May 26 21:20:32 2026 +0800 drivers/rptun: do not reset when a PAUSE is not followed by a PANIC After a PAUSE the core waits up to CONFIG_RPTUN_STATUS_TIMEOUT_MS for the PANIC. When none came it fell through to the generic reset path with the PAUSE bit as the reason and rebooted, although the peer had not asked for a reset. Log the timeout and return instead; lstatus keeps the PAUSE from being waited for again, and a later PANIC is still handled. Signed-off-by: Bowen Wang <[email protected]> --- drivers/rptun/rptun.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/rptun/rptun.c b/drivers/rptun/rptun.c index 5df942aea0a..889b1a9ab18 100644 --- a/drivers/rptun/rptun.c +++ b/drivers/rptun/rptun.c @@ -993,6 +993,13 @@ static void rptun_check_peer_status(FAR struct rptun_priv_s *priv) status = rptun_get_peer_status(priv); up_udelay(1000); } + + if (!RPTUN_STATUS_CHECK(status, BOARDIOC_SOFTRESETCAUSE_PANIC)) + { + _emerg("FATAL: Timeout waiting for remote core panic: %s\n", + RPTUN_GET_CPUNAME(priv->dev)); + return; + } } if (RPTUN_STATUS_CHECK(status, BOARDIOC_SOFTRESETCAUSE_PANIC))
