Update KFD SMI event notification handling

Event bitmask in KFD SMI event is now replaced with event index in
the SMI event message. Sending a event bitmask, which was a 64-bit
field with only 1 bit set, was quite wasteful of memory and also
potentially limiting to 64 events. Instead the kernel would send
event index in the SMI event message. As a result, update the
KFD SMI event handling to expect the event index in the message.

Change-Id: I3e74620788d3c1f7c0bdaa69e9d9ab3d1aba2c92
Цей коміт міститься в:
Mukul Joshi
2020-08-07 13:13:37 -04:00
зафіксовано Mukul Joshi
джерело 8f9f9433d8
коміт 406859ca8a
4 змінених файлів з 24 додано та 9 видалено
+2 -2
Переглянути файл
@@ -3595,8 +3595,8 @@ rsmi_event_notification_get(int timeout_ms,
data_item =
reinterpret_cast<rsmi_evt_notification_data_t *>(&data[*num_elem]);
uint64_t event;
while (fscanf(anon_fp, "%lx %63s\n", &event,
uint32_t event;
while (fscanf(anon_fp, "%x %63s\n", &event,
reinterpret_cast<char *>(&data_item->message)) == 2) {
/* Output is in format as "event information\n"
* Both event are expressed in hex.