diff options
| author | Lad Prabhakar <[email protected]> | 2023-08-16 23:23:36 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2023-09-01 16:07:46 +0000 |
| commit | 935730160738a478dbf4b61cf0cfc29c1442fb4e (patch) | |
| tree | 9aee1699d9a4479b4ac70ec4b2629636a1ce5df6 /tools/perf/builtin-script.c | |
| parent | riscv: dma-mapping: skip invalidation before bidirectional DMA (diff) | |
| download | kernel-935730160738a478dbf4b61cf0cfc29c1442fb4e.tar.gz kernel-935730160738a478dbf4b61cf0cfc29c1442fb4e.zip | |
riscv: dma-mapping: switch over to generic implementation
Add helper functions for cache wback/inval/clean and use them
arch_sync_dma_for_device()/arch_sync_dma_for_cpu() functions. The proposed
changes are in preparation for switching over to generic implementation.
Reorganization of the code is based on the patch (Link[0]) from Arnd.
For now I have dropped CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU check as this
will be enabled by default upon selection of RISCV_DMA_NONCOHERENT
and also dropped arch_dma_mark_dcache_clean().
Link[0]: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Lad Prabhakar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions
