* [PATCH igt] igt/prime_mmap: Test for userptr support first
@ 2018-04-12 18:08 Chris Wilson
2018-04-12 18:28 ` ✓ Fi.CI.BAT: success for " Patchwork
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Chris Wilson @ 2018-04-12 18:08 UTC (permalink / raw)
To: intel-gfx
Before we start trying to use userptr to test interoperability with
PRIME, we first need to check that the device in question has userptr
support.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106013
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
tests/prime_mmap.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/tests/prime_mmap.c b/tests/prime_mmap.c
index 0da0aa68..67a6a232 100644
--- a/tests/prime_mmap.c
+++ b/tests/prime_mmap.c
@@ -307,6 +307,19 @@ static int prime_handle_to_fd_no_assert(uint32_t handle, int flags, int *fd_out)
return ret;
}
+static bool has_userptr(void)
+{
+ uint32_t handle = 0;
+ void *ptr;
+
+ igt_assert(posix_memalign(&ptr, 4096, 4096) == 0);
+ if ( __gem_userptr(fd, ptr, 4096, 0, 0, &handle) == 0)
+ gem_close(fd, handle);
+ free(ptr);
+
+ return handle;
+}
+
/* test for mmap(dma_buf_export(userptr)) */
static void
test_userptr(void)
@@ -315,6 +328,8 @@ test_userptr(void)
void *ptr;
uint32_t handle;
+ igt_require(has_userptr());
+
/* create userptr bo */
ret = posix_memalign(&ptr, 4096, BO_SIZE);
igt_assert_eq(ret, 0);
--
2.17.0
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 4+ messages in thread
* ✓ Fi.CI.BAT: success for igt/prime_mmap: Test for userptr support first
2018-04-12 18:08 [PATCH igt] igt/prime_mmap: Test for userptr support first Chris Wilson
@ 2018-04-12 18:28 ` Patchwork
2018-04-13 18:34 ` ✓ Fi.CI.IGT: " Patchwork
2018-04-16 10:16 ` [PATCH igt] " Tvrtko Ursulin
2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2018-04-12 18:28 UTC (permalink / raw)
To: Chris Wilson; +Cc: intel-gfx
== Series Details ==
Series: igt/prime_mmap: Test for userptr support first
URL : https://patchwork.freedesktop.org/series/41638/
State : success
== Summary ==
= CI Bug Log - changes from IGT_4426 -> IGTPW_1251 =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/41638/revisions/1/mbox/
== Known issues ==
Here are the changes found in IGTPW_1251 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@gem_mmap_gtt@basic-small-bo-tiledx:
fi-gdg-551: PASS -> FAIL (fdo#102575)
igt@gem_ringfill@basic-default-hang:
fi-blb-e6850: NOTRUN -> DMESG-WARN (fdo#101600)
fi-pnv-d510: NOTRUN -> DMESG-WARN (fdo#101600)
igt@kms_flip@basic-flip-vs-wf_vblank:
fi-cfl-s3: PASS -> FAIL (fdo#103928, fdo#100368)
fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#101600 https://bugs.freedesktop.org/show_bug.cgi?id=101600
fdo#102575 https://bugs.freedesktop.org/show_bug.cgi?id=102575
fdo#103928 https://bugs.freedesktop.org/show_bug.cgi?id=103928
== Participating hosts (27 -> 33) ==
Additional (8): fi-kbl-7567u fi-bxt-dsi fi-skl-gvtdvm fi-bdw-gvtdvm fi-cnl-y3 fi-pnv-d510 fi-elk-e7500 fi-blb-e6850
Missing (2): fi-ilk-m540 fi-skl-6700hq
== Build changes ==
* IGT: IGT_4426 -> IGTPW_1251
* Linux: CI_DRM_4048 -> CI_DRM_4049
* Piglit: piglit_4426 -> piglit_4428
CI_DRM_4048: 8c59766aea748fef3de2711f69486cb37bef95bd @ git://anongit.freedesktop.org/gfx-ci/linux
CI_DRM_4049: 3dbfa04d62f1f1214a03c3b2d30f987dccf50ab4 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1251: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1251/
IGT_4426: d502f055ac4500cada758876a512ac4f14b34851 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4426: 93b35926a150e318439d2505901288594b3548f5 @ git://anongit.freedesktop.org/piglit
piglit_4428: 93b35926a150e318439d2505901288594b3548f5 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1251/issues.html
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* ✓ Fi.CI.IGT: success for igt/prime_mmap: Test for userptr support first
2018-04-12 18:08 [PATCH igt] igt/prime_mmap: Test for userptr support first Chris Wilson
2018-04-12 18:28 ` ✓ Fi.CI.BAT: success for " Patchwork
@ 2018-04-13 18:34 ` Patchwork
2018-04-16 10:16 ` [PATCH igt] " Tvrtko Ursulin
2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2018-04-13 18:34 UTC (permalink / raw)
To: Chris Wilson; +Cc: intel-gfx
== Series Details ==
Series: igt/prime_mmap: Test for userptr support first
URL : https://patchwork.freedesktop.org/series/41638/
State : success
== Summary ==
= CI Bug Log - changes from IGT_4426_full -> IGTPW_1251_full =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/41638/revisions/1/mbox/
== Known issues ==
Here are the changes found in IGTPW_1251_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@kms_flip@2x-flip-vs-expired-vblank-interruptible:
shard-hsw: PASS -> FAIL (fdo#102887)
igt@kms_plane@plane-panning-bottom-right-suspend-pipe-a-planes:
shard-kbl: PASS -> DMESG-WARN (fdo#103313)
igt@kms_plane_multiple@atomic-pipe-a-tiling-x:
shard-snb: PASS -> FAIL (fdo#103166)
igt@kms_universal_plane@cursor-fb-leak-pipe-b:
shard-kbl: PASS -> DMESG-WARN (fdo#105602, fdo#103558) +2
==== Possible fixes ====
igt@kms_flip@flip-vs-expired-vblank-interruptible:
shard-hsw: FAIL (fdo#102887) -> PASS
igt@kms_rotation_crc@sprite-rotation-180:
shard-snb: FAIL (fdo#103925) -> PASS
igt@kms_sysfs_edid_timing:
shard-apl: WARN (fdo#100047) -> PASS
igt@perf@polling:
shard-hsw: FAIL (fdo#102252) -> PASS
fdo#100047 https://bugs.freedesktop.org/show_bug.cgi?id=100047
fdo#102252 https://bugs.freedesktop.org/show_bug.cgi?id=102252
fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887
fdo#103166 https://bugs.freedesktop.org/show_bug.cgi?id=103166
fdo#103313 https://bugs.freedesktop.org/show_bug.cgi?id=103313
fdo#103558 https://bugs.freedesktop.org/show_bug.cgi?id=103558
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#105602 https://bugs.freedesktop.org/show_bug.cgi?id=105602
== Participating hosts (5 -> 4) ==
Missing (1): shard-glkb
== Build changes ==
* IGT: IGT_4426 -> IGTPW_1251
* Linux: CI_DRM_4048 -> CI_DRM_4049
* Piglit: piglit_4426 -> piglit_4428
CI_DRM_4048: 8c59766aea748fef3de2711f69486cb37bef95bd @ git://anongit.freedesktop.org/gfx-ci/linux
CI_DRM_4049: 3dbfa04d62f1f1214a03c3b2d30f987dccf50ab4 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1251: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1251/
IGT_4426: d502f055ac4500cada758876a512ac4f14b34851 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4426: 93b35926a150e318439d2505901288594b3548f5 @ git://anongit.freedesktop.org/piglit
piglit_4428: 93b35926a150e318439d2505901288594b3548f5 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1251/shards.html
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH igt] igt/prime_mmap: Test for userptr support first
2018-04-12 18:08 [PATCH igt] igt/prime_mmap: Test for userptr support first Chris Wilson
2018-04-12 18:28 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-04-13 18:34 ` ✓ Fi.CI.IGT: " Patchwork
@ 2018-04-16 10:16 ` Tvrtko Ursulin
2 siblings, 0 replies; 4+ messages in thread
From: Tvrtko Ursulin @ 2018-04-16 10:16 UTC (permalink / raw)
To: Chris Wilson, intel-gfx
On 12/04/2018 19:08, Chris Wilson wrote:
> Before we start trying to use userptr to test interoperability with
> PRIME, we first need to check that the device in question has userptr
> support.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106013
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> ---
> tests/prime_mmap.c | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/tests/prime_mmap.c b/tests/prime_mmap.c
> index 0da0aa68..67a6a232 100644
> --- a/tests/prime_mmap.c
> +++ b/tests/prime_mmap.c
> @@ -307,6 +307,19 @@ static int prime_handle_to_fd_no_assert(uint32_t handle, int flags, int *fd_out)
> return ret;
> }
>
> +static bool has_userptr(void)
> +{
> + uint32_t handle = 0;
> + void *ptr;
> +
> + igt_assert(posix_memalign(&ptr, 4096, 4096) == 0);
> + if ( __gem_userptr(fd, ptr, 4096, 0, 0, &handle) == 0)
> + gem_close(fd, handle);
> + free(ptr);
> +
> + return handle;
> +}
> +
> /* test for mmap(dma_buf_export(userptr)) */
> static void
> test_userptr(void)
> @@ -315,6 +328,8 @@ test_userptr(void)
> void *ptr;
> uint32_t handle;
>
> + igt_require(has_userptr());
> +
> /* create userptr bo */
> ret = posix_memalign(&ptr, 4096, BO_SIZE);
> igt_assert_eq(ret, 0);
>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Regards,
Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-04-16 10:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-12 18:08 [PATCH igt] igt/prime_mmap: Test for userptr support first Chris Wilson
2018-04-12 18:28 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-04-13 18:34 ` ✓ Fi.CI.IGT: " Patchwork
2018-04-16 10:16 ` [PATCH igt] " Tvrtko Ursulin
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.