Skip to content

Commit cff7d3b

Browse files
rerrabolualexdeucher
authored andcommitted
drm/amdgpu: Enable Aldebaran devices to report CU Occupancy
Allow user to know number of compute units (CU) that are in use at any given moment. Enable access to the method kgd_gfx_v9_get_cu_occupancy that computes CU occupancy. Signed-off-by: Ramesh Errabolu <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 86e8255 commit cff7d3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@ const struct kfd2kgd_calls aldebaran_kfd2kgd = {
4141
.get_atc_vmid_pasid_mapping_info =
4242
kgd_gfx_v9_get_atc_vmid_pasid_mapping_info,
4343
.set_vm_context_page_table_base = kgd_gfx_v9_set_vm_context_page_table_base,
44+
.get_cu_occupancy = kgd_gfx_v9_get_cu_occupancy,
4445
.program_trap_handler_settings = kgd_gfx_v9_program_trap_handler_settings
4546
};

0 commit comments

Comments
 (0)