summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2015-02-10 17:46:43 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-02-13 09:35:36 +0100
commit3cd45dec2e4be3edacdfc233089b6bd3651fa595 (patch)
treeae12a86adb402916187eca5bf4715d12546788a4 /tests
parent25c4347078f181a938eaaefbed7e2e27c9dc1a3f (diff)
lib/igt_gt: Document and consolidate
Also move forcewake and stop_rings code from igt_debugfs to igt_gt since it fits better. And move the hang injection fork helpers from igt_aux to igt_gt, too. Also push the intel_gen call into igt_hang_ring while at it. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/drv_hangman.c2
-rw-r--r--tests/drv_suspend.c2
-rw-r--r--tests/gem_concurrent_blit.c4
-rw-r--r--tests/gem_ctx_exec.c2
-rw-r--r--tests/gem_evict_alignment.c1
-rw-r--r--tests/gem_evict_everything.c1
-rw-r--r--tests/gem_pread_after_blit.c2
-rw-r--r--tests/gem_reloc_vs_gpu.c2
-rw-r--r--tests/gem_reset_stats.c2
-rw-r--r--tests/gem_workarounds.c2
-rw-r--r--tests/kms_flip.c2
-rw-r--r--tests/kms_pipe_crc_basic.c2
-rw-r--r--tests/pm_rpm.c2
-rw-r--r--tests/pm_rps.c2
14 files changed, 15 insertions, 13 deletions
diff --git a/tests/drv_hangman.c b/tests/drv_hangman.c
index 15918ba6..a882822b 100644
--- a/tests/drv_hangman.c
+++ b/tests/drv_hangman.c
@@ -34,7 +34,7 @@
#include "intel_chipset.h"
#include "drmtest.h"
#include "igt_aux.h"
-#include "igt_debugfs.h"
+#include "igt_gt.h"
#include "ioctl_wrappers.h"
#ifndef I915_PARAM_CMD_PARSER_VERSION
diff --git a/tests/drv_suspend.c b/tests/drv_suspend.c
index 80f6a225..d96f316a 100644
--- a/tests/drv_suspend.c
+++ b/tests/drv_suspend.c
@@ -39,7 +39,7 @@
#include "ioctl_wrappers.h"
#include "drmtest.h"
-#include "igt_debugfs.h"
+#include "igt_gt.h"
#include "igt_aux.h"
#define OBJECT_SIZE (16*1024*1024)
diff --git a/tests/gem_concurrent_blit.c b/tests/gem_concurrent_blit.c
index 0b0adce7..e1693ba7 100644
--- a/tests/gem_concurrent_blit.c
+++ b/tests/gem_concurrent_blit.c
@@ -464,12 +464,12 @@ static struct igt_hang_ring no_hang(void)
static struct igt_hang_ring bcs_hang(void)
{
- return igt_hang_ring(fd, gen, I915_EXEC_BLT);
+ return igt_hang_ring(fd, I915_EXEC_BLT);
}
static struct igt_hang_ring rcs_hang(void)
{
- return igt_hang_ring(fd, gen, I915_EXEC_RENDER);
+ return igt_hang_ring(fd, I915_EXEC_RENDER);
}
static void hang_require(void)
diff --git a/tests/gem_ctx_exec.c b/tests/gem_ctx_exec.c
index ead3d463..43b38a2f 100644
--- a/tests/gem_ctx_exec.c
+++ b/tests/gem_ctx_exec.c
@@ -46,7 +46,7 @@
#include "ioctl_wrappers.h"
#include "drmtest.h"
#include "igt_aux.h"
-#include "igt_debugfs.h"
+#include "igt_gt.h"
IGT_TEST_DESCRIPTION("Test basic context switch functionality.");
diff --git a/tests/gem_evict_alignment.c b/tests/gem_evict_alignment.c
index 0ec58099..c0757705 100644
--- a/tests/gem_evict_alignment.c
+++ b/tests/gem_evict_alignment.c
@@ -48,6 +48,7 @@
#include "drmtest.h"
#include "intel_chipset.h"
#include "igt_aux.h"
+#include "igt_gt.h"
IGT_TEST_DESCRIPTION("Run a couple of big batches to force the unbind on"
" misalignment code.");
diff --git a/tests/gem_evict_everything.c b/tests/gem_evict_everything.c
index ad198f02..15ab382a 100644
--- a/tests/gem_evict_everything.c
+++ b/tests/gem_evict_everything.c
@@ -45,6 +45,7 @@
#include "ioctl_wrappers.h"
#include "drmtest.h"
#include "intel_chipset.h"
+#include "igt_gt.h"
#include "eviction_common.c"
diff --git a/tests/gem_pread_after_blit.c b/tests/gem_pread_after_blit.c
index 6e4bd625..8ed43100 100644
--- a/tests/gem_pread_after_blit.c
+++ b/tests/gem_pread_after_blit.c
@@ -132,7 +132,7 @@ static struct igt_hang_ring no_hang(int fd)
static struct igt_hang_ring bcs_hang(int fd)
{
- return igt_hang_ring(fd, batch->gen, batch->gen >= 6 ? I915_EXEC_BLT : I915_EXEC_DEFAULT);
+ return igt_hang_ring(fd, batch->gen >= 6 ? I915_EXEC_BLT : I915_EXEC_DEFAULT);
}
static void do_test(int fd, int cache_level,
diff --git a/tests/gem_reloc_vs_gpu.c b/tests/gem_reloc_vs_gpu.c
index 68bd17d3..79f182b4 100644
--- a/tests/gem_reloc_vs_gpu.c
+++ b/tests/gem_reloc_vs_gpu.c
@@ -198,7 +198,7 @@ static struct igt_hang_ring no_hang(int fd)
static struct igt_hang_ring bcs_hang(int fd)
{
- return igt_hang_ring(fd, batch->gen, I915_EXEC_BLT);
+ return igt_hang_ring(fd, I915_EXEC_BLT);
}
static void do_test(int fd, bool faulting_reloc,
diff --git a/tests/gem_reset_stats.c b/tests/gem_reset_stats.c
index faa209c1..d3cfe8b1 100644
--- a/tests/gem_reset_stats.c
+++ b/tests/gem_reset_stats.c
@@ -42,7 +42,7 @@
#include "ioctl_wrappers.h"
#include "drmtest.h"
-#include "igt_debugfs.h"
+#include "igt_gt.h"
#include "intel_chipset.h"
#include "intel_io.h"
#include "igt_aux.h"
diff --git a/tests/gem_workarounds.c b/tests/gem_workarounds.c
index 7511a430..0e3613f3 100644
--- a/tests/gem_workarounds.c
+++ b/tests/gem_workarounds.c
@@ -42,7 +42,7 @@
#include "ioctl_wrappers.h"
#include "drmtest.h"
-#include "igt_debugfs.h"
+#include "igt_gt.h"
#include "igt_aux.h"
#include "intel_chipset.h"
#include "intel_io.h"
diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index 09dc3c79..b8434781 100644
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -48,7 +48,7 @@
#include "intel_batchbuffer.h"
#include "igt_kms.h"
#include "igt_aux.h"
-#include "igt_debugfs.h"
+#include "igt_gt.h"
#define TEST_DPMS (1 << 0)
#define TEST_WITH_DUMMY_BCS (1 << 1)
diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c
index 7380c8a1..a658b39d 100644
--- a/tests/kms_pipe_crc_basic.c
+++ b/tests/kms_pipe_crc_basic.c
@@ -28,7 +28,7 @@
#include <string.h>
#include "drmtest.h"
-#include "igt_debugfs.h"
+#include "igt_gt.h"
#include "igt_kms.h"
#include "igt_aux.h"
#include "ioctl_wrappers.h"
diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c
index c120d75e..84254b79 100644
--- a/tests/pm_rpm.c
+++ b/tests/pm_rpm.c
@@ -49,7 +49,7 @@
#include "ioctl_wrappers.h"
#include "igt_aux.h"
#include "igt_kms.h"
-#include "igt_debugfs.h"
+#include "igt_gt.h"
/* One day, this will be on your libdrm. */
#define DRM_CLIENT_CAP_UNIVERSAL_PLANES 2
diff --git a/tests/pm_rps.c b/tests/pm_rps.c
index f222c09d..d6897881 100644
--- a/tests/pm_rps.c
+++ b/tests/pm_rps.c
@@ -42,7 +42,7 @@
#include "intel_bufmgr.h"
#include "intel_batchbuffer.h"
#include "intel_chipset.h"
-#include "igt_debugfs.h"
+#include "igt_gt.h"
#include "ioctl_wrappers.h"
static int drm_fd;