diff options
Diffstat (limited to 'tests/i915')
101 files changed, 233 insertions, 115 deletions
diff --git a/tests/i915/gem_bad_blit.c b/tests/i915/gem_bad_blit.c index 27a34038..848e1975 100644 --- a/tests/i915/gem_bad_blit.c +++ b/tests/i915/gem_bad_blit.c @@ -41,7 +41,6 @@ * resulted. */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -50,7 +49,10 @@ #include <errno.h> #include <sys/stat.h> #include <sys/time.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" #include "intel_bufmgr.h" static drm_intel_bufmgr *bufmgr; diff --git a/tests/i915/gem_bad_reloc.c b/tests/i915/gem_bad_reloc.c index 57efc77c..7eb7fa53 100644 --- a/tests/i915/gem_bad_reloc.c +++ b/tests/i915/gem_bad_reloc.c @@ -25,7 +25,6 @@ * */ -#include "igt.h" #include <unistd.h> #include <stdlib.h> #include <stdint.h> @@ -37,7 +36,10 @@ #include <sys/stat.h> #include <sys/ioctl.h> #include <sys/time.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" IGT_TEST_DESCRIPTION("Simulates SNA behaviour using negative self-relocations" " for STATE_BASE_ADDRESS command packets."); diff --git a/tests/i915/gem_blits.c b/tests/i915/gem_blits.c index 3d3b9027..65f7c3dd 100644 --- a/tests/i915/gem_blits.c +++ b/tests/i915/gem_blits.c @@ -22,6 +22,7 @@ * */ +#include "i915/gem.h" #include "igt.h" #include "igt_x86.h" diff --git a/tests/i915/gem_busy.c b/tests/i915/gem_busy.c index b3d9ed02..0d036ea2 100644 --- a/tests/i915/gem_busy.c +++ b/tests/i915/gem_busy.c @@ -25,10 +25,11 @@ #include <signal.h> #include <sys/ioctl.h> +#include "i915/gem.h" +#include "i915/gem_ring.h" #include "igt.h" #include "igt_rand.h" #include "igt_vgem.h" -#include "i915/gem_ring.h" #define LOCAL_EXEC_NO_RELOC (1<<11) #define PAGE_ALIGN(x) ALIGN(x, 4096) diff --git a/tests/i915/gem_caching.c b/tests/i915/gem_caching.c index 7c1f6410..0ffffa05 100644 --- a/tests/i915/gem_caching.c +++ b/tests/i915/gem_caching.c @@ -26,7 +26,6 @@ * */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -38,6 +37,8 @@ #include <drm.h> +#include "i915/gem.h" +#include "igt.h" #include "intel_bufmgr.h" IGT_TEST_DESCRIPTION("Test snoop consistency when touching partial" diff --git a/tests/i915/gem_close.c b/tests/i915/gem_close.c index 0e364514..4fdc1ad7 100644 --- a/tests/i915/gem_close.c +++ b/tests/i915/gem_close.c @@ -21,6 +21,7 @@ * IN THE SOFTWARE. */ +#include "i915/gem.h" #include "igt.h" static bool has_duplicate(int err) diff --git a/tests/i915/gem_close_race.c b/tests/i915/gem_close_race.c index 57e00480..db570e8f 100644 --- a/tests/i915/gem_close_race.c +++ b/tests/i915/gem_close_race.c @@ -25,7 +25,6 @@ * */ -#include "igt.h" #include <pthread.h> #include <unistd.h> #include <signal.h> @@ -40,7 +39,10 @@ #include <sys/ioctl.h> #include <sys/time.h> #include <sys/syscall.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" #define OBJECT_SIZE (256 * 1024) diff --git a/tests/i915/gem_concurrent_all.c b/tests/i915/gem_concurrent_all.c index 22f429e8..fecb2b22 100644 --- a/tests/i915/gem_concurrent_all.c +++ b/tests/i915/gem_concurrent_all.c @@ -35,8 +35,6 @@ * Based on gem_gtt_concurrent_blt. */ -#include "igt.h" -#include "igt_vgem.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -50,6 +48,9 @@ #include <drm.h> +#include "i915/gem.h" +#include "igt.h" +#include "igt_vgem.h" #include "intel_bufmgr.h" IGT_TEST_DESCRIPTION("Test of pread/pwrite/mmap behavior when writing to active" diff --git a/tests/i915/gem_create.c b/tests/i915/gem_create.c index aba2f852..e376f8ae 100644 --- a/tests/i915/gem_create.c +++ b/tests/i915/gem_create.c @@ -47,8 +47,8 @@ #include <pthread.h> #include <stdatomic.h> -#include <drm.h> - +#include "drm.h" +#include "drmtest.h" #include "ioctl_wrappers.h" #include "intel_bufmgr.h" #include "intel_batchbuffer.h" @@ -56,8 +56,6 @@ #include "intel_chipset.h" #include "igt_aux.h" #include "igt_x86.h" -#include "drmtest.h" -#include "drm.h" #include "i915/gem_mman.h" #include "i915_drm.h" diff --git a/tests/i915/gem_cs_prefetch.c b/tests/i915/gem_cs_prefetch.c index 3498aa1e..f329ba7e 100644 --- a/tests/i915/gem_cs_prefetch.c +++ b/tests/i915/gem_cs_prefetch.c @@ -35,6 +35,7 @@ * This test for a bug where we've failed to plug a scratch pte entry into the * very last gtt pte. */ +#include "i915/gem.h" #include "igt.h" IGT_TEST_DESCRIPTION("Test the CS prefetch behaviour on batches."); diff --git a/tests/i915/gem_cs_tlb.c b/tests/i915/gem_cs_tlb.c index f64e4df2..3e9d882b 100644 --- a/tests/i915/gem_cs_tlb.c +++ b/tests/i915/gem_cs_tlb.c @@ -35,7 +35,6 @@ * https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1063252 */ -#include "igt.h" #include <unistd.h> #include <stdlib.h> #include <stdint.h> @@ -50,6 +49,9 @@ #include <drm.h> +#include "i915/gem.h" +#include "igt.h" + IGT_TEST_DESCRIPTION("Check whether we correctly invalidate the cs tlb."); #define BATCH_SIZE (1024*1024) diff --git a/tests/i915/gem_ctx_clone.c b/tests/i915/gem_ctx_clone.c index 471031d4..b72269bc 100644 --- a/tests/i915/gem_ctx_clone.c +++ b/tests/i915/gem_ctx_clone.c @@ -21,10 +21,11 @@ * IN THE SOFTWARE. */ -#include "igt.h" -#include "igt_gt.h" +#include "i915/gem.h" #include "i915/gem_vm.h" #include "i915_drm.h" +#include "igt.h" +#include "igt_gt.h" static int ctx_create_ioctl(int i915, struct drm_i915_gem_context_create_ext *arg) { diff --git a/tests/i915/gem_ctx_create.c b/tests/i915/gem_ctx_create.c index 2d477226..f651710a 100644 --- a/tests/i915/gem_ctx_create.c +++ b/tests/i915/gem_ctx_create.c @@ -25,13 +25,13 @@ * */ -#include "igt.h" - #include <stdio.h> #include <string.h> #include <errno.h> #include <time.h> +#include "i915/gem.h" +#include "igt.h" #include "igt_rand.h" #include "sw_sync.h" diff --git a/tests/i915/gem_ctx_engines.c b/tests/i915/gem_ctx_engines.c index 62f30598..7d6d8e66 100644 --- a/tests/i915/gem_ctx_engines.c +++ b/tests/i915/gem_ctx_engines.c @@ -22,8 +22,6 @@ * */ -#include "igt.h" - #include <unistd.h> #include <stdlib.h> #include <stdint.h> @@ -38,7 +36,9 @@ #include <drm.h> +#include "i915/gem.h" #include "i915/gem_context.h" +#include "igt.h" #include "sw_sync.h" #define engine_class(e, n) ((e)->engines[(n)].engine_class) diff --git a/tests/i915/gem_ctx_exec.c b/tests/i915/gem_ctx_exec.c index ad2f9e54..23036a95 100644 --- a/tests/i915/gem_ctx_exec.c +++ b/tests/i915/gem_ctx_exec.c @@ -24,7 +24,6 @@ * Ben Widawsky <ben@bwidawsk.net> * */ -#include "igt.h" #include <limits.h> #include <unistd.h> #include <signal.h> @@ -41,6 +40,8 @@ #include <drm.h> +#include "i915/gem.h" +#include "igt.h" #include "igt_dummyload.h" #include "igt_sysfs.h" #include "sw_sync.h" diff --git a/tests/i915/gem_ctx_freq.c b/tests/i915/gem_ctx_freq.c index 5d2d3ec3..a34472de 100644 --- a/tests/i915/gem_ctx_freq.c +++ b/tests/i915/gem_ctx_freq.c @@ -29,6 +29,7 @@ #include <stdint.h> #include <unistd.h> +#include "i915/gem.h" #include "igt.h" #include "igt_perf.h" #include "igt_sysfs.h" diff --git a/tests/i915/gem_ctx_isolation.c b/tests/i915/gem_ctx_isolation.c index dadab287..9fdf78bb 100644 --- a/tests/i915/gem_ctx_isolation.c +++ b/tests/i915/gem_ctx_isolation.c @@ -21,6 +21,7 @@ * IN THE SOFTWARE. */ +#include "i915/gem.h" #include "igt.h" #include "igt_dummyload.h" diff --git a/tests/i915/gem_ctx_param.c b/tests/i915/gem_ctx_param.c index b2940abc..72dcb973 100644 --- a/tests/i915/gem_ctx_param.c +++ b/tests/i915/gem_ctx_param.c @@ -28,6 +28,7 @@ #include <limits.h> #include "igt.h" +#include "i915/gem.h" #include "i915/gem_vm.h" IGT_TEST_DESCRIPTION("Basic test for context set/get param input validation."); diff --git a/tests/i915/gem_ctx_persistence.c b/tests/i915/gem_ctx_persistence.c index 3d52987d..a5450662 100644 --- a/tests/i915/gem_ctx_persistence.c +++ b/tests/i915/gem_ctx_persistence.c @@ -28,7 +28,8 @@ #include <sys/types.h> #include <unistd.h> -#include "drmtest.h" /* gem_quiescent_gpu()! */ +#include "drmtest.h" +#include "i915/gem.h" #include "i915/gem_context.h" #include "i915/gem_engine_topology.h" #include "i915/gem_ring.h" diff --git a/tests/i915/gem_ctx_ringsize.c b/tests/i915/gem_ctx_ringsize.c index ef321c52..f748ee51 100644 --- a/tests/i915/gem_ctx_ringsize.c +++ b/tests/i915/gem_ctx_ringsize.c @@ -29,7 +29,8 @@ #include <sys/types.h> #include <unistd.h> -#include "drmtest.h" /* gem_quiescent_gpu()! */ +#include "drmtest.h" +#include "i915/gem.h" #include "i915/gem_context.h" #include "i915/gem_engine_topology.h" #include "ioctl_wrappers.h" /* gem_wait()! */ diff --git a/tests/i915/gem_ctx_shared.c b/tests/i915/gem_ctx_shared.c index c9d30e43..43ff60ad 100644 --- a/tests/i915/gem_ctx_shared.c +++ b/tests/i915/gem_ctx_shared.c @@ -22,8 +22,6 @@ * */ -#include "igt.h" - #include <unistd.h> #include <stdlib.h> #include <stdint.h> @@ -38,7 +36,9 @@ #include <drm.h> +#include "i915/gem.h" #include "i915/gem_engine_topology.h" +#include "igt.h" #include "igt_rand.h" #include "igt_vgem.h" #include "sw_sync.h" diff --git a/tests/i915/gem_ctx_sseu.c b/tests/i915/gem_ctx_sseu.c index 3bef11b5..749ce336 100644 --- a/tests/i915/gem_ctx_sseu.c +++ b/tests/i915/gem_ctx_sseu.c @@ -25,7 +25,6 @@ * */ -#include "igt.h" #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -37,6 +36,9 @@ #include <sys/mman.h> #include <sys/wait.h> +#include "i915/gem.h" +#include "igt.h" +#include "igt.h" #include "igt_dummyload.h" #include "igt_perf.h" #include "igt_sysfs.h" diff --git a/tests/i915/gem_ctx_switch.c b/tests/i915/gem_ctx_switch.c index 5f94dac8..3d34c356 100644 --- a/tests/i915/gem_ctx_switch.c +++ b/tests/i915/gem_ctx_switch.c @@ -25,7 +25,6 @@ * */ -#include "igt.h" #include <limits.h> #include <unistd.h> #include <stdlib.h> @@ -39,7 +38,10 @@ #include <sys/ioctl.h> #include <sys/time.h> #include <time.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" #define LOCAL_I915_EXEC_NO_RELOC (1<<11) #define LOCAL_I915_EXEC_HANDLE_LUT (1<<12) diff --git a/tests/i915/gem_ctx_thrash.c b/tests/i915/gem_ctx_thrash.c index ae38a7ab..dc7259c1 100644 --- a/tests/i915/gem_ctx_thrash.c +++ b/tests/i915/gem_ctx_thrash.c @@ -22,8 +22,6 @@ * */ -#include "igt.h" -#include "igt_sysfs.h" #include <stdio.h> #include <string.h> #include <errno.h> @@ -32,6 +30,10 @@ #include <sys/stat.h> #include <sys/resource.h> +#include "i915/gem.h" +#include "igt.h" +#include "igt_sysfs.h" + IGT_TEST_DESCRIPTION("Fill the Gobal GTT with context objects and VMs\n"); #define NUM_THREADS (2*sysconf(_SC_NPROCESSORS_ONLN)) diff --git a/tests/i915/gem_eio.c b/tests/i915/gem_eio.c index 1ec60941..a1259067 100644 --- a/tests/i915/gem_eio.c +++ b/tests/i915/gem_eio.c @@ -41,6 +41,8 @@ #include <drm.h> +#include "i915/gem.h" +#include "i915/gem_ring.h" #include "igt.h" #include "igt_device.h" #include "igt_fb.h" @@ -48,7 +50,6 @@ #include "igt_stats.h" #include "igt_sysfs.h" #include "sw_sync.h" -#include "i915/gem_ring.h" IGT_TEST_DESCRIPTION("Test that specific ioctls report a wedged GPU (EIO)."); diff --git a/tests/i915/gem_evict_alignment.c b/tests/i915/gem_evict_alignment.c index da13fb65..d4a5877a 100644 --- a/tests/i915/gem_evict_alignment.c +++ b/tests/i915/gem_evict_alignment.c @@ -30,7 +30,6 @@ * Testcase: run a couple of big batches to force the unbind on misalignment code. */ -#include "igt.h" #include <unistd.h> #include <stdlib.h> #include <stdint.h> @@ -45,6 +44,8 @@ #include <drm.h> +#include "i915/gem.h" +#include "igt.h" IGT_TEST_DESCRIPTION("Run a couple of big batches to force the unbind on" " misalignment code."); diff --git a/tests/i915/gem_evict_everything.c b/tests/i915/gem_evict_everything.c index 2580a0b2..5d4d15c4 100644 --- a/tests/i915/gem_evict_everything.c +++ b/tests/i915/gem_evict_everything.c @@ -30,7 +30,6 @@ * Testcase: run a couple of big batches to force the eviction code. */ -#include "igt.h" #include <unistd.h> #include <stdlib.h> #include <stdint.h> @@ -42,7 +41,10 @@ #include <sys/stat.h> #include <sys/ioctl.h> #include <sys/time.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" #include "eviction_common.c" diff --git a/tests/i915/gem_exec_alignment.c b/tests/i915/gem_exec_alignment.c index 86279911..17a14bef 100644 --- a/tests/i915/gem_exec_alignment.c +++ b/tests/i915/gem_exec_alignment.c @@ -27,7 +27,6 @@ /* Exercises the basic execbuffer using object alignments */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -42,6 +41,8 @@ #include <sched.h> #include "drm.h" +#include "i915/gem.h" +#include "igt.h" IGT_TEST_DESCRIPTION("Exercises the basic execbuffer using object alignments"); diff --git a/tests/i915/gem_exec_async.c b/tests/i915/gem_exec_async.c index 70f9d20c..f4198eed 100644 --- a/tests/i915/gem_exec_async.c +++ b/tests/i915/gem_exec_async.c @@ -21,6 +21,7 @@ * IN THE SOFTWARE. */ +#include "i915/gem.h" #include "igt.h" #define LOCAL_OBJECT_ASYNC (1 << 6) diff --git a/tests/i915/gem_exec_await.c b/tests/i915/gem_exec_await.c index 7817b483..4c1771e2 100644 --- a/tests/i915/gem_exec_await.c +++ b/tests/i915/gem_exec_await.c @@ -22,14 +22,15 @@ * */ +#include <sys/ioctl.h> +#include <sys/signal.h> + +#include "i915/gem.h" +#include "i915/gem_ring.h" #include "igt.h" #include "igt_rand.h" #include "igt_sysfs.h" #include "igt_vgem.h" -#include "i915/gem_ring.h" - -#include <sys/ioctl.h> -#include <sys/signal.h> #define LOCAL_I915_EXEC_NO_RELOC (1<<11) #define LOCAL_I915_EXEC_HANDLE_LUT (1<<12) diff --git a/tests/i915/gem_exec_bad_domains.c b/tests/i915/gem_exec_bad_domains.c index cd2c8956..733964f4 100644 --- a/tests/i915/gem_exec_bad_domains.c +++ b/tests/i915/gem_exec_bad_domains.c @@ -25,7 +25,6 @@ * */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -34,7 +33,10 @@ #include <errno.h> #include <sys/stat.h> #include <sys/time.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" #include "intel_bufmgr.h" /* Testcase: Test whether the kernel rejects relocations with non-gpu domains diff --git a/tests/i915/gem_exec_balancer.c b/tests/i915/gem_exec_balancer.c index 60a90184..d4944e3f 100644 --- a/tests/i915/gem_exec_balancer.c +++ b/tests/i915/gem_exec_balancer.c @@ -23,10 +23,11 @@ #include <sched.h> +#include "i915/gem.h" +#include "i915/gem_ring.h" #include "igt.h" #include "igt_gt.h" #include "igt_perf.h" -#include "i915/gem_ring.h" #include "sw_sync.h" IGT_TEST_DESCRIPTION("Exercise in-kernel load-balancing"); diff --git a/tests/i915/gem_exec_big.c b/tests/i915/gem_exec_big.c index a5869330..63de42d5 100644 --- a/tests/i915/gem_exec_big.c +++ b/tests/i915/gem_exec_big.c @@ -32,7 +32,6 @@ * Mostly useful to stress-test the error-capture code */ -#include "igt.h" #include <unistd.h> #include <stdlib.h> #include <stdint.h> @@ -44,7 +43,10 @@ #include <sys/stat.h> #include <sys/ioctl.h> #include <sys/time.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" IGT_TEST_DESCRIPTION("Run a large nop batch to stress test the error capture" " code."); diff --git a/tests/i915/gem_exec_capture.c b/tests/i915/gem_exec_capture.c index bc13d863..dc721c1a 100644 --- a/tests/i915/gem_exec_capture.c +++ b/tests/i915/gem_exec_capture.c @@ -23,6 +23,7 @@ #include <zlib.h> +#include "i915/gem.h" #include "igt.h" #include "igt_device.h" #include "igt_rand.h" diff --git a/tests/i915/gem_exec_create.c b/tests/i915/gem_exec_create.c index e3ceb3f5..d3dd78ff 100644 --- a/tests/i915/gem_exec_create.c +++ b/tests/i915/gem_exec_create.c @@ -25,7 +25,6 @@ * */ -#include "igt.h" #include <unistd.h> #include <stdlib.h> #include <stdint.h> @@ -38,7 +37,10 @@ #include <sys/ioctl.h> #include <sys/time.h> #include <time.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" #define LOCAL_I915_EXEC_NO_RELOC (1<<11) #define LOCAL_I915_EXEC_HANDLE_LUT (1<<12) diff --git a/tests/i915/gem_exec_fence.c b/tests/i915/gem_exec_fence.c index 1baa0a36..20a5d49d 100644 --- a/tests/i915/gem_exec_fence.c +++ b/tests/i915/gem_exec_fence.c @@ -21,16 +21,17 @@ * IN THE SOFTWARE. */ +#include <sys/ioctl.h> +#include <sys/poll.h> +#include <sys/signal.h> + +#include "i915/gem.h" +#include "i915/gem_ring.h" #include "igt.h" #include "igt_syncobj.h" #include "igt_sysfs.h" #include "igt_vgem.h" #include "sw_sync.h" -#include "i915/gem_ring.h" - -#include <sys/ioctl.h> -#include <sys/poll.h> -#include <sys/signal.h> IGT_TEST_DESCRIPTION("Check that execbuf waits for explicit fences"); diff --git a/tests/i915/gem_exec_flush.c b/tests/i915/gem_exec_flush.c index 513cde36..7d9fcbfc 100644 --- a/tests/i915/gem_exec_flush.c +++ b/tests/i915/gem_exec_flush.c @@ -23,6 +23,7 @@ #include <time.h> +#include "i915/gem.h" #include "igt.h" #include "igt_x86.h" diff --git a/tests/i915/gem_exec_gttfill.c b/tests/i915/gem_exec_gttfill.c index 235fa6e0..7a6d7c0f 100644 --- a/tests/i915/gem_exec_gttfill.c +++ b/tests/i915/gem_exec_gttfill.c @@ -21,6 +21,7 @@ * IN THE SOFTWARE. */ +#include "i915/gem.h" #include "igt.h" #include "igt_rand.h" diff --git a/tests/i915/gem_exec_latency.c b/tests/i915/gem_exec_latency.c index d2159f31..0b85fd2e 100644 --- a/tests/i915/gem_exec_latency.c +++ b/tests/i915/gem_exec_latency.c @@ -22,7 +22,6 @@ * */ -#include "igt.h" #include <unistd.h> #include <stdlib.h> #include <stdint.h> @@ -40,11 +39,13 @@ #include "drm.h" +#include "igt.h" #include "igt_sysfs.h" #include "igt_vgem.h" #include "igt_dummyload.h" #include "igt_stats.h" +#include "i915/gem.h" #include "i915/gem_ring.h" #define LOCAL_I915_EXEC_NO_RELOC (1<<11) diff --git a/tests/i915/gem_exec_lut_handle.c b/tests/i915/gem_exec_lut_handle.c index 6f227628..bd69e941 100644 --- a/tests/i915/gem_exec_lut_handle.c +++ b/tests/i915/gem_exec_lut_handle.c @@ -27,7 +27,6 @@ /* Exercises the basic execbuffer using the handle LUT interface */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -36,7 +35,10 @@ #include <errno.h> #include <sys/stat.h> #include <sys/time.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" IGT_TEST_DESCRIPTION("Exercises the basic execbuffer using the handle LUT" " interface."); diff --git a/tests/i915/gem_exec_nop.c b/tests/i915/gem_exec_nop.c index 64ddb3db..357449c5 100644 --- a/tests/i915/gem_exec_nop.c +++ b/tests/i915/gem_exec_nop.c @@ -25,11 +25,6 @@ * */ -#include "igt.h" -#include "igt_device.h" -#include "igt_rand.h" -#include "igt_sysfs.h" - #include <unistd.h> #include <stdlib.h> #include <stdint.h> @@ -43,7 +38,14 @@ #include <sys/poll.h> #include <sys/time.h> #include <time.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" +#include "igt_device.h" +#include "igt_rand.h" +#include "igt_sysfs.h" + #define LOCAL_I915_EXEC_NO_RELOC (1<<11) #define LOCAL_I915_EXEC_HANDLE_LUT (1<<12) diff --git a/tests/i915/gem_exec_parallel.c b/tests/i915/gem_exec_parallel.c index 66fe1853..6d7cb3b8 100644 --- a/tests/i915/gem_exec_parallel.c +++ b/tests/i915/gem_exec_parallel.c @@ -29,6 +29,7 @@ #include <pthread.h> +#include "i915/gem.h" #include "igt.h" #include "igt_gt.h" diff --git a/tests/i915/gem_exec_params.c b/tests/i915/gem_exec_params.c index 45581738..bea857ad 100644 --- a/tests/i915/gem_exec_params.c +++ b/tests/i915/gem_exec_params.c @@ -25,9 +25,6 @@ * */ -#include "igt.h" -#include "igt_device.h" - #include <unistd.h> #include <stdlib.h> #include <stdint.h> @@ -39,8 +36,11 @@ #include <sys/stat.h> #include <sys/ioctl.h> #include <sys/time.h> -#include "drm.h" +#include "drm.h" +#include "i915/gem.h" +#include "igt.h" +#include "igt_device.h" #define LOCAL_I915_EXEC_VEBOX (4<<0) #define LOCAL_I915_EXEC_BSD_MASK (3<<13) diff --git a/tests/i915/gem_exec_reloc.c b/tests/i915/gem_exec_reloc.c index 2a18c3b2..f6fa55a3 100644 --- a/tests/i915/gem_exec_reloc.c +++ b/tests/i915/gem_exec_reloc.c @@ -24,6 +24,7 @@ #include <signal.h> #include <sys/ioctl.h> +#include "i915/gem.h" #include "igt.h" #include "igt_dummyload.h" #include "sw_sync.h" diff --git a/tests/i915/gem_exec_schedule.c b/tests/i915/gem_exec_schedule.c index 0e0056ce..e9e6f5be 100644 --- a/tests/i915/gem_exec_schedule.c +++ b/tests/i915/gem_exec_schedule.c @@ -34,12 +34,13 @@ #include <signal.h> #include <unistd.h> +#include "i915/gem.h" +#include "i915/gem_ring.h" #include "igt.h" #include "igt_rand.h" #include "igt_rapl.h" #include "igt_sysfs.h" #include "igt_vgem.h" -#include "i915/gem_ring.h" #include "sw_sync.h" #define LO 0 diff --git a/tests/i915/gem_exec_store.c b/tests/i915/gem_exec_store.c index 677db6f6..b37d63af 100644 --- a/tests/i915/gem_exec_store.c +++ b/tests/i915/gem_exec_store.c @@ -27,10 +27,12 @@ * Simplest non-NOOP only batch with verification. */ +#include <strings.h> + +#include "i915/gem.h" #include "igt.h" #include "igt_device.h" #include "igt_gt.h" -#include <strings.h> #define LOCAL_I915_EXEC_BSD_SHIFT (13) #define LOCAL_I915_EXEC_BSD_MASK (3 << LOCAL_I915_EXEC_BSD_SHIFT) diff --git a/tests/i915/gem_exec_suspend.c b/tests/i915/gem_exec_suspend.c index f0c53daf..8f2a781b 100644 --- a/tests/i915/gem_exec_suspend.c +++ b/tests/i915/gem_exec_suspend.c @@ -30,6 +30,7 @@ #include <fcntl.h> #include <unistd.h> +#include "i915/gem.h" #include "igt.h" #include "igt_dummyload.h" #include "igt_gt.h" diff --git a/tests/i915/gem_exec_whisper.c b/tests/i915/gem_exec_whisper.c index 153854d1..6e894342 100644 --- a/tests/i915/gem_exec_whisper.c +++ b/tests/i915/gem_exec_whisper.c @@ -27,6 +27,7 @@ * Pass around a value to write into a scratch buffer between lots of batches */ +#include "i915/gem.h" #include "igt.h" #include "igt_debugfs.h" #include "igt_rapl.h" diff --git a/tests/i915/gem_fenced_exec_thrash.c b/tests/i915/gem_fenced_exec_thrash.c index db1b15aa..b577a04f 100644 --- a/tests/i915/gem_fenced_exec_thrash.c +++ b/tests/i915/gem_fenced_exec_thrash.c @@ -30,6 +30,7 @@ #include <inttypes.h> #include <errno.h> +#include "i915/gem.h" #include "igt.h" IGT_TEST_DESCRIPTION("Test execbuf fence accounting."); diff --git a/tests/i915/gem_gpgpu_fill.c b/tests/i915/gem_gpgpu_fill.c index b2d401d6..fb1758bd 100644 --- a/tests/i915/gem_gpgpu_fill.c +++ b/tests/i915/gem_gpgpu_fill.c @@ -30,7 +30,6 @@ * workload for the GPGPU pipeline. */ -#include "igt.h" #include <stdbool.h> #include <unistd.h> #include <stdlib.h> @@ -42,7 +41,10 @@ #include <errno.h> #include <sys/stat.h> #include <sys/time.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" #include "intel_bufmgr.h" #define WIDTH 64 diff --git a/tests/i915/gem_gtt_hog.c b/tests/i915/gem_gtt_hog.c index 1ebef776..1372245b 100644 --- a/tests/i915/gem_gtt_hog.c +++ b/tests/i915/gem_gtt_hog.c @@ -25,7 +25,6 @@ * */ -#include "igt.h" #include <unistd.h> #include <stdlib.h> #include <stdint.h> @@ -40,6 +39,8 @@ #include <sys/wait.h> #include "drm.h" +#include "i915/gem.h" +#include "igt.h" static const uint32_t canary = 0xdeadbeef; diff --git a/tests/i915/gem_linear_blits.c b/tests/i915/gem_linear_blits.c index 0c6211c2..cae42d52 100644 --- a/tests/i915/gem_linear_blits.c +++ b/tests/i915/gem_linear_blits.c @@ -33,7 +33,6 @@ * The goal is to simply ensure the basics work. */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -45,6 +44,8 @@ #include <drm.h> +#include "i915/gem.h" +#include "igt.h" IGT_TEST_DESCRIPTION("Test doing many blits with a working set larger than the" " aperture size."); diff --git a/tests/i915/gem_media_fill.c b/tests/i915/gem_media_fill.c index c880bae9..3f0fec57 100644 --- a/tests/i915/gem_media_fill.c +++ b/tests/i915/gem_media_fill.c @@ -30,7 +30,6 @@ * workload for the Media pipeline. */ -#include "igt.h" #include <stdbool.h> #include <unistd.h> #include <stdlib.h> @@ -42,7 +41,10 @@ #include <errno.h> #include <sys/stat.h> #include <sys/time.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" #include "intel_bufmgr.h" IGT_TEST_DESCRIPTION("Basic test for the media_fill() function, a very simple" diff --git a/tests/i915/gem_media_vme.c b/tests/i915/gem_media_vme.c index 20f5ca35..c3af1b12 100644 --- a/tests/i915/gem_media_vme.c +++ b/tests/i915/gem_media_vme.c @@ -20,7 +20,6 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ -#include "igt.h" #include <stdbool.h> #include <unistd.h> #include <stdlib.h> @@ -32,7 +31,10 @@ #include <errno.h> #include <sys/stat.h> #include <sys/time.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" #include "intel_bufmgr.h" IGT_TEST_DESCRIPTION("A very simple workload for the VME media block."); diff --git a/tests/i915/gem_mmap_gtt.c b/tests/i915/gem_mmap_gtt.c index 38b4d02d..d4f3f7cb 100644 --- a/tests/i915/gem_mmap_gtt.c +++ b/tests/i915/gem_mmap_gtt.c @@ -41,6 +41,7 @@ #include <sys/wait.h> #include "drm.h" +#include "i915/gem.h" #include "igt.h" #include "igt_sysfs.h" #include "igt_x86.h" diff --git a/tests/i915/gem_mmap_offset.c b/tests/i915/gem_mmap_offset.c index 93336a22..23d26075 100644 --- a/tests/i915/gem_mmap_offset.c +++ b/tests/i915/gem_mmap_offset.c @@ -31,6 +31,7 @@ #include <sys/wait.h> #include "drm.h" +#include "i915/gem.h" #include "igt.h" #include "igt_x86.h" diff --git a/tests/i915/gem_non_secure_batch.c b/tests/i915/gem_non_secure_batch.c index 5f339914..0bc2c3b5 100644 --- a/tests/i915/gem_non_secure_batch.c +++ b/tests/i915/gem_non_secure_batch.c @@ -25,7 +25,6 @@ * */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -34,9 +33,12 @@ #include <errno.h> #include <sys/stat.h> #include <sys/time.h> + #include "drm.h" -#include "intel_bufmgr.h" #include "i830_reg.h" +#include "i915/gem.h" +#include "igt.h" +#include "intel_bufmgr.h" IGT_TEST_DESCRIPTION("Basic check of non-secure batches."); diff --git a/tests/i915/gem_partial_pwrite_pread.c b/tests/i915/gem_partial_pwrite_pread.c index afd43694..277a7390 100644 --- a/tests/i915/gem_partial_pwrite_pread.c +++ b/tests/i915/gem_partial_pwrite_pread.c @@ -25,7 +25,6 @@ * */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -37,6 +36,8 @@ #include <drm.h> +#include "i915/gem.h" +#include "igt.h" IGT_TEST_DESCRIPTION("Test pwrite/pread consistency when touching partial" " cachelines."); diff --git a/tests/i915/gem_pipe_control_store_loop.c b/tests/i915/gem_pipe_control_store_loop.c index e44e9fb5..863a4871 100644 --- a/tests/i915/gem_pipe_control_store_loop.c +++ b/tests/i915/gem_pipe_control_store_loop.c @@ -31,7 +31,6 @@ * Writes a counter-value into an always newly allocated target bo (by disabling * buffer reuse). Decently trashes on tlb inconsistencies, too. */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -40,7 +39,10 @@ #include <errno.h> #include <sys/stat.h> #include <sys/time.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" #include "intel_bufmgr.h" IGT_TEST_DESCRIPTION("Test (TLB-)Coherency of pipe_control QW writes."); diff --git a/tests/i915/gem_ppgtt.c b/tests/i915/gem_ppgtt.c index 4c7d3ba2..8c02e4af 100644 --- a/tests/i915/gem_ppgtt.c +++ b/tests/i915/gem_ppgtt.c @@ -21,7 +21,6 @@ * IN THE SOFTWARE. */ -#include "igt.h" #include <stdbool.h> #include <unistd.h> #include <stdlib.h> @@ -36,8 +35,10 @@ #include <drm.h> -#include "intel_bufmgr.h" +#include "i915/gem.h" +#include "igt.h" #include "igt_debugfs.h" +#include "intel_bufmgr.h" #define WIDTH 512 #define STRIDE (WIDTH*4) diff --git a/tests/i915/gem_pread_after_blit.c b/tests/i915/gem_pread_after_blit.c index e12b5d65..81454c93 100644 --- a/tests/i915/gem_pread_after_blit.c +++ b/tests/i915/gem_pread_after_blit.c @@ -34,7 +34,6 @@ * ranged-buffer-flush paths in the kernel. */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -46,6 +45,8 @@ #include <drm.h> +#include "i915/gem.h" +#include "igt.h" IGT_TEST_DESCRIPTION("Test pread behavior when getting values out of" " just-drawn-to buffers."); diff --git a/tests/i915/gem_pwrite_snooped.c b/tests/i915/gem_pwrite_snooped.c index 14f4c44a..4a339524 100644 --- a/tests/i915/gem_pwrite_snooped.c +++ b/tests/i915/gem_pwrite_snooped.c @@ -22,7 +22,6 @@ * */ -#include "igt.h" #include <unistd.h> #include <stdlib.h> #include <stdint.h> @@ -34,7 +33,10 @@ #include <sys/stat.h> #include <sys/ioctl.h> #include <sys/time.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" IGT_TEST_DESCRIPTION( "pwrite to a snooped bo then make it uncached and check that the GPU sees the data."); diff --git a/tests/i915/gem_read_read_speed.c b/tests/i915/gem_read_read_speed.c index 2aab2204..06b66935 100644 --- a/tests/i915/gem_read_read_speed.c +++ b/tests/i915/gem_read_read_speed.c @@ -26,8 +26,6 @@ * This is a test of performance with multiple readers from the same source. */ -#include "igt.h" -#include "igt_sysfs.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -41,6 +39,9 @@ #include <drm.h> +#include "i915/gem.h" +#include "igt.h" +#include "igt_sysfs.h" #include "intel_bufmgr.h" IGT_TEST_DESCRIPTION("Test speed of concurrent reads between engines."); diff --git a/tests/i915/gem_render_copy.c b/tests/i915/gem_render_copy.c index 22016424..1e1e79b9 100644 --- a/tests/i915/gem_render_copy.c +++ b/tests/i915/gem_render_copy.c @@ -29,8 +29,6 @@ * workload for the 3D engine. */ -#include "igt.h" -#include "igt_x86.h" #include <stdbool.h> #include <unistd.h> #include <cairo.h> @@ -46,6 +44,9 @@ #include <drm.h> +#include "i915/gem.h" +#include "igt.h" +#include "igt_x86.h" #include "intel_bufmgr.h" #include "rendercopy_bufmgr.h" diff --git a/tests/i915/gem_render_copy_redux.c b/tests/i915/gem_render_copy_redux.c index 2388fc24..a3f77e84 100644 --- a/tests/i915/gem_render_copy_redux.c +++ b/tests/i915/gem_render_copy_redux.c @@ -32,7 +32,6 @@ * the execbuffer interface with a simple render workload. */ -#include "igt.h" #include <stdbool.h> #include <unistd.h> #include <stdlib.h> @@ -47,6 +46,8 @@ #include <drm.h> +#include "i915/gem.h" +#include "igt.h" #include "intel_bufmgr.h" IGT_TEST_DESCRIPTION("Advanced test for the render_copy() function."); diff --git a/tests/i915/gem_render_linear_blits.c b/tests/i915/gem_render_linear_blits.c index 666a43cd..55a9e6be 100644 --- a/tests/i915/gem_render_linear_blits.c +++ b/tests/i915/gem_render_linear_blits.c @@ -35,7 +35,6 @@ #include "config.h" -#include "igt.h" #include <stdlib.h> #include <sys/ioctl.h> #include <stdio.h> @@ -48,6 +47,8 @@ #include <drm.h> +#include "i915/gem.h" +#include "igt.h" #include "intel_bufmgr.h" #define WIDTH 512 diff --git a/tests/i915/gem_render_tiled_blits.c b/tests/i915/gem_render_tiled_blits.c index 5f49b3fe..bd76066a 100644 --- a/tests/i915/gem_render_tiled_blits.c +++ b/tests/i915/gem_render_tiled_blits.c @@ -33,7 +33,6 @@ * The goal is to simply ensure the basics work. */ -#include "igt.h" #include <stdlib.h> #include <sys/ioctl.h> #include <stdio.h> @@ -46,6 +45,8 @@ #include <drm.h> +#include "i915/gem.h" +#include "igt.h" #include "intel_bufmgr.h" #define WIDTH 512 diff --git a/tests/i915/gem_request_retire.c b/tests/i915/gem_request_retire.c index 7efea0b6..4a1ec115 100644 --- a/tests/i915/gem_request_retire.c +++ b/tests/i915/gem_request_retire.c @@ -30,7 +30,6 @@ * Collection of tests targeting request retirement code paths. */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -47,6 +46,8 @@ #include "drm.h" #include "i915_drm.h" +#include "i915/gem.h" +#include "igt.h" #include "intel_bufmgr.h" IGT_TEST_DESCRIPTION("Collection of tests targeting request retirement code" diff --git a/tests/i915/gem_reset_stats.c b/tests/i915/gem_reset_stats.c index 9c7b6645..e2d2dd8b 100644 --- a/tests/i915/gem_reset_stats.c +++ b/tests/i915/gem_reset_stats.c @@ -25,8 +25,6 @@ * */ -#include "igt.h" -#include "igt_sysfs.h" #include <limits.h> #include <stdbool.h> #include <unistd.h> @@ -42,6 +40,9 @@ #include <time.h> #include <signal.h> +#include "i915/gem.h" +#include "igt.h" +#include "igt_sysfs.h" #define RS_NO_ERROR 0 #define RS_BATCH_ACTIVE (1 << 0) diff --git a/tests/i915/gem_ringfill.c b/tests/i915/gem_ringfill.c index 4c73f4d9..a2157bd6 100644 --- a/tests/i915/gem_ringfill.c +++ b/tests/i915/gem_ringfill.c @@ -31,11 +31,12 @@ * catching failure to manage the ring properly near full. */ +#include "i915/gem.h" +#include "i915/gem_ring.h" #include "igt.h" #include "igt_device.h" #include "igt_gt.h" #include "igt_vgem.h" -#include "i915/gem_ring.h" #include <signal.h> #include <sys/ioctl.h> diff --git a/tests/i915/gem_set_tiling_vs_blt.c b/tests/i915/gem_set_tiling_vs_blt.c index 16edaf39..cb164154 100644 --- a/tests/i915/gem_set_tiling_vs_blt.c +++ b/tests/i915/gem_set_tiling_vs_blt.c @@ -44,7 +44,6 @@ * transitions (i.e. changing stride). */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -54,7 +53,10 @@ #include <sys/stat.h> #include <sys/time.h> #include <stdbool.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" #include "intel_bufmgr.h" IGT_TEST_DESCRIPTION("Check for proper synchronization of tiling changes vs." diff --git a/tests/i915/gem_shrink.c b/tests/i915/gem_shrink.c index e434613e..c9964ccc 100644 --- a/tests/i915/gem_shrink.c +++ b/tests/i915/gem_shrink.c @@ -27,6 +27,7 @@ * Exercise the shrinker by overallocating GEM objects */ +#include "i915/gem.h" #include "igt.h" #include "igt_gt.h" #include "igt_debugfs.h" diff --git a/tests/i915/gem_softpin.c b/tests/i915/gem_softpin.c index 4204323e..684dcfd4 100644 --- a/tests/i915/gem_softpin.c +++ b/tests/i915/gem_softpin.c @@ -26,6 +26,7 @@ * */ +#include "i915/gem.h" #include "igt.h" #define EXEC_OBJECT_PINNED (1<<4) diff --git a/tests/i915/gem_spin_batch.c b/tests/i915/gem_spin_batch.c index 1142a77c..e7dd58ec 100644 --- a/tests/i915/gem_spin_batch.c +++ b/tests/i915/gem_spin_batch.c @@ -22,6 +22,7 @@ * */ +#include "i915/gem.h" #include "igt.h" #define MAX_ERROR 5 /* % */ diff --git a/tests/i915/gem_streaming_writes.c b/tests/i915/gem_streaming_writes.c index e83d69de..bd44e134 100644 --- a/tests/i915/gem_streaming_writes.c +++ b/tests/i915/gem_streaming_writes.c @@ -25,7 +25,6 @@ * */ -#include "igt.h" #include <unistd.h> #include <stdlib.h> #include <stdio.h> @@ -36,7 +35,10 @@ #include <errno.h> #include <sys/stat.h> #include <sys/ioctl.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" #define OBJECT_SIZE 1024*1024 #define CHUNK_SIZE 32 diff --git a/tests/i915/gem_sync.c b/tests/i915/gem_sync.c index b50ad4f2..6b3c76ec 100644 --- a/tests/i915/gem_sync.c +++ b/tests/i915/gem_sync.c @@ -24,6 +24,7 @@ #include <time.h> #include <pthread.h> +#include "i915/gem.h" #include "igt_debugfs.h" #include "igt_dummyload.h" #include "igt_gt.h" diff --git a/tests/i915/gem_tiled_blits.c b/tests/i915/gem_tiled_blits.c index 7fd11e05..36e96785 100644 --- a/tests/i915/gem_tiled_blits.c +++ b/tests/i915/gem_tiled_blits.c @@ -41,7 +41,6 @@ * resulted. */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -53,6 +52,8 @@ #include <drm.h> +#include "i915/gem.h" +#include "igt.h" IGT_TEST_DESCRIPTION("Test doing many tiled blits, with a working set larger" " than the aperture size."); diff --git a/tests/i915/gem_tiled_fence_blits.c b/tests/i915/gem_tiled_fence_blits.c index f927c819..99ec78f9 100644 --- a/tests/i915/gem_tiled_fence_blits.c +++ b/tests/i915/gem_tiled_fence_blits.c @@ -41,6 +41,7 @@ * resulted. */ +#include "i915/gem.h" #include "igt.h" #include "igt_x86.h" diff --git a/tests/i915/gem_tiled_partial_pwrite_pread.c b/tests/i915/gem_tiled_partial_pwrite_pread.c index 399c118f..7de5358b 100644 --- a/tests/i915/gem_tiled_partial_pwrite_pread.c +++ b/tests/i915/gem_tiled_partial_pwrite_pread.c @@ -25,7 +25,6 @@ * */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -37,6 +36,8 @@ #include <drm.h> +#include "i915/gem.h" +#include "igt.h" IGT_TEST_DESCRIPTION("Test pwrite/pread consistency when touching partial" " cachelines."); diff --git a/tests/i915/gem_unfence_active_buffers.c b/tests/i915/gem_unfence_active_buffers.c index c1670dd5..1e69c70d 100644 --- a/tests/i915/gem_unfence_active_buffers.c +++ b/tests/i915/gem_unfence_active_buffers.c @@ -38,7 +38,6 @@ * problem - the race window is too small. */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -48,7 +47,10 @@ #include <sys/stat.h> #include <sys/time.h> #include <stdbool.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" #include "intel_bufmgr.h" IGT_TEST_DESCRIPTION("Check for use-after-free in the fence stealing code."); diff --git a/tests/i915/gem_unref_active_buffers.c b/tests/i915/gem_unref_active_buffers.c index 2adf0f1a..75394794 100644 --- a/tests/i915/gem_unref_active_buffers.c +++ b/tests/i915/gem_unref_active_buffers.c @@ -32,7 +32,6 @@ * will be the last one to hold a reference on them. Usually libdrm bo caching * prevents that by keeping another reference. */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -41,7 +40,10 @@ #include <errno.h> #include <sys/stat.h> #include <sys/time.h> + #include "drm.h" +#include "i915/gem.h" +#include "igt.h" #include "intel_bufmgr.h" IGT_TEST_DESCRIPTION("Test unreferencing of active buffers."); diff --git a/tests/i915/gem_userptr_blits.c b/tests/i915/gem_userptr_blits.c index 17f4d10f..05f96e75 100644 --- a/tests/i915/gem_userptr_blits.c +++ b/tests/i915/gem_userptr_blits.c @@ -38,7 +38,6 @@ #include <linux/userfaultfd.h> -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -61,6 +60,8 @@ #include "drm.h" #include "i915_drm.h" +#include "i915/gem.h" +#include "igt.h" #include "intel_bufmgr.h" #include "eviction_common.c" diff --git a/tests/i915/gem_vm_create.c b/tests/i915/gem_vm_create.c index a6d2dd91..e8af68f1 100644 --- a/tests/i915/gem_vm_create.c +++ b/tests/i915/gem_vm_create.c @@ -21,9 +21,10 @@ * IN THE SOFTWARE. */ +#include "i915/gem.h" +#include "i915/gem_vm.h" #include "igt.h" #include "igt_dummyload.h" -#include "i915/gem_vm.h" static int vm_create_ioctl(int i915, struct drm_i915_gem_vm_control *ctl) { diff --git a/tests/i915/gem_wait.c b/tests/i915/gem_wait.c index 43b3a658..7b2b1c2b 100644 --- a/tests/i915/gem_wait.c +++ b/tests/i915/gem_wait.c @@ -27,6 +27,7 @@ #include <sys/poll.h> +#include "i915/gem.h" #include "igt.h" #include "igt_vgem.h" diff --git a/tests/i915/gem_workarounds.c b/tests/i915/gem_workarounds.c index 2fce445d..4f043d7d 100644 --- a/tests/i915/gem_workarounds.c +++ b/tests/i915/gem_workarounds.c @@ -25,10 +25,11 @@ * */ -#include "igt.h" - #include <fcntl.h> +#include "i915/gem.h" +#include "igt.h" + #define PAGE_SIZE 4096 #define PAGE_ALIGN(x) ALIGN(x, PAGE_SIZE) diff --git a/tests/i915/gen3_mixed_blits.c b/tests/i915/gen3_mixed_blits.c index 1a954b65..10a8cd3e 100644 --- a/tests/i915/gen3_mixed_blits.c +++ b/tests/i915/gen3_mixed_blits.c @@ -33,7 +33,6 @@ * The goal is to simply ensure the basics work. */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -43,9 +42,11 @@ #include <sys/stat.h> #include <sys/time.h> #include <sys/ioctl.h> -#include "drm.h" +#include "drm.h" +#include "i915/gem.h" #include "i915_reg.h" +#include "igt.h" #define WIDTH (512) #define HEIGHT (512) diff --git a/tests/i915/gen3_render_linear_blits.c b/tests/i915/gen3_render_linear_blits.c index c2cbc0b8..d88a2c93 100644 --- a/tests/i915/gen3_render_linear_blits.c +++ b/tests/i915/gen3_render_linear_blits.c @@ -33,7 +33,6 @@ * The goal is to simply ensure the basics work. */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -42,9 +41,11 @@ #include <errno.h> #include <sys/stat.h> #include <sys/time.h> -#include "drm.h" +#include "drm.h" +#include "i915/gem.h" #include "i915_reg.h" +#include "igt.h" #define WIDTH 512 #define HEIGHT 512 diff --git a/tests/i915/gen3_render_mixed_blits.c b/tests/i915/gen3_render_mixed_blits.c index 8cb7af34..cda175bd 100644 --- a/tests/i915/gen3_render_mixed_blits.c +++ b/tests/i915/gen3_render_mixed_blits.c @@ -33,7 +33,6 @@ * The goal is to simply ensure the basics work. */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -43,9 +42,11 @@ #include <sys/stat.h> #include <sys/time.h> #include <sys/ioctl.h> -#include "drm.h" +#include "drm.h" +#include "i915/gem.h" #include "i915_reg.h" +#include "igt.h" #define WIDTH 512 #define HEIGHT 512 diff --git a/tests/i915/gen3_render_tiledx_blits.c b/tests/i915/gen3_render_tiledx_blits.c index 3939c07b..579205f3 100644 --- a/tests/i915/gen3_render_tiledx_blits.c +++ b/tests/i915/gen3_render_tiledx_blits.c @@ -33,7 +33,6 @@ * The goal is to simply ensure the basics work. */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -43,9 +42,11 @@ #include <sys/stat.h> #include <sys/time.h> #include <sys/ioctl.h> -#include "drm.h" +#include "drm.h" +#include "i915/gem.h" #include "i915_reg.h" +#include "igt.h" #define WIDTH 512 #define HEIGHT 512 diff --git a/tests/i915/gen3_render_tiledy_blits.c b/tests/i915/gen3_render_tiledy_blits.c index f0e6535f..931e91a3 100644 --- a/tests/i915/gen3_render_tiledy_blits.c +++ b/tests/i915/gen3_render_tiledy_blits.c @@ -33,7 +33,6 @@ * The goal is to simply ensure the basics work. */ -#include "igt.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -45,7 +44,9 @@ #include <sys/ioctl.h> #include "drm.h" +#include "i915/gem.h" #include "i915_reg.h" +#include "igt.h" #define WIDTH 512 #define HEIGHT 512 diff --git a/tests/i915/gen7_exec_parse.c b/tests/i915/gen7_exec_parse.c index 5578340f..2ba438c9 100644 --- a/tests/i915/gen7_exec_parse.c +++ b/tests/i915/gen7_exec_parse.c @@ -22,7 +22,6 @@ * */ -#include "igt.h" #include <stdlib.h> #include <stdint.h> #include <stdio.h> @@ -30,6 +29,8 @@ #include <drm.h> +#include "igt.h" +#include "i915/gem.h" #include "sw_sync.h" #define DERRMR 0x44050 diff --git a/tests/i915/gen9_exec_parse.c b/tests/i915/gen9_exec_parse.c index 854c5986..8cd82f56 100644 --- a/tests/i915/gen9_exec_parse.c +++ b/tests/i915/gen9_exec_parse.c @@ -28,8 +28,9 @@ #include <stdio.h> #include <stdlib.h> -#include "igt.h" +#include "i915/gem.h" #include "i915/gem_submission.h" +#include "igt.h" #include "sw_sync.h" /* To help craft commands known to be invalid across all engines */ diff --git a/tests/i915/i915_hangman.c b/tests/i915/i915_hangman.c index 13cd6208..2b341c4b 100644 --- a/tests/i915/i915_hangman.c +++ b/tests/i915/i915_hangman.c @@ -26,12 +26,13 @@ * */ -#include "igt.h" #include <limits.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> +#include "i915/gem.h" +#include "igt.h" #include "igt_sysfs.h" #include "igt_debugfs.h" diff --git a/tests/i915/i915_pm_rc6_residency.c b/tests/i915/i915_pm_rc6_residency.c index 9dc26a81..144bcd02 100644 --- a/tests/i915/i915_pm_rc6_residency.c +++ b/tests/i915/i915_pm_rc6_residency.c @@ -33,6 +33,7 @@ #include <errno.h> #include <time.h> +#include "i915/gem.h" #include "igt.h" #include "igt_perf.h" #include "igt_rapl.h" diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c index fedef872..47e74856 100644 --- a/tests/i915/i915_pm_rpm.c +++ b/tests/i915/i915_pm_rpm.c @@ -45,6 +45,7 @@ #include <drm.h> +#include "i915/gem.h" #include "igt.h" #include "igt_kmod.h" #include "igt_sysfs.h" diff --git a/tests/i915/i915_pm_rps.c b/tests/i915/i915_pm_rps.c index 68b66c16..943a5098 100644 --- a/tests/i915/i915_pm_rps.c +++ b/tests/i915/i915_pm_rps.c @@ -36,6 +36,7 @@ #include <time.h> #include <sys/wait.h> +#include "i915/gem.h" #include "igt.h" #include "igt_dummyload.h" #include "igt_sysfs.h" diff --git a/tests/i915/i915_pm_sseu.c b/tests/i915/i915_pm_sseu.c index c2dee118..461c70cc 100644 --- a/tests/i915/i915_pm_sseu.c +++ b/tests/i915/i915_pm_sseu.c @@ -24,13 +24,16 @@ * Jeff McGee <jeff.mcgee@intel.com> */ -#include "igt.h" #include <fcntl.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <time.h> + #include "i915_drm.h" + +#include "i915/gem.h" +#include "igt.h" #include "intel_bufmgr.h" IGT_TEST_DESCRIPTION("Tests slice/subslice/EU power gating functionality.\n"); diff --git a/tests/i915/i915_suspend.c b/tests/i915/i915_suspend.c index 83a4fa54..15340edc 100644 --- a/tests/i915/i915_suspend.c +++ b/tests/i915/i915_suspend.c @@ -26,7 +26,6 @@ * */ -#include "igt.h" #include <unistd.h> #include <stdlib.h> #include <stdio.h> @@ -39,6 +38,8 @@ #include <drm.h> +#include "i915/gem.h" +#include "igt.h" #include "igt_device.h" #define OBJECT_SIZE (16*1024*1024) diff --git a/tests/i915/sysfs_heartbeat_interval.c b/tests/i915/sysfs_heartbeat_interval.c index 662f4865..6266f3e8 100644 --- a/tests/i915/sysfs_heartbeat_interval.c +++ b/tests/i915/sysfs_heartbeat_interval.c @@ -31,15 +31,15 @@ #include <sys/wait.h> #include <unistd.h> -#include "drmtest.h" /* gem_quiescent_gpu()! */ +#include "drmtest.h" +#include "i915/gem.h" +#include "i915/gem_context.h" #include "i915/gem_engine_topology.h" +#include "igt_debugfs.h" #include "igt_dummyload.h" #include "igt_sysfs.h" -#include "ioctl_wrappers.h" /* igt_require_gem()! */ #include "sw_sync.h" -#include "igt_debugfs.h" - #define ATTR "heartbeat_interval_ms" #define RESET_TIMEOUT 50 /* milliseconds, at least one jiffie for kworker */ diff --git a/tests/i915/sysfs_preempt_timeout.c b/tests/i915/sysfs_preempt_timeout.c index a7e93a4d..785289cb 100644 --- a/tests/i915/sysfs_preempt_timeout.c +++ b/tests/i915/sysfs_preempt_timeout.c @@ -29,15 +29,15 @@ #include <sys/types.h> #include <unistd.h> -#include "drmtest.h" /* gem_quiescent_gpu()! */ +#include "drmtest.h" +#include "i915/gem.h" +#include "i915/gem_context.h" #include "i915/gem_engine_topology.h" +#include "igt_debugfs.h" #include "igt_dummyload.h" #include "igt_sysfs.h" -#include "ioctl_wrappers.h" /* igt_require_gem()! */ #include "sw_sync.h" -#include "igt_debugfs.h" - #define ATTR "preempt_timeout_ms" #define RESET_TIMEOUT 50 /* milliseconds, at least one jiffie for kworker */ diff --git a/tests/i915/sysfs_timeslice_duration.c b/tests/i915/sysfs_timeslice_duration.c index b983df43..1eeac830 100644 --- a/tests/i915/sysfs_timeslice_duration.c +++ b/tests/i915/sysfs_timeslice_duration.c @@ -29,12 +29,13 @@ #include <sys/types.h> #include <unistd.h> -#include "drmtest.h" /* gem_quiescent_gpu()! */ +#include "drmtest.h" +#include "i915/gem.h" #include "i915/gem_engine_topology.h" #include "i915/gem_mman.h" #include "igt_dummyload.h" #include "igt_sysfs.h" -#include "ioctl_wrappers.h" /* igt_require_gem()! */ +#include "ioctl_wrappers.h" #include "intel_chipset.h" #include "intel_reg.h" #include "sw_sync.h" |