OSDN Git Service

drm/amdgpu: use the BAR if possible in amdgpu_device_vram_access v2
authorChristian König <christian.koenig@amd.com>
Fri, 31 Jan 2020 13:58:05 +0000 (14:58 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Feb 2020 16:45:25 +0000 (11:45 -0500)
commitc12b84d6e0d70f1185e6daddfd12afb671791b6e
treed7fb21bc38b18bdfec5ad4018509de488ad28d78
parentce05ac56e6465d057fea52875151fddf8436b3bc
drm/amdgpu: use the BAR if possible in amdgpu_device_vram_access v2

This should speed up debugging VRAM access a lot.

v2: add HDP flush/invalidate

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_device.c