SWDEV-518214: GPU Metrics 1.8 (#31)

* SWDEV-518214: GPU Metrics 1.8 (#31)

- Updates:
    - Adding the following metrics to allow new calculations for violation status:
        - Per XCP metrics gfx_below_host_limit_ppt_acc
        - Per XCP metrics gfx_below_host_limit_thm_acc
        - Per XCP metrics gfx_low_utilization_acc
        - Per XCP metrics gfx_below_host_limit_total_acc
    - Increasing available JPEG engines to 40. Current ASICs may not support all 40. These will be indicated as UINT16_MAX or N/A in CLI.

Signed-off-by: Juan Castillo <juan.castillo@amd.com>
Co-authored-by: Charis Poag <Charis.Poag@amd.com>

[ROCm/rocm_smi_lib commit: f69e65f7bd]
Dieser Commit ist enthalten in:
Castillo, Juan
2025-03-20 18:07:32 -05:00
committet von GitHub
Ursprung 6075f89576
Commit 3aa80ec0e4
8 geänderte Dateien mit 954 neuen und 785 gelöschten Zeilen
@@ -662,10 +662,14 @@ class amdgpu_xcp_metrics_t(Structure):
# amdgpu_xcp_metrics_t._pack_ = 1 # source:False
amdgpu_xcp_metrics_t._fields_ = [
('gfx_busy_inst', c_uint32 * 8),
('jpeg_busy', c_uint16 * 32),
('jpeg_busy', c_uint16 * 40),
('vcn_busy', c_uint16 * 4),
('gfx_busy_acc', c_uint64 * 8),
('gfx_below_host_limit_acc', c_uint64 * 8),
('gfx_below_host_limit_ppt_acc', c_uint64 * 8),
('gfx_below_host_limit_thm_acc', c_uint64 * 8),
('gfx_low_utilization_acc', c_uint64 * 8),
('gfx_below_host_limit_total_acc', c_uint64 * 8),
]
xcp_stats_t = amdgpu_xcp_metrics_t