OSDN Git Service

drm/amdgpu: use amdgpu_device_vram_access in amdgpu_ttm_access_memory v2
authorChristian König <christian.koenig@amd.com>
Wed, 5 Feb 2020 14:45:59 +0000 (15:45 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Feb 2020 16:45:39 +0000 (11:45 -0500)
commitdd1ab79910b80636f90e3467059727547b753c48
tree483416816a30295dadac65bf31465709da83fafc
parent030d5b97a54b361b132d18d653ea8ef4eab2dbfc
drm/amdgpu: use amdgpu_device_vram_access in amdgpu_ttm_access_memory v2

Make use of the better performance here as well.

This patch is only compile tested!

v2: fix calculation bug pointed out by Felix

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Jonathan Kim <Jonathan.Kim@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c