raiden00pl opened a new pull request, #22197:
URL: https://github.com/apache/nuttx/pull/22197
## Summary
The cores of a CTU CAN FD PCI card share one IRQ, and ctucanfd_interrupt()
disables the RX interrupts of all of them. The SocketCAN path re-enabled
them only in ctucanfd_sock_recv(), which runs only for a core with a
pending
RX frame. A core whose INT_STAT had no RX event and no sent buffer kept its
RX interrupts disabled until its next TX completion, so frames received in
the meantime were not delivered.
ctucanfd_sock_interrupt() now re-enables the RX interrupts of a core unless
RBNEI is pending; in that case ctucanfd_sock_recv() still re-enables them
once the RX buffer is drained.
## Impact
Only the SocketCAN path of the CTU CAN FD PCI driver
(CONFIG_CAN_CTUCANFD_SOCKET). The character driver path is not changed.
## Testing
qemu-intel64 (SMP) with two ctucan_pci cores on one CAN bus and a host
peer on the same bus, SocketCAN, ISO-TP transfers to the NuttX node:
- before: 11 transfer cases fail (single frame, multi-frame, concurrent
sessions): the node stops receiving frames and the transfers time out.
- after: the same 11 cases pass.
--
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]