SWDEV-445864: SWDEV-445865: Update page migration events (#16)
* Update kfd ioctl header - Adds new event for dropped events - Mirrors kernel update by Philip Yang * Add error code for page migration events - Adds support for new error code field for page migration end events - Page migration end event is now generated for migration failure - Error code is zero for successful migration * Add dropped event SMI event - New event type indicates if events were dropped - Events are dropped if the buffer is full
This commit is contained in:
@@ -300,7 +300,7 @@ def test_page_migration_data(input_data):
|
||||
for op_name in bf_op_names:
|
||||
assert "PAGE_MIGRATION" in op_name
|
||||
|
||||
assert len(bf_op_names) == 8
|
||||
assert len(bf_op_names) == 9
|
||||
|
||||
nodes = set(x.id.handle for x in sdk_data.agents)
|
||||
allocations = get_allocated_pages(callback_records)
|
||||
@@ -379,6 +379,11 @@ def test_page_migration_data(input_data):
|
||||
validate_node(arg.agent_id, nodes)
|
||||
assert 0 <= arg.trigger < 3
|
||||
|
||||
if "dropped_event" in r:
|
||||
arg = r.dropped_event
|
||||
# We shouldn't get any dropped events. If we do, our test needs to be redesigned.
|
||||
assert arg.dropped_events_count == 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
exit_code = pytest.main(["-x", __file__] + sys.argv[1:])
|
||||
|
||||
Reference in New Issue
Block a user