OSDN Git Service

drm/amdgpu: use amdgpu_device_vram_access in amdgpu_ttm_vram_read
authorChristian König <christian.koenig@amd.com>
Fri, 24 Jan 2020 12:58:18 +0000 (13:58 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Feb 2020 16:45:33 +0000 (11:45 -0500)
commit030d5b97a54b361b132d18d653ea8ef4eab2dbfc
tree863a1f38070bd5a8f189d5061d45b1ccb7a0eb9a
parentc12b84d6e0d70f1185e6daddfd12afb671791b6e
drm/amdgpu: use amdgpu_device_vram_access in amdgpu_ttm_vram_read

This speeds up the access quite a bit from 2.2 MB/s to
2.9 MB/s on 32bit and 12,8 MB/s on 64bit.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@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