diff options
author | Matthieu CASTET <matthieu.castet@parrot.com> | 2017-10-02 16:01:55 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-10-04 15:43:00 +0300 |
commit | 359be67862c5e013fcf7c04e352d8824105a76ed (patch) | |
tree | ff41565025e5ad28bfbf7e9baabc3f9c51ca6995 | |
parent | 396a5d4a5c32598aea5bff5cb2a995026a6f05dc (diff) | |
download | linux-359be67862c5e013fcf7c04e352d8824105a76ed.tar.xz |
dma mapping : export caller to vmallocinfo
For example on arm64 board, this add info to "user" entries in vmallocinfo
Before :
[...]
0xffffff8008997000 0xffffff80089d8000 266240 user
[...]
Afer :
[...]
0xffffff8008997000 0xffffff80089d8000 266240 atomic_pool_init+0x0/0x1d8 user
[...]
This help to debug mapping issues, and is consistent with others entries
(ioremap, vmalloc, ...) that already provide caller.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Matthieu CASTET <matthieu.castet@parrot.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r-- | arch/arm64/mm/dma-mapping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c index 5f62090bda24..b45c5bcaeccb 100644 --- a/arch/arm64/mm/dma-mapping.c +++ b/arch/arm64/mm/dma-mapping.c @@ -166,7 +166,7 @@ static void *__dma_alloc(struct device *dev, size_t size, /* create a coherent mapping */ page = virt_to_page(ptr); coherent_ptr = dma_common_contiguous_remap(page, size, VM_USERMAP, - prot, NULL); + prot, __builtin_return_address(0)); if (!coherent_ptr) goto no_map; |