drm/ttm: Add helper functions to populate/map in one call (v2)
authorTom St Denis <tom.stdenis@amd.com>
Fri, 18 Aug 2017 14:04:57 +0000 (10:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Aug 2017 19:27:52 +0000 (15:27 -0400)
commita4dec819c8bba6365eb893a4ca88db4dd1210110
tree7c5c86d283b0d027f755ad8ee947573fa4c1d63e
parente719d5169f75ead3c05329b4125afb67b4f33eba
drm/ttm: Add helper functions to populate/map in one call (v2)

These functions replace a section of common code found
in radeon/amdgpu drivers (and possibly others) as part
of the ttm_tt_*populate() callbacks.

v2: squash in fix for sw iommu from Tom

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>
drivers/gpu/drm/ttm/ttm_page_alloc.c
include/drm/ttm/ttm_page_alloc.h