drm/amdgpu: Add support for reporting VRAM usage
authorKent Russell <kent.russell@amd.com>
Sat, 9 Dec 2017 04:09:05 +0000 (23:09 -0500)
committerOded Gabbay <oded.gabbay@gmail.com>
Sat, 9 Dec 2017 04:09:05 +0000 (23:09 -0500)
commit9f0a0b41ffccf9a76b19ea263ae16d2d5888093e
tree7f1de04eb204fc7f0213035b1c80968cc5d0f370
parentb441093e40e14d8305f0bee37cbaa3fa2e6ce8d0
drm/amdgpu: Add support for reporting VRAM usage

Add functions to report the vram_usage from the amdgpu_device

Signed-off-by: Kent Russell <kent.russell@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
drivers/gpu/drm/amd/include/kgd_kfd_interface.h