jlaitine commented on PR #20114:
URL: https://github.com/apache/nuttx/pull/20114#issuecomment-5634648640

   Thanks @PetervdPerk-NXP for your comments! I'll fix those things when moving 
forward. For the "bootloader" I wasn't sure where to place that. I will clean 
it up / split it somehow, and place the functionality under arch as you 
suggested!
   
   I started debugging the usb on M7, and I believe I found a bug in the cache 
management in imxrt_usb. Have you had issues with that? The fix is now mangled 
together with 118x specific fixes in  
https://github.com/apache/nuttx/pull/20114/changes/e6411a2bae370b009f8409ef56e0659b1254094a
   
   Basically, I think it is doing a cache invalidation with wrong address; I 
believe dtd->buffer0 shouldn't be used to invalidate the cache, but it should 
be done with the original buffer pointer stored in priv (the same way it is 
done in imx93 driver).
   
   Have you had issues with imxrt USB + write back cached memory? With 
up_invalidate_dcache done only after the transfer using the original start 
pointer, the usb is working for me in both m33 (currently xcache off) and in m7 
(dcache on with writeback).
   


-- 
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]

Reply via email to