ROCm SMI LIB: Fix rsmiBindings.py.in Mismatch

This commit aligns the rsmiBindings.py.in file's
"notification_type_names" & "rsmi_evt_notification_type_t" with
those found in the rsmiBindings.py file.

Change-Id: I67f36606c505992fb98495651310bd70a1755033
Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
This commit is contained in:
Ori Messinger
2024-05-02 13:59:14 -04:00
zatwierdzone przez Maisam Arif
rodzic 3d82f1799d
commit 0c48cd9122
4 zmienionych plików z 27 dodań i 2 usunięć
+23
Wyświetl plik
@@ -4,6 +4,29 @@ Full documentation for rocm_smi_lib is available at [https://rocm.docs.amd.com/]
***All information listed below is for reference and subject to change.***
## rocm_smi_lib for ROCm 6.1.2
### Added
- **Added Ring Hang event**
Added `RSMI_EVT_NOTIF_RING_HANG` to the possible events in the `rsmi_evt_notification_type_t` enum.
### Changed
- N/A
### Optimized
- N/A
### Fixed
- N/A
### Known Issues
- N/A
## rocm_smi_lib for ROCm 6.1.1
### Added
+1
Wyświetl plik
@@ -311,6 +311,7 @@ typedef struct {
* Event notification event types
*/
typedef enum {
RSMI_EVT_NOTIF_NONE = KFD_SMI_EVENT_NONE, //!< Unused
RSMI_EVT_NOTIF_VMFAULT = KFD_SMI_EVENT_VMFAULT, //!< VM page fault
RSMI_EVT_NOTIF_FIRST = RSMI_EVT_NOTIF_VMFAULT,
RSMI_EVT_NOTIF_THERMAL_THROTTLE = KFD_SMI_EVENT_THERMAL_THROTTLE,
+1 -1
Wyświetl plik
@@ -107,8 +107,8 @@ notification_type_names = ['VM_FAULT', 'THERMAL_THROTTLE', 'GPU_PRE_RESET', 'GPU
class rsmi_evt_notification_type_t(c_int):
RSMI_EVT_NOTIF_NONE = 0
RSMI_EVT_NOTIF_FIRST = RSMI_EVT_NOTIF_NONE
RSMI_EVT_NOTIF_VMFAULT = 1
RSMI_EVT_NOTIF_FIRST = RSMI_EVT_NOTIF_VMFAULT
RSMI_EVT_NOTIF_THERMAL_THROTTLE = 2
RSMI_EVT_NOTIF_GPU_PRE_RESET = 3
RSMI_EVT_NOTIF_GPU_POST_RESET = 4
+2 -1
Wyświetl plik
@@ -134,10 +134,11 @@ class rsmi_dev_perf_level_t(c_int):
RSMI_DEV_PERF_LEVEL_UNKNOWN = 0x100
notification_type_names = ['VM_FAULT', 'THERMAL_THROTTLE', 'GPU_RESET']
notification_type_names = ['VM_FAULT', 'THERMAL_THROTTLE', 'GPU_PRE_RESET', 'GPU_POST_RESET', 'RING_HANG']
class rsmi_evt_notification_type_t(c_int):
RSMI_EVT_NOTIF_NONE = 0
RSMI_EVT_NOTIF_VMFAULT = 1
RSMI_EVT_NOTIF_FIRST = RSMI_EVT_NOTIF_VMFAULT
RSMI_EVT_NOTIF_THERMAL_THROTTLE = 2