aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.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/swsmu/inc/amdgpu_smu.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/swsmu/inc/amdgpu_smu.h')
-rw-r--r--drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h b/drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h
index d47e32ae4671..9aacc7bc1c69 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h
+++ b/drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h
@@ -1466,6 +1466,12 @@ struct pptable_funcs {
*/
int (*set_wbrf_exclusion_ranges)(struct smu_context *smu,
struct freq_band_range *exclusion_ranges);
+ /**
+ * @get_xcp_metrics: Get a copy of the partition metrics table from SMU.
+ * Return: Size of table
+ */
+ ssize_t (*get_xcp_metrics)(struct smu_context *smu, int xcp_id,
+ void *table);
};
typedef enum {