diff options
author | 2023-01-30 01:52:40 -0500 | |
---|---|---|
committer | 2023-03-13 17:27:48 -0400 | |
commit | d6530c33a978c6d170125b3a2ca1d218b1863e52 (patch) | |
tree | 62a6f1bfb28a30486fb3b51592647482224bb90e /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |
parent | drm/amd/display: Fix HDCP failing to enable after suspend (diff) | |
download | linux-d6530c33a978c6d170125b3a2ca1d218b1863e52.tar.gz linux-d6530c33a978c6d170125b3a2ca1d218b1863e52.tar.bz2 linux-d6530c33a978c6d170125b3a2ca1d218b1863e52.zip |
drm/amdgpu: expose more memory stats in fdinfo
This will be used for performance investigations.
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h index 856a64bc7a89..6f085f0b4ef3 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h @@ -40,6 +40,7 @@ struct amdgpu_bo_va; struct amdgpu_job; struct amdgpu_bo_list_entry; struct amdgpu_bo_vm; +struct amdgpu_mem_stats; /* * GPUVM handling @@ -457,8 +458,8 @@ void amdgpu_vm_set_task_info(struct amdgpu_vm *vm); void amdgpu_vm_move_to_lru_tail(struct amdgpu_device *adev, struct amdgpu_vm *vm); -void amdgpu_vm_get_memory(struct amdgpu_vm *vm, uint64_t *vram_mem, - uint64_t *gtt_mem, uint64_t *cpu_mem); +void amdgpu_vm_get_memory(struct amdgpu_vm *vm, + struct amdgpu_mem_stats *stats); int amdgpu_vm_pt_clear(struct amdgpu_device *adev, struct amdgpu_vm *vm, struct amdgpu_bo_vm *vmbo, bool immediate); |