@@ -41,7 +41,7 @@
#include <time.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#define COPY_BLT_CMD (2<<29|0x53<<22|0x6)
#define BLT_WRITE_ALPHA (1<<21)
@@ -45,7 +45,7 @@
#include "intel_chipset.h"
#include "intel_reg.h"
#include "igt_stats.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_mman.h"
#define ENGINE_FLAGS (I915_EXEC_RING_MASK | I915_EXEC_BSD_MASK)
@@ -40,7 +40,7 @@
#include "drm.h"
#include "drmtest.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt_aux.h"
#include "igt_stats.h"
#include "intel_reg.h"
@@ -40,7 +40,7 @@
#include "drm.h"
#include "drmtest.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "intel_io.h"
#include "intel_reg.h"
#include "igt_stats.h"
@@ -42,7 +42,7 @@
#include "drm.h"
#include "drmtest.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt_stats.h"
#include "intel_io.h"
#include "intel_reg.h"
@@ -40,7 +40,7 @@
#include "drm.h"
#include "drmtest.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt_stats.h"
#include "intel_io.h"
#include "intel_reg.h"
@@ -38,7 +38,7 @@
#include "drm.h"
#include "drmtest.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_mman.h"
#include "igt_debugfs.h"
#include "intel_reg.h"
@@ -41,7 +41,7 @@
#include "drm.h"
#include "drmtest.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt_stats.h"
#include "intel_io.h"
#include "ioctl_wrappers.h"
@@ -43,7 +43,7 @@
#include <sys/resource.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_device.h"
@@ -40,7 +40,7 @@
#include "drm.h"
#include "drmtest.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt_aux.h"
#include "igt_stats.h"
#include "ioctl_wrappers.h"
@@ -40,7 +40,7 @@
#include "drm.h"
#include "drmtest.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt_aux.h"
#include "ioctl_wrappers.h"
@@ -44,7 +44,7 @@
#include <linux/unistd.h>
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_ring.h"
#define sigev_notify_thread_id _sigev_un._tid
@@ -56,7 +56,7 @@
#include "igt_perf.h"
#include "sw_sync.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_engine_topology.h"
#include "i915/gem_mman.h"
@@ -38,7 +38,7 @@
#include "drm.h"
#include "drmtest.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt_rand.h"
#include "intel_io.h"
#include "ioctl_wrappers.h"
@@ -32,7 +32,4 @@ void gem_quiescent_gpu(int i915);
int gem_reopen_driver(int i915);
-int __gem_create(int fd, uint64_t *size, uint32_t *handle);
-uint32_t gem_create(int fd, uint64_t size);
-
#endif /* I915_GEM_H */
@@ -5,7 +5,7 @@
#include <errno.h>
-#include "gem.h"
+#include "gem_create.h"
#include "i915_drm.h"
#include "igt_core.h"
#include "ioctl_wrappers.h"
@@ -47,3 +47,44 @@ uint32_t gem_create(int fd, uint64_t size)
return handle;
}
+
+int __gem_create_ext(int fd, uint64_t *size, uint32_t *handle,
+ struct i915_user_extension *ext)
+{
+ struct local_drm_i915_gem_create_ext create = {
+ .size = *size,
+ .extensions = to_user_pointer(ext),
+ };
+ int err = 0;
+
+ if (igt_ioctl(fd, LOCAL_DRM_IOCTL_I915_GEM_CREATE_EXT, &create) == 0) {
+ *handle = create.handle;
+ *size = create.size;
+ } else {
+ err = -errno;
+ igt_assume(err != 0);
+ }
+
+ errno = 0;
+ return err;
+}
+
+/**
+ * gem_create_ext:
+ * @fd: open i915 drm file descriptor
+ * @size: desired size of the buffer
+ * @ext: optional extensions chain
+ *
+ * This wraps the GEM_CREATE_EXT ioctl, which allocates a new gem buffer object
+ * of @size.
+ *
+ * Returns: The file-private handle of the created buffer object
+ */
+uint32_t gem_create_ext(int fd, uint64_t size, struct i915_user_extension *ext)
+{
+ uint32_t handle;
+
+ igt_assert_eq(__gem_create_ext(fd, &size, &handle, ext), 0);
+
+ return handle;
+}
new file mode 100644
@@ -0,0 +1,125 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright © 2021 Intel Corporation
+ */
+
+#ifndef GEM_CREATE_H
+#define GEM_CREATE_H
+
+#include <stdint.h>
+
+#include "i915_drm.h"
+
+/**
+ * struct drm_i915_gem_create_ext - Existing gem_create behaviour, with added
+ * extension support using struct i915_user_extension.
+ *
+ * Note that in the future we want to have our buffer flags here, at least for
+ * the stuff that is immutable. Previously we would have two ioctls, one to
+ * create the object with gem_create, and another to apply various parameters,
+ * however this creates some ambiguity for the params which are considered
+ * immutable. Also in general we're phasing out the various SET/GET ioctls.
+ */
+struct local_drm_i915_gem_create_ext {
+ /**
+ * @size: Requested size for the object.
+ *
+ * The (page-aligned) allocated size for the object will be returned.
+ *
+ * Note that for some devices we have might have further minimum
+ * page-size restrictions(larger than 4K), like for device local-memory.
+ * However in general the final size here should always reflect any
+ * rounding up, if for example using the I915_GEM_CREATE_EXT_MEMORY_REGIONS
+ * extension to place the object in device local-memory.
+ */
+ __u64 size;
+ /**
+ * @handle: Returned handle for the object.
+ *
+ * Object handles are nonzero.
+ */
+ __u32 handle;
+ /** @flags: MBZ */
+ __u32 flags;
+ /**
+ * @extensions: The chain of extensions to apply to this object.
+ *
+ * This will be useful in the future when we need to support several
+ * different extensions, and we need to apply more than one when
+ * creating the object. See struct i915_user_extension.
+ *
+ * If we don't supply any extensions then we get the same old gem_create
+ * behaviour.
+ *
+ * For I915_GEM_CREATE_EXT_MEMORY_REGIONS usage see
+ * struct drm_i915_gem_create_ext_memory_regions.
+ */
+#define LOCAL_I915_GEM_CREATE_EXT_MEMORY_REGIONS 0
+ __u64 extensions;
+};
+
+/**
+ * struct drm_i915_gem_create_ext_memory_regions - The
+ * I915_GEM_CREATE_EXT_MEMORY_REGIONS extension.
+ *
+ * Set the object with the desired set of placements/regions in priority
+ * order. Each entry must be unique and supported by the device.
+ *
+ * This is provided as an array of struct drm_i915_gem_memory_class_instance, or
+ * an equivalent layout of class:instance pair encodings. See struct
+ * drm_i915_query_memory_regions and DRM_I915_QUERY_MEMORY_REGIONS for how to
+ * query the supported regions for a device.
+ *
+ * As an example, on discrete devices, if we wish to set the placement as
+ * device local-memory we can do something like:
+ *
+ * .. code-block:: C
+ *
+ * struct drm_i915_gem_memory_class_instance region_lmem = {
+ * .memory_class = I915_MEMORY_CLASS_DEVICE,
+ * .memory_instance = 0,
+ * };
+ * struct drm_i915_gem_create_ext_memory_regions regions = {
+ * .base = { .name = I915_GEM_CREATE_EXT_MEMORY_REGIONS },
+ * .regions = (uintptr_t)®ion_lmem,
+ * .num_regions = 1,
+ * };
+ * struct drm_i915_gem_create_ext create_ext = {
+ * .size = 16 * PAGE_SIZE,
+ * .extensions = (uintptr_t)®ions,
+ * };
+ *
+ * int err = ioctl(fd, DRM_IOCTL_I915_GEM_CREATE_EXT, &create_ext);
+ * if (err) ...
+ *
+ * At which point we get the object handle in &drm_i915_gem_create_ext.handle,
+ * along with the final object size in &drm_i915_gem_create_ext.size, which
+ * should account for any rounding up, if required.
+ */
+struct local_drm_i915_gem_create_ext_memory_regions {
+ /** @base: Extension link. See struct i915_user_extension. */
+ struct i915_user_extension base;
+
+ /** @pad: MBZ */
+ __u32 pad;
+ /** @num_regions: Number of elements in the @regions array. */
+ __u32 num_regions;
+ /**
+ * @regions: The regions/placements array.
+ *
+ * An array of struct drm_i915_gem_memory_class_instance.
+ */
+ __u64 regions;
+};
+
+#define LOCAL_DRM_I915_GEM_CREATE_EXT 0x3c
+#define LOCAL_DRM_IOCTL_I915_GEM_CREATE_EXT DRM_IOWR(DRM_COMMAND_BASE + LOCAL_DRM_I915_GEM_CREATE_EXT, \
+ struct local_drm_i915_gem_create_ext)
+
+int __gem_create(int fd, uint64_t *size, uint32_t *handle);
+uint32_t gem_create(int fd, uint64_t size);
+int __gem_create_ext(int fd, uint64_t *size, uint32_t *handle,
+ struct i915_user_extension *ext);
+uint32_t gem_create_ext(int fd, uint64_t size, struct i915_user_extension *ext);
+
+#endif /* GEM_CREATE_H */
@@ -31,7 +31,7 @@
#include "ioctl_wrappers.h"
#include "intel_chipset.h"
-#include "gem.h"
+#include "gem_create.h"
#include "gem_mman.h"
#ifdef HAVE_VALGRIND
@@ -27,6 +27,7 @@
#include <sys/time.h>
#include "gem.h"
+#include "gem_create.h"
#include "gem_ring.h"
#include "gem_submission.h"
@@ -31,6 +31,7 @@
#include <i915_drm.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_engine_topology.h"
#include "i915/gem_submission.h"
@@ -34,7 +34,7 @@
#include "igt_fb.h"
#include "ioctl_wrappers.h"
#include "i830_reg.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_mman.h"
#ifndef PAGE_ALIGN
@@ -31,7 +31,7 @@
#include <i915_drm.h>
#include "drmtest.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_engine_topology.h"
#include "i915/gem_mman.h"
#include "i915/gem_submission.h"
@@ -33,7 +33,7 @@
#include <pixman.h>
#include "drmtest.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_mman.h"
#include "igt_aux.h"
#include "igt_color_encoding.h"
@@ -35,7 +35,7 @@
#include "drm.h"
#include "drmtest.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "intel_batchbuffer.h"
#include "intel_bufmgr.h"
#include "intel_bufops.h"
@@ -25,7 +25,7 @@
#include <sys/ioctl.h>
#include <cairo.h>
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_x86.h"
#include "intel_bufops.h"
@@ -49,7 +49,7 @@
#include "drmtest.h"
#include "i915_drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "intel_batchbuffer.h"
#include "intel_chipset.h"
#include "intel_io.h"
@@ -27,6 +27,7 @@
#include <sys/poll.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_vgem.h"
@@ -31,6 +31,7 @@
#include <unistd.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/perf.h"
#include "igt.h"
#include "igt_device_scan.h"
@@ -5,6 +5,7 @@
#include <stdatomic.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_aux.h"
#include "intel_allocator.h"
@@ -23,6 +23,7 @@
#include "igt.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -39,6 +39,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
IGT_TEST_DESCRIPTION("Simulates SNA behaviour using negative self-relocations"
@@ -37,7 +37,7 @@
#include <sys/ioctl.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
static void
test_bad_close(int fd)
@@ -23,6 +23,7 @@
*/
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_x86.h"
@@ -26,6 +26,7 @@
#include <sys/ioctl.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_rand.h"
#include "igt_vgem.h"
@@ -22,6 +22,7 @@
*/
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
static int batch_create(int fd)
@@ -42,6 +42,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#define OBJECT_SIZE (256 * 1024)
@@ -49,6 +49,7 @@
#include <drm.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_vgem.h"
@@ -54,6 +54,7 @@
#include "igt_dummyload.h"
#include "igt_x86.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_engine_topology.h"
#include "i915/gem_mman.h"
#include "i915_drm.h"
@@ -50,6 +50,7 @@
#include <drm.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
IGT_TEST_DESCRIPTION("Check whether we correctly invalidate the cs tlb.");
@@ -22,6 +22,7 @@
*/
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_vm.h"
#include "i915_drm.h"
#include "igt.h"
@@ -31,6 +31,7 @@
#include <time.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_rand.h"
#include "sw_sync.h"
@@ -39,6 +39,7 @@
#include "i915/gem.h"
#include "i915/gem_context.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "sw_sync.h"
@@ -41,6 +41,7 @@
#include <drm.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_dummyload.h"
#include "igt_rand.h"
@@ -22,6 +22,7 @@
*/
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_dummyload.h"
@@ -29,6 +29,7 @@
#include "igt.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_vm.h"
IGT_TEST_DESCRIPTION("Basic test for context set/get param input validation.");
@@ -38,6 +38,7 @@
#include <drm.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_engine_topology.h"
#include "igt.h"
#include "igt_rand.h"
@@ -37,6 +37,7 @@
#include <sys/wait.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt.h"
#include "igt_dummyload.h"
@@ -41,6 +41,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_ring.h"
#include "igt.h"
@@ -43,6 +43,7 @@
#include <drm.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_ring.h"
#include "igt.h"
#include "igt_device.h"
@@ -45,6 +45,7 @@
#include <drm.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
IGT_TEST_DESCRIPTION("Run a couple of big batches to force the unbind on"
@@ -44,6 +44,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "eviction_common.c"
@@ -42,6 +42,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
IGT_TEST_DESCRIPTION("Exercises the basic execbuffer using object alignments");
@@ -22,6 +22,7 @@
*/
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
IGT_TEST_DESCRIPTION("Check that we can issue concurrent writes across the engines.");
@@ -26,6 +26,7 @@
#include <sys/signal.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_rand.h"
#include "igt_sysfs.h"
@@ -27,6 +27,7 @@
#include <sys/signal.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_gt.h"
#include "igt_perf.h"
@@ -23,7 +23,7 @@
#include "igt.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
IGT_TEST_DESCRIPTION("Basic sanity check of execbuf-ioctl rings.");
@@ -46,6 +46,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
IGT_TEST_DESCRIPTION("Run a large nop batch to stress test the error capture"
@@ -25,6 +25,7 @@
#include <zlib.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_device.h"
#include "igt_rand.h"
@@ -40,6 +40,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_ring.h"
#include "igt.h"
@@ -24,6 +24,7 @@
#include <sys/ioctl.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_device.h"
#include "igt_sysfs.h"
@@ -18,6 +18,7 @@
#include "sync_file.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_rand.h"
#include "igt_rapl.h"
@@ -26,6 +26,7 @@
#include <sys/signal.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_syncobj.h"
#include "igt_sysfs.h"
@@ -24,6 +24,7 @@
#include <time.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_ring.h"
#include "igt.h"
#include "igt_x86.h"
@@ -22,6 +22,7 @@
*/
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_rand.h"
@@ -47,6 +47,7 @@
#include "igt_stats.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#define ENGINE_FLAGS (I915_EXEC_RING_MASK | I915_EXEC_BSD_MASK)
@@ -38,6 +38,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
IGT_TEST_DESCRIPTION("Exercises the basic execbuffer using the handle LUT"
@@ -41,6 +41,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_device.h"
#include "igt_rand.h"
@@ -30,6 +30,7 @@
#include <pthread.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_gt.h"
@@ -39,6 +39,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_ring.h"
#include "igt.h"
#include "igt_device.h"
@@ -25,6 +25,7 @@
#include <sys/ioctl.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_device.h"
#include "igt_dummyload.h"
@@ -35,6 +35,7 @@
#include <unistd.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_rand.h"
#include "igt_rapl.h"
@@ -30,6 +30,7 @@
#include <strings.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_device.h"
#include "igt_gt.h"
@@ -31,6 +31,7 @@
#include <unistd.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_dummyload.h"
#include "igt_gt.h"
@@ -28,6 +28,7 @@
*/
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_debugfs.h"
#include "igt_rapl.h"
@@ -33,7 +33,7 @@
#include <fcntl.h>
#include <limits.h>
-#include "i915/gem.h"
+#include "i915/gem_create.h"
igt_simple_main
{
@@ -40,7 +40,7 @@
#include <pthread.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_x86.h"
@@ -40,7 +40,7 @@
#include "drm.h"
#include "i915_drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#define OBJECT_SIZE (1024*1024) /* restricted to 1MiB alignment on i915 fences */
@@ -31,6 +31,7 @@
#include <errno.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
IGT_TEST_DESCRIPTION("Test execbuf fence accounting.");
@@ -32,7 +32,7 @@
#include <pthread.h>
#include <errno.h>
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_stats.h"
@@ -42,7 +42,7 @@
#include <sys/ioctl.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
IGT_TEST_DESCRIPTION("Check whether gtt tlbs for cpu access are correctly"
" invalidated.");
@@ -40,6 +40,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
static const uint32_t canary = 0xdeadbeef;
@@ -41,7 +41,7 @@
#include <sys/time.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#define OBJECT_SIZE 16384
@@ -34,6 +34,7 @@
#include <sys/time.h>
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
IGT_TEST_DESCRIPTION("A very simple workload for the HuC.");
@@ -45,6 +45,7 @@
#include <drm.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
IGT_TEST_DESCRIPTION("Test doing many blits with a working set larger than the"
@@ -38,7 +38,7 @@
#include <sys/time.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
IGT_TEST_DESCRIPTION("Exercises the basic execbuffer using the handle LUT"
" interface.");
@@ -37,7 +37,7 @@
#include <signal.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
IGT_TEST_DESCRIPTION("Checks that the kernel reports EFAULT when trying to use"
" purged bo.");
@@ -37,7 +37,7 @@
#include <sys/ioctl.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#define OBJECT_SIZE 16384
#define PAGE_SIZE 4096
@@ -42,6 +42,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_sysfs.h"
#include "igt_x86.h"
@@ -32,6 +32,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_x86.h"
@@ -38,7 +38,7 @@
#include <sys/ioctl.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
struct local_i915_gem_mmap_v2 {
uint32_t handle;
@@ -36,6 +36,7 @@
#include <drm.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_debugfs.h"
@@ -43,7 +43,7 @@
#include <pthread.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt_vgem.h"
#define MiB(x) ((x) * 1024 * 1024)
@@ -42,7 +42,7 @@
#include <sys/time.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_rand.h"
#include "igt_vgem.h"
@@ -37,7 +37,7 @@
#include <sys/ioctl.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#define OBJECT_SIZE 16384
@@ -41,6 +41,7 @@
#include <signal.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_ring.h"
#include "igt.h"
#include "igt_sysfs.h"
@@ -32,6 +32,7 @@
*/
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_ring.h"
#include "igt.h"
#include "igt_device.h"
@@ -37,7 +37,7 @@
#include <sys/ioctl.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
IGT_TEST_DESCRIPTION("Check set_tiling vs gtt mmap coherency.");
@@ -37,7 +37,7 @@
#include <sys/ioctl.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
IGT_TEST_DESCRIPTION("Check set_tiling vs pwrite coherency.");
@@ -28,6 +28,7 @@
*/
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_gt.h"
#include "igt_debugfs.h"
@@ -27,6 +27,7 @@
*/
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "intel_allocator.h"
@@ -38,6 +38,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#define OBJECT_SIZE 1024*1024
@@ -25,6 +25,7 @@
#include <pthread.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_ring.h"
#include "igt_debugfs.h"
#include "igt_dummyload.h"
@@ -42,6 +42,7 @@
*/
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_x86.h"
@@ -47,7 +47,7 @@
#include <sys/ioctl.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
IGT_TEST_DESCRIPTION("Test pread behavior on tiled objects with respect to the"
" reported swizzling value.");
@@ -57,7 +57,7 @@
#include <sys/ioctl.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
IGT_TEST_DESCRIPTION("Test swizzling by testing pwrite does the inverse of"
" pread.");
@@ -57,7 +57,7 @@
#include <pthread.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
IGT_TEST_DESCRIPTION("Exercise swizzle code for swapping.");
@@ -44,7 +44,7 @@
#include <sys/ioctl.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
IGT_TEST_DESCRIPTION("This is a test of write-combining mmap's behavior on"
" tiled objects with respect to the reported swizzling"
@@ -44,7 +44,7 @@
#include <sys/ioctl.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#define WIDTH 512
#define HEIGHT 512
@@ -38,7 +38,7 @@
#include <sys/ioctl.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
IGT_TEST_DESCRIPTION("Check that max fence stride works.");
@@ -50,6 +50,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
IGT_TEST_DESCRIPTION("Check for use-after-free in the fence stealing code.");
@@ -40,6 +40,7 @@
#include "igt.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
IGT_TEST_DESCRIPTION("Test unreferencing of active buffers.");
@@ -59,6 +59,7 @@
#include "i915_drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_sysfs.h"
#include "sw_sync.h"
@@ -22,6 +22,7 @@
*/
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_vm.h"
#include "igt.h"
#include "igt_rand.h"
@@ -28,6 +28,7 @@
#include <sys/poll.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_vgem.h"
@@ -30,6 +30,7 @@
#include <sched.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_params.h"
#include "sw_sync.h"
@@ -28,6 +28,7 @@
#include <fcntl.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_device.h"
@@ -45,6 +45,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915_reg.h"
#include "igt.h"
@@ -44,6 +44,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915_reg.h"
#include "igt.h"
@@ -45,6 +45,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915_reg.h"
#include "igt.h"
@@ -45,6 +45,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915_reg.h"
#include "igt.h"
@@ -45,6 +45,7 @@
#include "drm.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915_reg.h"
#include "igt.h"
@@ -32,6 +32,7 @@
#include "igt.h"
#include "igt_device.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "sw_sync.h"
#define DERRMR 0x44050
@@ -29,6 +29,7 @@
#include <stdlib.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_submission.h"
#include "igt.h"
#include "sw_sync.h"
@@ -33,6 +33,7 @@
#include <fcntl.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_sysfs.h"
#include "igt_debugfs.h"
@@ -30,7 +30,7 @@
#include <sys/ioctl.h>
#include <fcntl.h>
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt_debugfs.h"
#include "igt_aux.h"
#include "igt_kmod.h"
@@ -34,6 +34,7 @@
#include <time.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_perf.h"
#include "igt_rapl.h"
@@ -46,6 +46,7 @@
#include <drm.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_kmod.h"
#include "igt_sysfs.h"
@@ -39,6 +39,7 @@
#include <drm.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_device.h"
@@ -39,6 +39,7 @@
#include <sched.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_core.h"
#include "igt_device.h"
@@ -19,6 +19,7 @@
#include "drmtest.h"
#include "i915/gem.h"
#include "i915/gem_context.h"
+#include "i915/gem_create.h"
#include "i915/gem_engine_topology.h"
#include "i915/gem_mman.h"
#include "igt_aux.h"
@@ -32,6 +32,7 @@
#include "igt_params.h"
#include "drmtest.h"
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_engine_topology.h"
#include "i915/gem_mman.h"
#include "igt_dummyload.h"
@@ -27,7 +27,7 @@
#include <stdio.h>
#include <string.h>
-#include "i915/gem.h"
+#include "i915/gem_create.h"
IGT_TEST_DESCRIPTION("Test big framebuffers");
@@ -24,7 +24,7 @@
#include "igt.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#define SDR_PLANE_BASE 3
@@ -42,7 +42,7 @@
#include <time.h>
#include <pthread.h>
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt_stats.h"
#define TEST_DPMS (1 << 0)
@@ -31,6 +31,7 @@
#include <pthread.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_sysfs.h"
#include "igt_psr.h"
@@ -40,7 +40,7 @@
#include "drm.h"
#include "drm_fourcc.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt_device.h"
IGT_TEST_DESCRIPTION("Tests GETFB and GETFB2 ioctls.");
@@ -24,6 +24,7 @@
#include <sys/poll.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
IGT_TEST_DESCRIPTION("Basic check of polling for prime fences.");
@@ -43,7 +43,7 @@
#include "drm.h"
#include "drmtest.h"
#include "i915_drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "i915/gem_mman.h"
#include "igt_debugfs.h"
#include "ioctl_wrappers.h"
@@ -32,7 +32,7 @@
#include "igt.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
IGT_TEST_DESCRIPTION(
"Efficiently sharing CPU and GPU buffers");
@@ -44,7 +44,7 @@
#include <pthread.h>
#include "drm.h"
-#include "i915/gem.h"
+#include "i915/gem_create.h"
IGT_TEST_DESCRIPTION("Check whether prime import/export works on the same"
" device... but with different fds.");
@@ -26,6 +26,7 @@
#include <time.h>
#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_vgem.h"
#include "intel_batchbuffer.h" /* igt_blitter_src_copy() */
@@ -32,7 +32,7 @@
#include <sys/types.h>
#include <unistd.h>
-#include "i915/gem.h"
+#include "i915/gem_create.h"
#include "igt.h"
#include "igt_gt.h"
#include "intel_io.h"