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
Цей коміт міститься в:
@@ -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.
|
||||
|
||||
Посилання в новій задачі
Заблокувати користувача