arm64-enable-arch_want_kmalloc_dma_bounce-for-arm64.patch removed from -mm tree
The quilt patch titled
Subject: arm64: enable ARCH_WANT_KMALLOC_DMA_BOUNCE for arm64
has been removed from the -mm tree. Its filename was
arm64-enable-arch_want_kmalloc_dma_bounce-for-arm64.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Catalin Marinas <[email protected]>
Subject: arm64: enable ARCH_WANT_KMALLOC_DMA_BOUNCE for arm64
Date: Mon, 12 Jun 2023 16:32:01 +0100
With the DMA bouncing of unaligned kmalloc() buffers now in place, enable it for arm64 to allow the kmalloc-{8,16,32,48,96} caches. In addition, always create the swiotlb buffer even when the end of RAM is within the 32-bit physical address range (the swiotlb buffer can still be disabled on the kernel command line).
---
arch/arm64/Kconfig | 1 + arch/arm64/mm/init.c | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-)
arch/arm64/Kconfig renamed from arch/arm64/Kconfig~arm64-enable-arch_want_kmalloc_dma_bounce-for-arm64 +1 -0
@@ -120,6 +120,7 @@ config ARM64 select CRC32 select DCACHE_WORD_ACCESS select DYNAMIC_FTRACE if FUNCTION_TRACER + select DMA_BOUNCE_UNALIGNED_KMALLOC select DMA_DIRECT_REMAP select EDAC_SUPPORT select FRAME_POINTER
arch/arm64/mm/init.c renamed from arch/arm64/mm/init.c~arm64-enable-arch_want_kmalloc_dma_bounce-for-arm64 +6 -1
@@ -442,7 +442,12 @@ void __init bootmem_init(void)*/ void __init mem_init (void ) { -swiotlb_init (max_pfn >PFN_DOWN (arm64_dma_phys_limit),SWIOTLB_VERBOSE ); +bool swiotlb = max_pfn >PFN_DOWN (arm64_dma_phys_limit); + +if (IS_ENABLED (CONFIG_DMA_BOUNCE_UNALIGNED_KMALLOC )) + swiotlb = true; + +swiotlb_init (swiotlb,SWIOTLB_VERBOSE );/* this will put all unused low memory onto the freelists */ memblock_free_all ();
_
Patches currently in -mm which might be from [email protected] are