mirror of
https://github.com/torvalds/linux
synced 2024-10-04 18:33:42 +00:00
drm/amdgpu: add pm metrics structure definition
Define the pm metrics structures to be exposed via sysfs. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
This commit is contained in:
parent
75fb313c55
commit
a3cc7dbe99
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue