diff options
author | Feifei Xu <Feifei.Xu@amd.com> | 2024-09-12 18:09:11 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-09-26 17:06:17 -0400 |
commit | 3eebfd5e9cef738f683a6237dd9ff628e113f008 (patch) | |
tree | a8d23f3f40615cd6c0666f7e97f9f1046a3545e5 /drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | |
parent | f0b19b84d3918e88c27e6e39a7a4bca2b3fb7709 (diff) | |
download | linux-3eebfd5e9cef738f683a6237dd9ff628e113f008.tar.gz linux-3eebfd5e9cef738f683a6237dd9ff628e113f008.tar.bz2 linux-3eebfd5e9cef738f683a6237dd9ff628e113f008.zip |
drm/amdkfd:Add kfd function to config sq perfmon
Expose the interface for kfd to config sq perfmon.
Signed-off-by: Feifei Xu <Feifei.Xu@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h index f9d119448442..7e0a22072536 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h @@ -266,6 +266,9 @@ int amdgpu_amdkfd_unmap_hiq(struct amdgpu_device *adev, u32 doorbell_off, u32 inst); int amdgpu_amdkfd_start_sched(struct amdgpu_device *adev, uint32_t node_id); int amdgpu_amdkfd_stop_sched(struct amdgpu_device *adev, uint32_t node_id); +int amdgpu_amdkfd_config_sq_perfmon(struct amdgpu_device *adev, uint32_t xcp_id, + bool core_override_enable, bool reg_override_enable, bool perfmon_override_enable); + /* Read user wptr from a specified user address space with page fault * disabled. The memory must be pinned and mapped to the hardware when |