aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2023-09-28 09:48:16 +0000
committerAlex Deucher <[email protected]>2023-11-17 14:30:51 +0000
commita3cc7dbe9957f856b84a504687a85e22e02a49db (patch)
tree0707167af91ef8a7f612fa8b02601612c9828560
parentdrm/amdgpu: expose the connected port num info through sysfs (diff)
downloadkernel-a3cc7dbe9957f856b84a504687a85e22e02a49db.tar.gz
kernel-a3cc7dbe9957f856b84a504687a85e22e02a49db.zip
drm/amdgpu: add pm metrics structure definition
Define the pm metrics structures to be exposed via sysfs. Signed-off-by: Alex Deucher <[email protected]> Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Yang Wang <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/include/kgd_pp_interface.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/include/kgd_pp_interface.h b/drivers/gpu/drm/amd/include/kgd_pp_interface.h
index b14231f470dc..f9c438d16c56 100644
--- a/drivers/gpu/drm/amd/include/kgd_pp_interface.h
+++ b/drivers/gpu/drm/amd/include/kgd_pp_interface.h
@@ -1127,4 +1127,19 @@ struct gpu_metrics_v3_0 {
/* Metrics table alpha filter time constant [us] */
uint32_t time_filter_alphavalue;
};
+
+struct amdgpu_pmmetrics_header {
+ uint16_t structure_size;
+ uint16_t pad;
+ uint32_t mp1_ip_discovery_version;
+ uint32_t pmfw_version;
+ uint32_t pmmetrics_version;
+};
+
+struct amdgpu_pm_metrics {
+ struct amdgpu_pmmetrics_header common_header;
+
+ uint8_t data[];
+};
+
#endif