Re: iMXRT usbdev endpoint allocation problem

2023-09-20 Thread Mårten Svanfeldt
errupt endpoints and although sized to 512 where reporting a max size of 1024 causing more fun memory overwrites. So it was because of memory overwrites. How would you suggest it be changed? David -Original Message- From: Mårten Svanfeldt Sent: Friday, September 15, 2023 4:23 AM To: dev@nutt

Re: epoll oddities following setup/teardown optimizations

2023-09-19 Thread Mårten Svanfeldt
plaining the reason for the failure). Use POLLOUT event to poll the non-connected nonblocking socket seems the right way instead of using POLLIN event. Could you try this ? Regrads Wang Bowen Mårten Svanfeldt 于2023年9月19日周二 19:17写道: > Hello, > > > I did some quick checking and it does in

Re: epoll oddities following setup/teardown optimizations

2023-09-19 Thread Mårten Svanfeldt
cted and pollsetup not re-ran when needed. Regards Marten Svanfeldt ____ From: 汪博文 Sent: Tuesday, September 19, 2023 12:11:27 PM To: Mårten Svanfeldt Cc: dev@nuttx.apache.org Subject: RE: epoll oddities following setup/teardown optimizations Hi, I has a fix fs_epoll: add critical section for teardown

epoll oddities following setup/teardown optimizations

2023-09-18 Thread Mårten Svanfeldt
Hi, Our software heavily relies on epoll based wait/event loops, using mixes of "real" FDs (mostly sockets), eventfd and timerfds, and after upgrading to Nuttx 12.2.1 I have some oddities in behaviour that I think can be traced to the optimizations in https://github.com/apache/nuttx/commit/25

iMXRT usbdev endpoint allocation problem

2023-09-15 Thread Mårten Svanfeldt
Hi, I'm in the process of updating our internal NuttX from version 10.1 to 12.2.1, and ran into some issues with usb device code on iMXRT. We have a device that exposes a custom class with a fixed endpoint mapping (the toolstack in the other end expects certain endpoint mappings, using ep1 an

Re: Socketcan reordered packets and packet stalls

2023-03-03 Thread Mårten Svanfeldt
Thanks for your input Peter, > The IMXRT SocketCAN driver is based on the S32K1XX driver which had limited > amount of mailboxes. > So they had to be cleared as quick as possible to make sure we don't drop > packets if all mailboxes get full. I did get that from the git history, however I hope w

Socketcan reordered packets and packet stalls

2023-03-03 Thread Mårten Svanfeldt
Hello, We are using Nuttx and its SocketCAN support (on top of iMXRT hardware), but have run into some problems related to packet reordering and also possible soft-locks/stalls in the rx side. The symptoms we have is that the upper layer, which is a isotp implementation, receives packets out