summaryrefslogtreecommitdiff
path: root/lib/igt_dummyload.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-09-06 15:34:13 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-09-06 18:57:27 +0100
commitdddbc2ed136f3edf007366c2e81c3f735bd29266 (patch)
tree8ec701faef29fe7a05694a74147b1d6fb1194971 /lib/igt_dummyload.c
parent918863f8e3e8f49235fd2e4a36e11f386c06c11c (diff)
lib: Disable MI_STORE_DATA_IMM for gen3 (i915g and i915gm)
The early gen3 machines inherited the MI block and restrictions from gen2, and may only use physical addresses in conjunction with MI_STORE_DATA_IMM -- that makes it unusable for us from userspace, where we can only use virtual offsets. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'lib/igt_dummyload.c')
-rw-r--r--lib/igt_dummyload.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c
index f2a94b55..c98f15f1 100644
--- a/lib/igt_dummyload.c
+++ b/lib/igt_dummyload.c
@@ -22,11 +22,18 @@
*
*/
-#include "igt.h"
-#include "igt_dummyload.h"
#include <time.h>
#include <signal.h>
-#include <sys/syscall.h>
+#include <pthread.h>
+
+#include <i915_drm.h>
+
+#include "igt_core.h"
+#include "igt_dummyload.h"
+#include "igt_gt.h"
+#include "intel_chipset.h"
+#include "intel_reg.h"
+#include "ioctl_wrappers.h"
/**
* SECTION:igt_dummyload