diff options
| author | Jisheng Zhang <[email protected]> | 2023-07-18 15:22:14 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2023-08-23 21:22:01 +0000 |
| commit | f51f7a0fc2f4a6cd786327f485e5aba4c9006866 (patch) | |
| tree | 2bc04d008963fe585807fb0fa3677ba727fea746 /tools/perf/scripts/python/task-analyzer.py | |
| parent | riscv: allow kmalloc() caches aligned to the smallest value (diff) | |
| download | kernel-f51f7a0fc2f4a6cd786327f485e5aba4c9006866.tar.gz kernel-f51f7a0fc2f4a6cd786327f485e5aba4c9006866.zip | |
riscv: enable DMA_BOUNCE_UNALIGNED_KMALLOC for !dma_coherent
With the DMA bouncing of unaligned kmalloc() buffers now in place,
enable it for riscv when RISCV_DMA_NONCOHERENT=y to allow the
kmalloc-{8,16,32,96} caches. Since RV32 doesn't enable SWIOTLB
yet, and I didn't see any dma noncoherent RV32 platforms in the
mainline, so skip RV32 now by only enabling
DMA_BOUNCE_UNALIGNED_KMALLOC if SWIOTLB is available. Once we see
such requirement on RV32, we can enable it then.
NOTE: we didn't force to create the swiotlb buffer even when the
end of RAM is within the 32-bit physical address range. That's to
say:
For RV64 with > 4GB memory, the feature is enabled.
For RV64 with <= 4GB memory, the feature isn't enabled by default. We
rely on users to pass "swiotlb=mmnn,force" where mmnn is the Number of
I/O TLB slabs, see kernel-parameters.txt for details.
Tested on Sipeed Lichee Pi 4A with 8GB DDR and Sipeed M1S BL808 Dock
board.
Signed-off-by: Jisheng Zhang <[email protected]>
Reviewed-by: Conor Dooley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
