mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-11 16:32:58 +00:00
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:
+1
-1
@@ -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
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.");
|
||||
|
||||
|
||||
@@ -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.");
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
#include "ioctl_wrappers.h"
|
||||
#include "drmtest.h"
|
||||
#include "intel_chipset.h"
|
||||
#include "igt_gt.h"
|
||||
|
||||
#include "eviction_common.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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
@@ -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)
|
||||
|
||||
@@ -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
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user