freenode/#mezzano - IRC Chatlog
Search
12:49:52
fittestbits__
I setup a USB bulk transfer operation in memory, then tell the USB controller there's work to do.
12:50:42
fittestbits__
It looks like the controller checks memory before the data structures are update and doesn't see any work to do.
12:51:43
fittestbits__
If I tell the controller there's work to do from a REPL, it completes the operation and things proceed as normal.
12:52:12
fittestbits__
This occurs once in many transfers, so things go along fine, then seem to hang.
12:53:17
fittestbits__
I put a sleep 0.01 between writing the data structures and notifying the controller and got my file system test to run 5 times without hanging.
12:53:44
fittestbits__
Without the sleep, I haven't been able to get the test to run once without hanging.
12:55:19
fittestbits__
I tried created an function that does an SFENCE instruction and put that before notifying the controller but that didn't fix the problem.
12:58:04
fittestbits__
I guess I'm looking for suggestions on how to proceed. Using sleep 0.01 as a work around really hurts performance.