Merge branch 'amd-staging' into SWDEV-517156/Synchronize_Unified_and_Amdsmi_Headers

This commit is contained in:
Narlo, Joseph
2025-02-24 10:14:49 -06:00
committed by GitHub
melakukan af31967b6d
2 mengubah file dengan 8 tambahan dan 2 penghapusan
+1 -1
Melihat File
@@ -817,7 +817,7 @@ class AMDSMIParser(argparse.ArgumentParser):
perf_level_help = "Current DPM performance level"
xgmi_err_help = "XGMI error information since last read"
energy_help = "Amount of energy consumed"
throttle_help = "Displays throttle accumulators; Only available for MI300 or newer ASICs"
throttle_help = "Displays throttle accumulators;\n Only available for MI300 or newer ASICs"
# Help text for Arguments only on Hypervisors
schedule_help = "All scheduling information"
+7 -1
Melihat File
@@ -2297,12 +2297,18 @@ def amdsmi_get_gpu_driver_info(
)
)
return {
driver_info = {
"driver_name": info.driver_name.decode("utf-8"),
"driver_version": info.driver_version.decode("utf-8"),
"driver_date": info.driver_date.decode("utf-8")
}
for key, value in driver_info.items():
if value == "":
driver_info[key] = "N/A"
return driver_info
def amdsmi_get_power_info(
processor_handle: amdsmi_wrapper.amdsmi_processor_handle,