drm/amdgpu: Implement ttm_bo_driver.access_memory callback v2
authorFelix Kuehling <Felix.Kuehling@amd.com>
Mon, 3 Jul 2017 18:18:27 +0000 (14:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jul 2017 20:29:18 +0000 (16:29 -0400)
commite342610c9a9b36459c5be107cb0b7c338404fcc3
treeac3ac00d5fc7fa7de1bd8d325e0ff5eb00f99d7c
parent09ac4fcb3f255e9225967c75f5893325c116cdbe
drm/amdgpu: Implement ttm_bo_driver.access_memory callback v2

Allows gdb to access contents of user mode mapped VRAM BOs.

v2: return error for non-VRAM pools

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c