mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
tests: add more test descriptions
Add more test descriptions based on exiting comments. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
parent
029dee7979
commit
b2ac2642a9
@ -50,6 +50,8 @@ struct intel_batchbuffer *batch;
|
|||||||
* this checks whether they actually work.
|
* this checks whether they actually work.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Check whether the libdrm vma limiter works.");
|
||||||
|
|
||||||
/* we do both cpu and gtt maps, so only need half of 64k to exhaust */
|
/* we do both cpu and gtt maps, so only need half of 64k to exhaust */
|
||||||
#define BO_ARRAY_SIZE 35000
|
#define BO_ARRAY_SIZE 35000
|
||||||
drm_intel_bo *bos[BO_ARRAY_SIZE];
|
drm_intel_bo *bos[BO_ARRAY_SIZE];
|
||||||
|
@ -38,8 +38,10 @@
|
|||||||
#include "ioctl_wrappers.h"
|
#include "ioctl_wrappers.h"
|
||||||
#include "drmtest.h"
|
#include "drmtest.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test minimal bo_create and batchbuffer exec.");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Testcase: Minmal bo_create and batchbuffer exec
|
* Testcase: Minimal bo_create and batchbuffer exec
|
||||||
*
|
*
|
||||||
* Originally this caught an kernel oops due to the unchecked assumption that
|
* Originally this caught an kernel oops due to the unchecked assumption that
|
||||||
* objects have size > 0.
|
* objects have size > 0.
|
||||||
|
@ -42,6 +42,9 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Simulates SNA behaviour using negative self-relocations"
|
||||||
|
" for STATE_BASE_ADDRESS command packets.");
|
||||||
|
|
||||||
#define USE_LUT (1 << 12)
|
#define USE_LUT (1 << 12)
|
||||||
|
|
||||||
/* Simulates SNA behaviour using negative self-relocations for
|
/* Simulates SNA behaviour using negative self-relocations for
|
||||||
|
@ -45,6 +45,9 @@
|
|||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test snoop consistency when touching partial"
|
||||||
|
" cachelines.");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Testcase: snoop consistency when touching partial cachelines
|
* Testcase: snoop consistency when touching partial cachelines
|
||||||
*
|
*
|
||||||
|
@ -55,6 +55,9 @@
|
|||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test of pread/pwrite behavior when writing to active"
|
||||||
|
" buffers.");
|
||||||
|
|
||||||
int fd, devid, gen;
|
int fd, devid, gen;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
|
|
||||||
|
@ -64,6 +64,8 @@
|
|||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test the relocations through the CPU domain.");
|
||||||
|
|
||||||
static uint32_t use_blt;
|
static uint32_t use_blt;
|
||||||
|
|
||||||
static void copy(int fd, uint32_t batch, uint32_t src, uint32_t dst)
|
static void copy(int fd, uint32_t batch, uint32_t src, uint32_t dst)
|
||||||
|
@ -54,6 +54,8 @@
|
|||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test the CS prefetch behaviour on batches.");
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
|
|
||||||
|
@ -54,6 +54,8 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Check whether we correctly invalidate the cs tlb.");
|
||||||
|
|
||||||
#define LOCAL_I915_EXEC_VEBOX (4<<0)
|
#define LOCAL_I915_EXEC_VEBOX (4<<0)
|
||||||
#define BATCH_SIZE (1024*1024)
|
#define BATCH_SIZE (1024*1024)
|
||||||
|
|
||||||
|
@ -36,6 +36,8 @@
|
|||||||
#include "ioctl_wrappers.h"
|
#include "ioctl_wrappers.h"
|
||||||
#include "drmtest.h"
|
#include "drmtest.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Negative test cases for destroy contexts.");
|
||||||
|
|
||||||
struct local_drm_i915_context_destroy {
|
struct local_drm_i915_context_destroy {
|
||||||
__u32 ctx_id;
|
__u32 ctx_id;
|
||||||
__u32 pad;
|
__u32 pad;
|
||||||
|
@ -45,6 +45,9 @@
|
|||||||
#include "ioctl_wrappers.h"
|
#include "ioctl_wrappers.h"
|
||||||
#include "drmtest.h"
|
#include "drmtest.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test that context cannot be submitted to unsupported"
|
||||||
|
" rings.");
|
||||||
|
|
||||||
/* Copied from gem_exec_nop.c */
|
/* Copied from gem_exec_nop.c */
|
||||||
static int exec(int fd, uint32_t handle, int ring, int ctx_id)
|
static int exec(int fd, uint32_t handle, int ring, int ctx_id)
|
||||||
{
|
{
|
||||||
|
@ -47,6 +47,8 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Basic test for memory and refcount leaks.");
|
||||||
|
|
||||||
/* options */
|
/* options */
|
||||||
int num_contexts = 10;
|
int num_contexts = 10;
|
||||||
int uncontexted = 0; /* test only context create/destroy */
|
int uncontexted = 0; /* test only context create/destroy */
|
||||||
|
@ -48,6 +48,8 @@
|
|||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
#include "igt_debugfs.h"
|
#include "igt_debugfs.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test basic context switch functionality.");
|
||||||
|
|
||||||
struct local_drm_i915_gem_context_destroy {
|
struct local_drm_i915_gem_context_destroy {
|
||||||
__u32 ctx_id;
|
__u32 ctx_id;
|
||||||
__u32 pad;
|
__u32 pad;
|
||||||
|
@ -53,6 +53,8 @@ static drm_intel_bo *target_buffer, *blt_bo;
|
|||||||
* on the second batch. This hopefully catches races in our irq acknowledgement.
|
* on the second batch. This hopefully catches races in our irq acknowledgement.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Basic check for missed IRQs on blt ring.");
|
||||||
|
|
||||||
|
|
||||||
#define MI_COND_BATCH_BUFFER_END (0x36<<23 | 1)
|
#define MI_COND_BATCH_BUFFER_END (0x36<<23 | 1)
|
||||||
#define MI_DO_COMPARE (1<<21)
|
#define MI_DO_COMPARE (1<<21)
|
||||||
|
@ -62,6 +62,7 @@ static drm_intel_bo *mbuffer[NUM_FD];
|
|||||||
* at hitting the missed irq bug that's worked around with the HWSTAM irq write.
|
* at hitting the missed irq bug that's worked around with the HWSTAM irq write.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Check ring<->cpu sync using a dummy reloc.");
|
||||||
|
|
||||||
#define MI_COND_BATCH_BUFFER_END (0x36<<23 | 1)
|
#define MI_COND_BATCH_BUFFER_END (0x36<<23 | 1)
|
||||||
#define MI_DO_COMPARE (1<<21)
|
#define MI_DO_COMPARE (1<<21)
|
||||||
|
@ -49,6 +49,9 @@
|
|||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Run a couple of big batches to force the unbind on"
|
||||||
|
" misalignment code.");
|
||||||
|
|
||||||
#define HEIGHT 256
|
#define HEIGHT 256
|
||||||
#define WIDTH 1024
|
#define WIDTH 1024
|
||||||
|
|
||||||
|
@ -48,6 +48,9 @@
|
|||||||
|
|
||||||
#include "eviction_common.c"
|
#include "eviction_common.c"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Run a couple of big batches to force the eviction"
|
||||||
|
" code.");
|
||||||
|
|
||||||
#define HEIGHT 256
|
#define HEIGHT 256
|
||||||
#define WIDTH 1024
|
#define WIDTH 1024
|
||||||
|
|
||||||
|
@ -46,6 +46,9 @@
|
|||||||
* If it does not, it'll oops somewhen later on because we don't expect that.
|
* If it does not, it'll oops somewhen later on because we don't expect that.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test whether the kernel rejects relocations with non-gpu"
|
||||||
|
" domains.");
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
|
|
||||||
|
@ -47,6 +47,9 @@
|
|||||||
#include "ioctl_wrappers.h"
|
#include "ioctl_wrappers.h"
|
||||||
#include "drmtest.h"
|
#include "drmtest.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Run a large nop batch to stress test the error capture"
|
||||||
|
" code.");
|
||||||
|
|
||||||
#define BATCH_SIZE (1024*1024)
|
#define BATCH_SIZE (1024*1024)
|
||||||
|
|
||||||
static void exec(int fd, uint32_t handle, uint32_t reloc_ofs)
|
static void exec(int fd, uint32_t handle, uint32_t reloc_ofs)
|
||||||
|
@ -48,6 +48,9 @@
|
|||||||
* To be really evil, use a gtt mmap for them.
|
* To be really evil, use a gtt mmap for them.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Submit patches with relocations in memory that will"
|
||||||
|
" fault.");
|
||||||
|
|
||||||
#define OBJECT_SIZE 16384
|
#define OBJECT_SIZE 16384
|
||||||
|
|
||||||
#define COPY_BLT_CMD_NOLEN (2<<29|0x53<<22)
|
#define COPY_BLT_CMD_NOLEN (2<<29|0x53<<22)
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Exercises the basic execbuffer using theh andle LUT interface */
|
/* Exercises the basic execbuffer using the handle LUT interface */
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -39,6 +39,9 @@
|
|||||||
#include "ioctl_wrappers.h"
|
#include "ioctl_wrappers.h"
|
||||||
#include "drmtest.h"
|
#include "drmtest.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Exercises the basic execbuffer using the handle LUT"
|
||||||
|
" interface.");
|
||||||
|
|
||||||
#define BATCH_SIZE (1024*1024)
|
#define BATCH_SIZE (1024*1024)
|
||||||
|
|
||||||
#define LOCAL_I915_EXEC_NO_RELOC (1<<11)
|
#define LOCAL_I915_EXEC_NO_RELOC (1<<11)
|
||||||
|
@ -43,6 +43,8 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test execbuf fence accounting.");
|
||||||
|
|
||||||
#define WIDTH 1024
|
#define WIDTH 1024
|
||||||
#define HEIGHT 1024
|
#define HEIGHT 1024
|
||||||
#define OBJECT_SIZE (4*WIDTH*HEIGHT)
|
#define OBJECT_SIZE (4*WIDTH*HEIGHT)
|
||||||
|
@ -38,6 +38,8 @@
|
|||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
#include "igt_debugfs.h"
|
#include "igt_debugfs.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Check for flink/open vs. gem close races.");
|
||||||
|
|
||||||
/* Testcase: check for flink/open vs. gem close races
|
/* Testcase: check for flink/open vs. gem close races
|
||||||
*
|
*
|
||||||
* The gem flink open ioctl had a little race with gem close which could result
|
* The gem flink open ioctl had a little race with gem close which could result
|
||||||
|
@ -44,6 +44,9 @@
|
|||||||
#include "drmtest.h"
|
#include "drmtest.h"
|
||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Check whether gtt tlbs for cpu access are correctly"
|
||||||
|
" invalidated.");
|
||||||
|
|
||||||
#define OBJ_SIZE (1024*1024)
|
#define OBJ_SIZE (1024*1024)
|
||||||
|
|
||||||
#define PAGE_SIZE 4096
|
#define PAGE_SIZE 4096
|
||||||
|
@ -41,6 +41,9 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Provoke the hangcheck timer on an otherwise idle"
|
||||||
|
" system.");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Testcase: Provoke the hangcheck timer on an otherwise idle system
|
* Testcase: Provoke the hangcheck timer on an otherwise idle system
|
||||||
*
|
*
|
||||||
|
@ -50,6 +50,9 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test doing many blits with a working set larger than the"
|
||||||
|
" aperture size.");
|
||||||
|
|
||||||
#define WIDTH 512
|
#define WIDTH 512
|
||||||
#define HEIGHT 512
|
#define HEIGHT 512
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Exercises the basic execbuffer using theh andle LUT interface */
|
/* Exercises the basic execbuffer using the handle LUT interface */
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -39,6 +39,9 @@
|
|||||||
#include "ioctl_wrappers.h"
|
#include "ioctl_wrappers.h"
|
||||||
#include "drmtest.h"
|
#include "drmtest.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Exercises the basic execbuffer using the handle LUT"
|
||||||
|
" interface.");
|
||||||
|
|
||||||
#define BATCH_SIZE (1024*1024)
|
#define BATCH_SIZE (1024*1024)
|
||||||
|
|
||||||
#define LOCAL_I915_EXEC_HANDLE_LUT (1<<12)
|
#define LOCAL_I915_EXEC_HANDLE_LUT (1<<12)
|
||||||
|
@ -39,6 +39,9 @@
|
|||||||
#include "ioctl_wrappers.h"
|
#include "ioctl_wrappers.h"
|
||||||
#include "drmtest.h"
|
#include "drmtest.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Checks that the kernel reports EFAULT when trying to use"
|
||||||
|
" purged bo.");
|
||||||
|
|
||||||
#define OBJECT_SIZE (1024*1024)
|
#define OBJECT_SIZE (1024*1024)
|
||||||
|
|
||||||
/* Testcase: checks that the kernel reports EFAULT when trying to use purged bo
|
/* Testcase: checks that the kernel reports EFAULT when trying to use purged bo
|
||||||
|
@ -49,6 +49,9 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Basic test for the media_fill() function, a very simple"
|
||||||
|
" workload for the Media pipeline.");
|
||||||
|
|
||||||
#define WIDTH 64
|
#define WIDTH 64
|
||||||
#define STRIDE (WIDTH)
|
#define STRIDE (WIDTH)
|
||||||
#define HEIGHT 64
|
#define HEIGHT 64
|
||||||
|
@ -38,6 +38,9 @@
|
|||||||
#include "ioctl_wrappers.h"
|
#include "ioctl_wrappers.h"
|
||||||
#include "drmtest.h"
|
#include "drmtest.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Checks whether the kernel handles mmap offset exhaustion"
|
||||||
|
" correctly.");
|
||||||
|
|
||||||
#define OBJECT_SIZE (1024*1024)
|
#define OBJECT_SIZE (1024*1024)
|
||||||
|
|
||||||
/* Testcase: checks whether the kernel handles mmap offset exhaustion correctly
|
/* Testcase: checks whether the kernel handles mmap offset exhaustion correctly
|
||||||
|
@ -43,6 +43,8 @@
|
|||||||
#include "i830_reg.h"
|
#include "i830_reg.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Basic check of ring<->ring sync using a dummy reloc.");
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
static drm_intel_bo *target_buffer;
|
static drm_intel_bo *target_buffer;
|
||||||
|
@ -42,6 +42,8 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "i830_reg.h"
|
#include "i830_reg.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Basic check of non-secure batches.");
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
|
|
||||||
|
@ -42,6 +42,9 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test pwrite/pread consistency when touching partial"
|
||||||
|
" cachelines.");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Testcase: pwrite/pread consistency when touching partial cachelines
|
* Testcase: pwrite/pread consistency when touching partial cachelines
|
||||||
*
|
*
|
||||||
|
@ -46,6 +46,8 @@
|
|||||||
#include "igt_debugfs.h"
|
#include "igt_debugfs.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test persistent relocations as used by uxa/libva.");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Testcase: Persistent relocations as used by uxa/libva
|
* Testcase: Persistent relocations as used by uxa/libva
|
||||||
*
|
*
|
||||||
|
@ -44,6 +44,8 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Exercises pinning of small buffer objects.");
|
||||||
|
|
||||||
#define COPY_BLT_CMD (2<<29|0x53<<22|0x6)
|
#define COPY_BLT_CMD (2<<29|0x53<<22|0x6)
|
||||||
#define BLT_WRITE_ALPHA (1<<21)
|
#define BLT_WRITE_ALPHA (1<<21)
|
||||||
#define BLT_WRITE_RGB (1<<20)
|
#define BLT_WRITE_RGB (1<<20)
|
||||||
|
@ -47,6 +47,8 @@
|
|||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test (TLB-)Coherency of pipe_control QW writes.");
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
uint32_t devid;
|
uint32_t devid;
|
||||||
|
@ -51,6 +51,9 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test pread behavior when getting values out of"
|
||||||
|
" just-drawn-to buffers.");
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
static const int width = 512, height = 512;
|
static const int width = 512, height = 512;
|
||||||
|
@ -48,6 +48,8 @@
|
|||||||
#include "drmtest.h"
|
#include "drmtest.h"
|
||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Check that kernel relocation overflows are caught.");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Testcase: Kernel relocation overflows are caught.
|
* Testcase: Kernel relocation overflows are caught.
|
||||||
*/
|
*/
|
||||||
|
@ -46,6 +46,8 @@
|
|||||||
#include "igt_debugfs.h"
|
#include "igt_debugfs.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test kernel relocations vs. gpu races.");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Testcase: Kernel relocations vs. gpu races
|
* Testcase: Kernel relocations vs. gpu races
|
||||||
*
|
*
|
||||||
|
@ -52,6 +52,8 @@
|
|||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Basic test for the render_copy() function.");
|
||||||
|
|
||||||
#define WIDTH 512
|
#define WIDTH 512
|
||||||
#define STRIDE (WIDTH*4)
|
#define STRIDE (WIDTH*4)
|
||||||
#define HEIGHT 512
|
#define HEIGHT 512
|
||||||
|
@ -54,6 +54,8 @@
|
|||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Advanced test for the render_copy() function.");
|
||||||
|
|
||||||
#define WIDTH 512
|
#define WIDTH 512
|
||||||
#define STRIDE (WIDTH*4)
|
#define STRIDE (WIDTH*4)
|
||||||
#define HEIGHT 512
|
#define HEIGHT 512
|
||||||
|
@ -55,6 +55,8 @@
|
|||||||
#include "intel_batchbuffer.h"
|
#include "intel_batchbuffer.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Ensure inter-ring dependencies are respected.");
|
||||||
|
|
||||||
#define WIDTH 512
|
#define WIDTH 512
|
||||||
#define HEIGHT 512
|
#define HEIGHT 512
|
||||||
#define NUM_BUSY_BUFFERS 32
|
#define NUM_BUSY_BUFFERS 32
|
||||||
|
@ -42,6 +42,8 @@
|
|||||||
#include "i830_reg.h"
|
#include "i830_reg.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Basic check of ring<->ring sync using a dummy reloc.");
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
static drm_intel_bo *target_buffer;
|
static drm_intel_bo *target_buffer;
|
||||||
|
@ -51,6 +51,9 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Runs blitcopy -> rendercopy with multiple buffers over"
|
||||||
|
" wrap boundary.");
|
||||||
|
|
||||||
static int devid;
|
static int devid;
|
||||||
static int card_index = 0;
|
static int card_index = 0;
|
||||||
static uint32_t last_seqno = 0;
|
static uint32_t last_seqno = 0;
|
||||||
|
@ -61,6 +61,9 @@
|
|||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Check for proper synchronization of tiling changes vs."
|
||||||
|
" tiled gpu access.");
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
uint32_t devid;
|
uint32_t devid;
|
||||||
|
@ -40,6 +40,8 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Check set_tiling vs gtt mmap coherency.");
|
||||||
|
|
||||||
#define OBJECT_SIZE (1024*1024)
|
#define OBJECT_SIZE (1024*1024)
|
||||||
#define TEST_STRIDE (1024*4)
|
#define TEST_STRIDE (1024*4)
|
||||||
|
|
||||||
|
@ -39,6 +39,8 @@
|
|||||||
#include "drmtest.h"
|
#include "drmtest.h"
|
||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Check set_tiling vs pwrite coherency.");
|
||||||
|
|
||||||
#define OBJECT_SIZE (1024*1024)
|
#define OBJECT_SIZE (1024*1024)
|
||||||
#define TEST_STRIDE (1024*4)
|
#define TEST_STRIDE (1024*4)
|
||||||
|
|
||||||
|
@ -42,6 +42,8 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Basic blitter MI check using MI_STORE_DATA_IMM.");
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
static drm_intel_bo *target_buffer;
|
static drm_intel_bo *target_buffer;
|
||||||
|
@ -42,6 +42,8 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Basic bsd MI check using MI_STORE_DATA_IMM.");
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
static drm_intel_bo *target_buffer;
|
static drm_intel_bo *target_buffer;
|
||||||
|
@ -42,6 +42,8 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Basic render MI check using MI_STORE_DATA_IMM.");
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
static drm_intel_bo *target_buffer;
|
static drm_intel_bo *target_buffer;
|
||||||
|
@ -41,6 +41,8 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Basic vebox MI check using MI_STORE_DATA_IMM.");
|
||||||
|
|
||||||
#define LOCAL_I915_EXEC_VEBOX (4<<0)
|
#define LOCAL_I915_EXEC_VEBOX (4<<0)
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
|
@ -69,6 +69,8 @@
|
|||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("General gem coherency test.");
|
||||||
|
|
||||||
#define CMD_POLY_STIPPLE_OFFSET 0x7906
|
#define CMD_POLY_STIPPLE_OFFSET 0x7906
|
||||||
|
|
||||||
#define DUCTAPE 0xdead0001
|
#define DUCTAPE 0xdead0001
|
||||||
|
@ -34,6 +34,8 @@
|
|||||||
#include "ioctl_wrappers.h"
|
#include "ioctl_wrappers.h"
|
||||||
#include "intel_bufmgr.h"
|
#include "intel_bufmgr.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Check parallel access to tiled memory.");
|
||||||
|
|
||||||
/* Testcase: check parallel access to tiled memory
|
/* Testcase: check parallel access to tiled memory
|
||||||
*
|
*
|
||||||
* Parallel access to tiled memory caused sigbus
|
* Parallel access to tiled memory caused sigbus
|
||||||
|
@ -58,6 +58,9 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test doing many tiled blits, with a working set larger"
|
||||||
|
" than the aperture size.");
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
static int width = 512, height = 512;
|
static int width = 512, height = 512;
|
||||||
|
@ -42,6 +42,9 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test pwrite/pread consistency when touching partial"
|
||||||
|
" cachelines.");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Testcase: pwrite/pread consistency when touching partial cachelines
|
* Testcase: pwrite/pread consistency when touching partial cachelines
|
||||||
*
|
*
|
||||||
|
@ -50,6 +50,10 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test pread behavior on tiled objects with respect to the"
|
||||||
|
" reported swizzling value.");
|
||||||
|
|
||||||
#define WIDTH 512
|
#define WIDTH 512
|
||||||
#define HEIGHT 512
|
#define HEIGHT 512
|
||||||
static uint32_t linear[WIDTH * HEIGHT];
|
static uint32_t linear[WIDTH * HEIGHT];
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Testcase: Test swizzling by testing pwrite does the invers of pread
|
* Testcase: Test swizzling by testing pwrite does the inverse of pread
|
||||||
*
|
*
|
||||||
* Together with the explicit pread testcase, this should cover our swizzle
|
* Together with the explicit pread testcase, this should cover our swizzle
|
||||||
* handling.
|
* handling.
|
||||||
@ -61,6 +61,9 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test swizzling by testing pwrite does the inverse of"
|
||||||
|
" pread.");
|
||||||
|
|
||||||
#define WIDTH 512
|
#define WIDTH 512
|
||||||
#define HEIGHT 512
|
#define HEIGHT 512
|
||||||
static uint32_t linear[WIDTH * HEIGHT];
|
static uint32_t linear[WIDTH * HEIGHT];
|
||||||
|
@ -62,6 +62,8 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Exercise swizzle code for swapping.");
|
||||||
|
|
||||||
#define WIDTH 512
|
#define WIDTH 512
|
||||||
#define HEIGHT 512
|
#define HEIGHT 512
|
||||||
#define LINEAR_DWORDS (4 * WIDTH * HEIGHT)
|
#define LINEAR_DWORDS (4 * WIDTH * HEIGHT)
|
||||||
|
@ -47,6 +47,10 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("This is a test of write-combining mmap's behavior on"
|
||||||
|
" tiled objects with respect to the reported swizzling"
|
||||||
|
" value.");
|
||||||
|
|
||||||
#define WIDTH 512
|
#define WIDTH 512
|
||||||
#define HEIGHT 512
|
#define HEIGHT 512
|
||||||
#define SIZE (WIDTH*HEIGHT*sizeof(uint32_t))
|
#define SIZE (WIDTH*HEIGHT*sizeof(uint32_t))
|
||||||
|
@ -41,6 +41,8 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Check that max fence stride works.");
|
||||||
|
|
||||||
static void do_test_invalid_tiling(int fd, uint32_t handle, int tiling, int stride)
|
static void do_test_invalid_tiling(int fd, uint32_t handle, int tiling, int stride)
|
||||||
{
|
{
|
||||||
igt_assert(__gem_set_tiling(fd, handle, tiling, tiling ? stride : 0) == -EINVAL);
|
igt_assert(__gem_set_tiling(fd, handle, tiling, tiling ? stride : 0) == -EINVAL);
|
||||||
|
@ -55,6 +55,8 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Check for use-after-free in the fence stealing code.");
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
uint32_t devid;
|
uint32_t devid;
|
||||||
|
@ -48,6 +48,8 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test unreferencing of active buffers.");
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
static drm_intel_bo *load_bo;
|
static drm_intel_bo *load_bo;
|
||||||
|
@ -43,6 +43,8 @@
|
|||||||
#include "i830_reg.h"
|
#include "i830_reg.h"
|
||||||
#include "igt_aux.h"
|
#include "igt_aux.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Check read/write syncpoints when switching rings.");
|
||||||
|
|
||||||
#define LOCAL_I915_EXEC_VEBOX (4<<0)
|
#define LOCAL_I915_EXEC_VEBOX (4<<0)
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
|
@ -41,6 +41,9 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Exercise a suspect workaround required for"
|
||||||
|
" FORCEWAKE_MT.");
|
||||||
|
|
||||||
#define FORCEWAKE_MT 0xa188
|
#define FORCEWAKE_MT 0xa188
|
||||||
|
|
||||||
struct thread {
|
struct thread {
|
||||||
|
@ -34,6 +34,9 @@
|
|||||||
#include "igt_kms.h"
|
#include "igt_kms.h"
|
||||||
#include "ioctl_wrappers.h"
|
#include "ioctl_wrappers.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Test that a page flip from a tiled buffer to a linear"
|
||||||
|
" one works correctly.");
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int drm_fd;
|
int drm_fd;
|
||||||
igt_display_t display;
|
igt_display_t display;
|
||||||
|
@ -27,6 +27,9 @@
|
|||||||
#include "drmtest.h"
|
#include "drmtest.h"
|
||||||
#include "igt_edid.h"
|
#include "igt_edid.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Check the debugfs force connector/edid features work"
|
||||||
|
" correctly.");
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char **argv)
|
main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
@ -48,6 +48,9 @@
|
|||||||
#include "drmtest.h"
|
#include "drmtest.h"
|
||||||
#include "igt_debugfs.h"
|
#include "igt_debugfs.h"
|
||||||
|
|
||||||
|
IGT_TEST_DESCRIPTION("Check whether prime import/export works on the same"
|
||||||
|
" device.");
|
||||||
|
|
||||||
#define BO_SIZE (16*1024)
|
#define BO_SIZE (16*1024)
|
||||||
|
|
||||||
static char counter;
|
static char counter;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user