[SWDEV-463406] Add volation_status current counter/accumulated values
Changes:
- amdsmi_violation_status_t now includes current accumulated/counter
values
- Tests/wrapper now include added values
- Removed ASIC references in header for host/bm alignment
- Fix violation_status->per_hbm_thrm /
violation_status->active_hbm_thrm
calculations.
Change-Id: Ic86a7cbad5198a41018f82f6b588b83158d9ba0b
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
Этот коммит содержится в:
@@ -864,7 +864,8 @@ class TestAmdSmiPythonInterface(unittest.TestCase):
|
||||
print()
|
||||
self.tearDown()
|
||||
|
||||
# Only supported on MI300+ ASICs
|
||||
# amdsmi_get_violation_status is only supported on MI300+ ASICs
|
||||
# We should expect a not supported status for Navi / MI100 / MI2x ASICs
|
||||
@handle_exceptions
|
||||
def test_get_violation_status(self):
|
||||
self.setUp()
|
||||
@@ -882,6 +883,17 @@ class TestAmdSmiPythonInterface(unittest.TestCase):
|
||||
print(" Violation Timestamp: {}".format(
|
||||
violation_status['violation_timestamp']))
|
||||
|
||||
print(" Current Prochot Thrm Accumulated (Count): {}".format(
|
||||
violation_status['acc_prochot_thrm']))
|
||||
print(" Current PVIOL (acc_ppt_pwr) Accumulated (Count): {}".format(
|
||||
violation_status['acc_ppt_pwr']))
|
||||
print(" Current TVIOL (acc_socket_thrm) Accumulated (Count): {}".format(
|
||||
violation_status['acc_socket_thrm']))
|
||||
print(" Current VR_THRM Accumulated (Count): {}".format(
|
||||
violation_status['acc_vr_thrm']))
|
||||
print(" Current HBM Thrm Accumulated (Count): {}".format(
|
||||
violation_status['acc_hbm_thrm']))
|
||||
|
||||
print(" Prochot Thrm Violation (%): {}".format(
|
||||
violation_status['per_prochot_thrm']))
|
||||
print(" PVIOL (per_ppt_pwr) (%): {}".format(
|
||||
|
||||
Ссылка в новой задаче
Block a user