[igt-dev] [PATCH i-g-t v2 3/9] tests/i915/gem_mmap_wc: drop LOCAL_IOCTL_I915_GEM_MMAP_v2
Lucas De Marchi
lucas.demarchi at intel.com
Sun Jul 11 06:12:05 UTC 2021
LOCAL_IOCTL_I915_GEM_MMAP_v2 is not really a different ioctl, it's just
DRM_IOCTL_I915_GEM_MMAP and a check for version/
Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
---
tests/i915/gem_mmap_wc.c | 15 ++-------------
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/tests/i915/gem_mmap_wc.c b/tests/i915/gem_mmap_wc.c
index 4fcf5478..abb89b8e 100644
--- a/tests/i915/gem_mmap_wc.c
+++ b/tests/i915/gem_mmap_wc.c
@@ -40,17 +40,6 @@
#include "drm.h"
#include "i915/gem_create.h"
-struct local_i915_gem_mmap_v2 {
- uint32_t handle;
- uint32_t pad;
- uint64_t offset;
- uint64_t size;
- uint64_t addr_ptr;
- uint64_t flags;
-#define I915_MMAP_WC 0x1
-};
-#define LOCAL_IOCTL_I915_GEM_MMAP_v2 DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_MMAP, struct local_i915_gem_mmap_v2)
-
static int OBJECT_SIZE = 16*1024*1024;
/*
@@ -103,7 +92,7 @@ static void
test_invalid_flags(int fd)
{
struct drm_i915_getparam gp;
- struct local_i915_gem_mmap_v2 arg;
+ struct drm_i915_gem_mmap arg;
uint64_t flag = I915_MMAP_WC;
int val = -1;
@@ -128,7 +117,7 @@ test_invalid_flags(int fd)
while (flag) {
arg.flags = flag;
igt_assert(drmIoctl(fd,
- LOCAL_IOCTL_I915_GEM_MMAP_v2,
+ DRM_IOCTL_I915_GEM_MMAP,
&arg) == -1);
igt_assert_eq(errno, EINVAL);
flag <<= 1;
--
2.31.1
More information about the igt-dev
mailing list