From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: "Rodrigo Vivi" <rodrigo.vivi@intel.com>,
"Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>,
"Chris Wilson" <chris@chris-wilson.co.uk>,
"Petri Latvala" <petri.latvala@intel.com>,
"Ashutosh Dixit" <ashutosh.dixit@intel.com>
Subject: [igt-dev] [PATCH i-g-t 2/3] tests/gem_userptr_blits: Remove LOCAL_
Date: Wed, 6 Oct 2021 17:59:35 -0400 [thread overview]
Message-ID: <20211006215936.972661-2-rodrigo.vivi@intel.com> (raw)
In-Reply-To: <20211006215936.972661-1-rodrigo.vivi@intel.com>
These UAPIs are upstreamed now.
Cc: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Petri Latvala <petri.latvala@intel.com>
Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
tests/i915/gem_userptr_blits.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/tests/i915/gem_userptr_blits.c b/tests/i915/gem_userptr_blits.c
index 756bd6e4..0d084674 100644
--- a/tests/i915/gem_userptr_blits.c
+++ b/tests/i915/gem_userptr_blits.c
@@ -2151,16 +2151,13 @@ static int userfaultfd(int flags)
return syscall(SYS_userfaultfd, flags);
}
-#define LOCAL_I915_PARAM_HAS_USERPTR_PROBE 56
-#define LOCAL_I915_USERPTR_PROBE 0x2
-
static bool has_userptr_probe(int fd)
{
struct drm_i915_getparam gp;
int value = 0;
memset(&gp, 0, sizeof(gp));
- gp.param = LOCAL_I915_PARAM_HAS_USERPTR_PROBE;
+ gp.param = I915_PARAM_HAS_USERPTR_PROBE;
gp.value = &value;
ioctl(fd, DRM_IOCTL_I915_GETPARAM, &gp, sizeof(gp));
@@ -2222,7 +2219,7 @@ static void test_probe(int fd)
}
igt_assert_eq(__gem_userptr(fd, ptr + PAGE_SIZE, 3*PAGE_SIZE,
- 0, LOCAL_I915_USERPTR_PROBE, &handle),
+ 0, I915_USERPTR_PROBE, &handle),
expected);
munmap(ptr, N_PAGES * PAGE_SIZE);
--
2.31.1
next prev parent reply other threads:[~2021-10-06 21:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-06 21:59 [igt-dev] [PATCH i-g-t 1/3] i915_drm.h sync with drm-next Rodrigo Vivi
2021-10-06 21:59 ` Rodrigo Vivi [this message]
2021-10-06 21:59 ` [igt-dev] [PATCH i-g-t 3/3] include/drm-uapi: Sync " Rodrigo Vivi
2021-10-06 23:08 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/3] i915_drm.h sync " Patchwork
2021-10-07 1:33 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211006215936.972661-2-rodrigo.vivi@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=ashutosh.dixit@intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=igt-dev@lists.freedesktop.org \
--cc=petri.latvala@intel.com \
--cc=zbigniew.kempczynski@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.