]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/amd/amdgpu: Define and implement a function that collects number of
authorRamesh Errabolu <Ramesh.Errabolu@amd.com>
Tue, 29 Sep 2020 17:14:08 +0000 (12:14 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Sep 2020 19:26:27 +0000 (15:26 -0400)
commit43a4bc828c5b156f08024fd0a966c5c2a3f09af1
tree968e2cac96622ba0b78fdc826dfa1f6b2a450347
parent39ad082459373facaa255b0791595d018597a164
drm/amd/amdgpu: Define and implement a function that collects number of
waves that are in flight.

[Why]
Allow user to know how many compute units (CU) are in use at any given
moment.

[How]
Read registers of SQ that give number of waves that are in flight
of various queues. Use this information to determine number of CU's
in use.

Signed-off-by: Ramesh Errabolu <Ramesh.Errabolu@amd.com>
Reviewed-By: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
drivers/gpu/drm/amd/include/kgd_kfd_interface.h