diff options
| author | Feifei Xu <[email protected]> | 2024-09-12 10:08:07 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-09-26 21:06:16 +0000 |
| commit | 400a7591d94826c5ec3273abb38e07330143898b (patch) | |
| tree | 0fcf1213003aea35b0c25f38f603293d610ffaa6 /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | |
| parent | drm/amd/pm: Use same metric table for APU (diff) | |
| download | kernel-400a7591d94826c5ec3273abb38e07330143898b.tar.gz kernel-400a7591d94826c5ec3273abb38e07330143898b.zip | |
drm/amdgpu: Add psp command CONFIG_SQ_PERFMON
Add support for enable/disable perfmon profiling.
Signed-off-by: Feifei Xu <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Reviewed-by: Lijo Lazar <[email protected]>
Reviewed-by: James Zhu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h index e8abbbcb4326..f61ba076573c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h @@ -557,4 +557,8 @@ int is_psp_fw_valid(struct psp_bin_desc bin); int amdgpu_psp_wait_for_bootloader(struct amdgpu_device *adev); bool amdgpu_psp_get_ras_capability(struct psp_context *psp); + +int psp_config_sq_perfmon(struct psp_context *psp, uint32_t xcp_id, + bool core_override_enable, bool reg_override_enable, bool perfmon_override_enable); + #endif |
