yangsong8-a1 opened a new pull request, #22504:
URL: https://github.com/apache/nuttx/pull/22504
## Summary
Add `drivers/reset/reset_ipc.c`, a standalone multicore panic/reset
coordination module (pause / panic / poweroff handshake over a pair of
shared status words plus an IPI) that multiple cross-core transports can
share. The mechanism is transport-agnostic: everything it needs from the
transport is abstracted behind `reset_ipc_ops_s`, leaving it a shared
status word pair and an IPI doorbell.
Each registered channel exposes the peer core to the reset framework as
a `reset_controller_dev` named after the peer cpu, and
`reset_ipc_register()` hands the caller a reset control on it. A channel
also brings its peer down when this core dies: each channel carries its
own panic and reboot notifier blocks, so the notifier chains themselves
are the list of channels and the module needs no list or lock of its own.
`RESET_IPC` selects `RESET` rather than depending on it, which leaves
`RESET` with no user that picks it directly, so `RESET` loses its prompt
and `RESET_RPMSG` selects it too. The only defconfig that sets
`CONFIG_RESET` by hand, `qemu-intel64:nxterm`, has no user of the
framework, so a separate commit drops the symbol from it.
No transport uses the module yet; it is dormant until a transport
registers a channel.
## Impact
New code plus Kconfig only; nothing in-tree selects `RESET_IPC` yet, so
no existing configuration changes behaviour. `CONFIG_RESET` becomes
selected-only.
Not covered: no SMP/BMP board was run with a real transport on top of
`reset_ipc`; that comes with the transport patches that follow.
## Testing
Host GCC, Ubuntu 22.04. `tools/checkpatch.sh` passes.
- `sim:nsh` with `CONFIG_RESET_IPC=y` (the Kconfig prompt is enabled
temporarily for the build, since nothing selects the module yet):
`reset_ipc.c` compiles clean, no new warnings.
- `qemu-intel64:nxterm`: not built locally, no x86_64 toolchain on this
host; the defconfig change only removes a line that `olddefconfig`
would drop anyway. CI covers this configuration.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]