android_kernel_motorola_sm6375/kernel/dma
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mikulas Patocka 5a71f14a9b dma-debug: change allocation mode from GFP_NOWAIT to GFP_ATIOMIC
[ Upstream commit 84bc4f1dbbbb5f8aa68706a96711dccb28b518e5 ]

We observed the error "cacheline tracking ENOMEM, dma-debug disabled"
during a light system load (copying some files). The reason for this error
is that the dma_active_cacheline radix tree uses GFP_NOWAIT allocation -
so it can't access the emergency memory reserves and it fails as soon as
anybody reaches the watermark.

This patch changes GFP_NOWAIT to GFP_ATOMIC, so that it can access the
emergency memory reserves.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 18:11:28 +02:00
..
coherent.c dma-coherent: fix integer overflow in the reserved-memory dma allocation 2020-04-23 10:36:30 +02:00
contiguous.c
debug.c dma-debug: change allocation mode from GFP_NOWAIT to GFP_ATIOMIC 2022-06-14 18:11:28 +02:00
direct.c dma-direct: avoid redundant memory sync for swiotlb 2022-04-20 09:19:39 +02:00
dummy.c
Kconfig
Makefile
mapping.c
remap.c
swiotlb.c Reinstate some of "swiotlb: rework "fix info leak with DMA_FROM_DEVICE"" 2022-05-25 09:14:38 +02:00
virt.c