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>
Wed, 6 May 2020 20:50:40 +0000 (16:50 -0400)
commit9d11eb0d0c4659c6414b22d86b7f8813e254dcba
treeb4abba8e7f9006619c50d24281ba4273a208a5fb
parent85d4d684feccc200ee2c93fe06a563bb70a6fb20
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

Unrevert: RAS issue at root of the issue has been addressed

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>
Signed-off-by: Kent Russell <kent.russell@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c