diff options
author | 2020-09-29 12:06:15 -0500 | |
---|---|---|
committer | 2020-09-30 13:50:06 -0400 | |
commit | 825c91d0908b72f9ec2a9e0c815d2c40af5ad5f4 (patch) | |
tree | 623181a5ae9c6a6125e0c97a06d807781cb5e53c /drivers/gpu/drm/amd/amdgpu/gfx_v9_0.h | |
parent | drm/amd/amdgpu: Clean up header file of symbols that are defined to be static (diff) | |
download | linux-825c91d0908b72f9ec2a9e0c815d2c40af5ad5f4.tar.gz linux-825c91d0908b72f9ec2a9e0c815d2c40af5ad5f4.tar.bz2 linux-825c91d0908b72f9ec2a9e0c815d2c40af5ad5f4.zip |
drm/amd/amdgpu: Prepare implementation to support reporting of CU usage
[Why]
Allow user to know number of compute units (CU) that 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: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v9_0.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v9_0.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.h b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.h index 407472031daa..dfe8d4841f58 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.h +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.h @@ -26,4 +26,7 @@ extern const struct amdgpu_ip_block_version gfx_v9_0_ip_block; +void gfx_v9_0_select_se_sh(struct amdgpu_device *adev, u32 se_num, u32 sh_num, + u32 instance); + #endif |