summaryrefslogtreecommitdiff
path: root/tests/i915_query.c
AgeCommit message (Collapse)Author
2018-03-13tests/i915_query: fix expected subslice count on hswLionel Landwerlin
Haswell's configuration are a bit different from the following Gens. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105476 Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Marta Lofstedt <marta.lofstedt@intel.com>
2018-03-13tests/i915_query: split garbage testLionel Landwerlin
Unfortunately I forgot that some of those tests require rcs topology support which we don't have on Sandybridge. This change split the test in 2 (first part available on all platforms, second part only with rcs topology support). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105475 Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2018-03-12tests: add i915 query testsLionel Landwerlin
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 <lionel.g.landwerlin@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>