All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: Enable Aldebaran devices to report CU Occupancy
@ 2022-11-16 16:54 Ramesh Errabolu
  2022-11-16 21:06 ` Alex Deucher
  2022-11-16 21:09 ` Felix Kuehling
  0 siblings, 2 replies; 3+ messages in thread
From: Ramesh Errabolu @ 2022-11-16 16:54 UTC (permalink / raw)
  To: amd-gfx; +Cc: Ramesh Errabolu

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 <Ramesh.Errabolu@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c
index c8935d718207..4485bb29bec9 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c
@@ -41,5 +41,6 @@ const struct kfd2kgd_calls aldebaran_kfd2kgd = {
 	.get_atc_vmid_pasid_mapping_info =
 				kgd_gfx_v9_get_atc_vmid_pasid_mapping_info,
 	.set_vm_context_page_table_base = kgd_gfx_v9_set_vm_context_page_table_base,
+	.get_cu_occupancy = kgd_gfx_v9_get_cu_occupancy,
 	.program_trap_handler_settings = kgd_gfx_v9_program_trap_handler_settings
 };
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/amdgpu: Enable Aldebaran devices to report CU Occupancy
  2022-11-16 16:54 [PATCH] drm/amdgpu: Enable Aldebaran devices to report CU Occupancy Ramesh Errabolu
@ 2022-11-16 21:06 ` Alex Deucher
  2022-11-16 21:09 ` Felix Kuehling
  1 sibling, 0 replies; 3+ messages in thread
From: Alex Deucher @ 2022-11-16 21:06 UTC (permalink / raw)
  To: Ramesh Errabolu; +Cc: amd-gfx

On Wed, Nov 16, 2022 at 11:54 AM Ramesh Errabolu
<Ramesh.Errabolu@amd.com> wrote:
>
> 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 <Ramesh.Errabolu@amd.com>

Acked-by: Alex Deucher <alexander.deucher@amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c
> index c8935d718207..4485bb29bec9 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c
> @@ -41,5 +41,6 @@ const struct kfd2kgd_calls aldebaran_kfd2kgd = {
>         .get_atc_vmid_pasid_mapping_info =
>                                 kgd_gfx_v9_get_atc_vmid_pasid_mapping_info,
>         .set_vm_context_page_table_base = kgd_gfx_v9_set_vm_context_page_table_base,
> +       .get_cu_occupancy = kgd_gfx_v9_get_cu_occupancy,
>         .program_trap_handler_settings = kgd_gfx_v9_program_trap_handler_settings
>  };
> --
> 2.35.1
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/amdgpu: Enable Aldebaran devices to report CU Occupancy
  2022-11-16 16:54 [PATCH] drm/amdgpu: Enable Aldebaran devices to report CU Occupancy Ramesh Errabolu
  2022-11-16 21:06 ` Alex Deucher
@ 2022-11-16 21:09 ` Felix Kuehling
  1 sibling, 0 replies; 3+ messages in thread
From: Felix Kuehling @ 2022-11-16 21:09 UTC (permalink / raw)
  To: Ramesh Errabolu, amd-gfx

Am 2022-11-16 um 11:54 schrieb Ramesh Errabolu:
> 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 <Ramesh.Errabolu@amd.com>

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>


> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c
> index c8935d718207..4485bb29bec9 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c
> @@ -41,5 +41,6 @@ const struct kfd2kgd_calls aldebaran_kfd2kgd = {
>   	.get_atc_vmid_pasid_mapping_info =
>   				kgd_gfx_v9_get_atc_vmid_pasid_mapping_info,
>   	.set_vm_context_page_table_base = kgd_gfx_v9_set_vm_context_page_table_base,
> +	.get_cu_occupancy = kgd_gfx_v9_get_cu_occupancy,
>   	.program_trap_handler_settings = kgd_gfx_v9_program_trap_handler_settings
>   };

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-16 21:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-16 16:54 [PATCH] drm/amdgpu: Enable Aldebaran devices to report CU Occupancy Ramesh Errabolu
2022-11-16 21:06 ` Alex Deucher
2022-11-16 21:09 ` Felix Kuehling

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.