]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: Add DMA map/unmap tracepoint (v3)
authorTom St Denis <tom.stdenis@amd.com>
Wed, 23 Aug 2017 19:17:47 +0000 (15:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Aug 2017 19:27:50 +0000 (15:27 -0400)
commit0aefff4228080e98c2b09b4b58462d2a11c6fe4e
treed1da85119d401413dcb0870bb00c4649aa775d27
parentfca68ecb7d5cdf43a3cc614520d25e0b1ea19540
drm/ttm: Add DMA map/unmap tracepoint (v3)

Also exports two functions that vendor drivers can call
to trace DMA mappings.  This is meant to help translate
IOMMU mappings of bus addresses back to physical pages.

Used by the umr amdgpu debugger for instance.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(v2): Use dev_name() to get PCI path instead.
(v3): Use correct types for dma/phys addresses
drivers/gpu/drm/ttm/Makefile
drivers/gpu/drm/ttm/ttm_debug.c [new file with mode: 0644]
drivers/gpu/drm/ttm/ttm_trace.h [new file with mode: 0644]
drivers/gpu/drm/ttm/ttm_tracepoints.c [new file with mode: 0644]
include/drm/ttm/ttm_debug.h [new file with mode: 0644]