Lines Matching refs:test

6 #include <kunit/test.h>
19 struct kunit *test)
33 KUNIT_FAIL(test, "Failed to validate bo.\n");
41 KUNIT_FAIL(test, "Failed to submit bo clear.\n");
50 KUNIT_FAIL(test, "Failed to evict bo.\n");
60 KUNIT_FAIL(test, "Failed to sync bo eviction.\n");
71 KUNIT_FAIL(test, "Bo was not in expected placement.\n");
77 KUNIT_FAIL(test, "No TTM CCS pages present.\n");
86 KUNIT_FAIL(test,
97 KUNIT_FAIL(test,
112 struct kunit *test)
122 kunit_info(test, "Testing vram id %u\n", tile->id);
124 kunit_info(test, "Testing system memory\n");
129 KUNIT_FAIL(test, "Failed to create bo.\n");
135 kunit_info(test, "Verifying that CCS data is cleared on creation.\n");
137 test);
141 kunit_info(test, "Verifying that CCS data survives migration.\n");
143 0xdeadbeefdeadbeefULL, test);
147 kunit_info(test, "Verifying that CCS data can be properly cleared.\n");
148 ret = ccs_test_migrate(tile, bo, true, 0ULL, 0ULL, test);
157 struct kunit *test = xe_cur_kunit();
162 kunit_info(test, "Skipping non-flat-ccs device.\n");
172 ccs_test_run_tile(xe, tile, test);
180 void xe_ccs_migrate_kunit(struct kunit *test)
186 static int evict_test_run_tile(struct xe_device *xe, struct xe_tile *tile, struct kunit *test)
194 kunit_info(test, "Testing device %s vram id %u\n",
205 KUNIT_FAIL(test, "bo create err=%pe\n", bo);
213 KUNIT_FAIL(test, "external bo create err=%pe\n", external);
221 KUNIT_FAIL(test, "external bo pin err=%pe\n",
228 KUNIT_FAIL(test, "evict err=%pe\n", ERR_PTR(err));
251 KUNIT_FAIL(test, "restore kernel err=%pe\n",
258 KUNIT_FAIL(test, "restore user err=%pe\n", ERR_PTR(err));
263 KUNIT_FAIL(test, "external bo is not vram\n");
269 KUNIT_FAIL(test, "bo is vram\n");
281 KUNIT_FAIL(test, "bo valid err=%pe\n",
289 KUNIT_FAIL(test, "external bo valid err=%pe\n",
328 struct kunit *test = xe_cur_kunit();
333 kunit_info(test, "Skipping non-discrete device %s.\n",
341 evict_test_run_tile(xe, tile, test);
348 void xe_bo_evict_kunit(struct kunit *test)