We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 861370f commit b035f5aCopy full SHA for b035f5a
mm/slab_common.c
@@ -18,6 +18,7 @@
18
#include <linux/uaccess.h>
19
#include <linux/seq_file.h>
20
#include <linux/dma-mapping.h>
21
+#include <linux/swiotlb.h>
22
#include <linux/proc_fs.h>
23
#include <linux/debugfs.h>
24
#include <linux/kasan.h>
@@ -865,6 +866,10 @@ void __init setup_kmalloc_cache_index_table(void)
865
866
867
static unsigned int __kmalloc_minalign(void)
868
{
869
+#ifdef CONFIG_DMA_BOUNCE_UNALIGNED_KMALLOC
870
+ if (io_tlb_default_mem.nslabs)
871
+ return ARCH_KMALLOC_MINALIGN;
872
+#endif
873
return dma_get_cache_alignment();
874
}
875
0 commit comments