Message ID | 20230718152214.2907-1-jszhang@kernel.org (mailing list archive) |
---|---|
Headers | show |
Series | riscv: Reduce ARCH_KMALLOC_MINALIGN to 8 | expand |
Hello: This series was applied to riscv/linux.git (for-next) by Palmer Dabbelt <palmer@rivosinc.com>: On Tue, 18 Jul 2023 23:22:12 +0800 you wrote: > Currently, riscv defines ARCH_DMA_MINALIGN as L1_CACHE_BYTES, I.E > 64Bytes, if CONFIG_RISCV_DMA_NONCOHERENT=y. To support unified kernel > Image, usually we have to enable CONFIG_RISCV_DMA_NONCOHERENT, thus > it brings some bad effects to coherent platforms: > > Firstly, it wastes memory, kmalloc-96, kmalloc-32, kmalloc-16 and > kmalloc-8 slab caches don't exist any more, they are replaced with > either kmalloc-128 or kmalloc-64. > > [...] Here is the summary with links: - [v3,1/2] riscv: allow kmalloc() caches aligned to the smallest value https://git.kernel.org/riscv/c/2926715163cf - [v3,2/2] riscv: enable DMA_BOUNCE_UNALIGNED_KMALLOC for !dma_coherent https://git.kernel.org/riscv/c/f51f7a0fc2f4 You are awesome, thank you!