Skip to content

Commit

Permalink
Enable querying of CU Occupancy on Arcturus devices
Browse files Browse the repository at this point in the history
Signed-off-by: Ramesh Errabolu <Ramesh.Errabolu@amd.com>
Change-Id: I11fb2f2bb87d87fae374800d8c35fb7f04ff1df6
  • Loading branch information
Ramesh Errabolu authored and Ramesh Errabolu committed Nov 3, 2020
1 parent 8d11082 commit 770d831
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_arcturus.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,4 +313,5 @@ const struct kfd2kgd_calls arcturus_kfd2kgd = {
.clear_address_watch = kgd_gfx_v9_clear_address_watch,
.get_iq_wait_times = kgd_gfx_v9_get_iq_wait_times,
.build_grace_period_packet_info = kgd_gfx_v9_build_grace_period_packet_info,
.get_cu_occupancy = kgd_gfx_v9_get_cu_occupancy
};
4 changes: 2 additions & 2 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ static void get_wave_count(struct amdgpu_device *adev, int queue_idx,
*
* Reading registers referenced above involves programming GRBM appropriately
*/
static void kgd_gfx_v9_get_cu_occupancy(struct kgd_dev *kgd, int pasid,
void kgd_gfx_v9_get_cu_occupancy(struct kgd_dev *kgd, int pasid,
int *pasid_wave_cnt, int *max_waves_per_cu)
{
int qidx;
Expand Down Expand Up @@ -1251,5 +1251,5 @@ const struct kfd2kgd_calls gfx_v9_kfd2kgd = {
.clear_address_watch = kgd_gfx_v9_clear_address_watch,
.get_iq_wait_times = kgd_gfx_v9_get_iq_wait_times,
.build_grace_period_packet_info = kgd_gfx_v9_build_grace_period_packet_info,
.get_cu_occupancy = kgd_gfx_v9_get_cu_occupancy,
.get_cu_occupancy = kgd_gfx_v9_get_cu_occupancy
};
2 changes: 2 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,5 @@ void kgd_gfx_v9_build_grace_period_packet_info(struct kgd_dev *kgd,
uint32_t *reg_data);
void kgd_gfx_v9_set_vm_context_page_table_base(struct kgd_dev *kgd,
uint32_t vmid, uint64_t page_table_base);
void kgd_gfx_v9_get_cu_occupancy(struct kgd_dev *kgd, int pasid,
int *pasid_wave_cnt, int *max_waves_per_cu);

0 comments on commit 770d831

Please sign in to comment.