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>
This commit is contained in:
Daniel Vetter
2015-02-10 17:46:43 +01:00
parent 25c4347078
commit 3cd45dec2e
23 changed files with 300 additions and 246 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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)
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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.");
+1
View File
@@ -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.");
+1
View File
@@ -45,6 +45,7 @@
#include "ioctl_wrappers.h"
#include "drmtest.h"
#include "intel_chipset.h"
#include "igt_gt.h"
#include "eviction_common.c"
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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;