- Inherit BUS_DMA_COHERENT flag from parent buses
- Use cacheable memory attributes on dma coherent platform
- Disable cache synchronization on coherent platform
Changes are based on ARMv8 busdma code and commit r299683.
Differential D11201
Introduce support for DMA coherent ARM platforms mw_semihalf.com on Jun 14 2017, 10:45 PM. Authored by Tags Referenced Files
Subscribers
Details
Changes are based on ARMv8 busdma code and commit r299683.
Diff Detail
Event TimelineComment Actions Is coherent IO a platform-wide thing? These changes imply that there could be a system with a mix of tags, some describing coherent memory and some not. But the code wouldn't actually work right in such a situation... bounce buffers are not allocated from special memory, but the code avoids cache ops on bounce buffers if the tag coherent flag is set. For mixed tags on the same platform to work, bounce buffers would have to be allocated from different pools depending on the tag flags.
Comment Actions Yes, coherent IO is a platform-wide feature. Comment Actions The DMAMAP_COHERENT flag does three things:
|