]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6f7337ce73530140db226959bfc086279b310752
tree483416816a30295dadac65bf31465709da83fafc
parent39ace65238b1e259ba7aaa959404e20c6fb0ee16
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