]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9cc21f19b69ee8e9662f10682861a890d26d5a95
tree2342e55ca6de6895f0a9b11d297b14ac6b1b6916
parent52193b57429b732a2d8fca29c11872ff0fabe697
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