From 7da16024ac6b91f6a1c5a11db6263e01c020131c Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 14 Dec 2017 18:36:02 +0000 Subject: tests: add i915 query tests Add some new tests to cover the i915 query uAPI. The first user of this API is the RCS topology but we expect more to follow. v2: Complete invalid cases (Chris) Some styling (to_user_pointer, etc...) (Chris) New error check, through item.length (Chris) v3: Update for new uAPI iteration (Lionel) v4: Return errno from a single point (Chris) Poising checks (Chris) v5: Add more debug traces (Lionel) Update uAPI (Joonas/Lionel) Make sure Haswell is tested (Lionel) v6: s/query_item/query_items/ (Tvrtko) test that flags fields != 0 fail (Tvrtko) Split kernel writes checks out (Tvrtko) Verify that when an EU is available, so is slice & subslice it belongs to (same with subslice). (Tvrtko) Verify kernel errors out with read only memory (Tvrtko) v7: Add a special Haswell test to verify correct values (Tvrtko) Simplify igt_require() in front of tests (Tvrtko) v8: Reuse the GT field from device info to verify slice/subslices numbers on wider number of platforms (Lionel) v9: Fix invalid number of subslices on GT4 (Lionel) Update comments style (Tvrtko) Test invalid query pointer (Tvrtko) Check topology item minimum length (Tvrtko) Test invalid item data pointers (Tvrtko) Signed-off-by: Lionel Landwerlin Reviewed-by: Tvrtko Ursulin --- tests/Makefile.sources | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/Makefile.sources') diff --git a/tests/Makefile.sources b/tests/Makefile.sources index 4a81ac4a..4e6f5319 100644 --- a/tests/Makefile.sources +++ b/tests/Makefile.sources @@ -167,6 +167,7 @@ TESTS_progs = \ gen3_render_tiledx_blits \ gen3_render_tiledy_blits \ gvt_basic \ + i915_query \ kms_3d \ kms_addfb_basic \ kms_atomic \ -- cgit v1.2.3