aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h
diff options
context:
space:
mode:
authorLijo Lazar <[email protected]>2025-05-05 11:23:29 +0000
committerAlex Deucher <[email protected]>2025-05-22 16:01:33 +0000
commit54a01f775194a8b5acc6bd735aa0d092469dcff7 (patch)
tree8616502d3f7852b49cbf1fffde4300c6aeffcedd /drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h
parentdrm/amdgpu: Register aqua vanjaram jpeg poison irq (diff)
downloadkernel-54a01f775194a8b5acc6bd735aa0d092469dcff7.tar.gz
kernel-54a01f775194a8b5acc6bd735aa0d092469dcff7.zip
drm/amd/pm: Add support to query partition metrics
Add interfaces to query compute partition related metrics data. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Asad Kamal <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h')
-rw-r--r--drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h b/drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h
index 2c3c97587dd5..c0f9ecb97fcc 100644
--- a/drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h
+++ b/drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h
@@ -524,6 +524,8 @@ int amdgpu_dpm_get_power_profile_mode(struct amdgpu_device *adev,
int amdgpu_dpm_set_power_profile_mode(struct amdgpu_device *adev,
long *input, uint32_t size);
int amdgpu_dpm_get_gpu_metrics(struct amdgpu_device *adev, void **table);
+ssize_t amdgpu_dpm_get_xcp_metrics(struct amdgpu_device *adev, int xcp_id,
+ void *table);
/**
* @get_pm_metrics: Get one snapshot of power management metrics from PMFW. The