drm/amdgpu: Add debugfs entry for printing VM info
authorMihir Bhogilal Patel <Mihir.Patel@amd.com>
Thu, 8 Oct 2020 10:16:38 +0000 (15:46 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Oct 2020 16:23:24 +0000 (12:23 -0400)
commitff72bc40317079b775a7a6d2ba94297b04b795e4
tree2342e55ca6de6895f0a9b11d297b14ac6b1b6916
parentded08454e56b70186bff74374d31f57a90cb497f
drm/amdgpu: Add debugfs entry for printing VM info

Create new debugfs entry to print memory info using VM buffer
objects.

V2: Added Common function for printing BO info.
    Dump more VM lists for evicted, moved, relocated, invalidated.
    Removed dumping VM mapped BOs.
V3: Fixed coding style comments, renamed print API and variables.
V4: Fixed coding style comments.

Signed-off-by: Mihir Bhogilal Patel <Mihir.Patel@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_debugfs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h