xiaoxiang781216 edited a comment on pull request #4878:
URL: https://github.com/apache/incubator-nuttx/pull/4878#issuecomment-979227329


   @hartmannathan make a clear explanation here 
https://github.com/apache/incubator-nuttx/pull/4872:
   I haven't grokked exactly what the problem is in this particular instance, 
but one possible issue may occur if buffers are not aligned and padded to exact 
D-Cache line boundaries. From my hazy memory on H7 that's 32 bytes; don't know 
on F7. I have been bitten by this one in the past:
   
   Why an issue may occur: The "invalidate D-cache" operation basically means 
"delete the contents of those cache lines." If any other data besides the DMA 
buffers falls within those cache lines, e.g., variables, newer values of those 
variables which are in the cache and not yet written to RAM will be lost, 
leaving older stale values in RAM.


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