Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2fc0b347 authored by Patrick Daly's avatar Patrick Daly
Browse files

arm64: dma-mapping: Add missing debug information



Ensure the calling function is passed to dma_common_contiguous_remap.
This helps to track how a particular vm_struct is created.

Change-Id: I3194d5eaa92b39c735652302b2744f8fd165fb51
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 16ff8166
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -255,7 +255,8 @@ static void *__dma_alloc(struct device *dev, size_t size,
		page = virt_to_page(ptr);
		prot = __get_dma_pgprot(attrs, __pgprot(PROT_NORMAL_NC), false);
		coherent_ptr = dma_common_contiguous_remap(
					page, size, VM_USERMAP, prot, NULL);
					page, size, VM_USERMAP, prot,
					__builtin_return_address(0));
		if (!coherent_ptr)
			goto no_map;
	}