drm/ttm: Add DMA map/unmap tracepoint (v3)
authorTom St Denis <[email protected]>
Wed, 23 Aug 2017 19:17:47 +0000 (15:17 -0400)
committerAlex Deucher <[email protected]>
Tue, 29 Aug 2017 19:27:50 +0000 (15:27 -0400)
commita92e145059cb883155a24a2d3ac33296d33d9df7
treed1da85119d401413dcb0870bb00c4649aa775d27
parent727030b0c6322b127b524dab1fbbe55a441a54b9
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 <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
(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]