* [igt-dev] [PATCH i-g-t] i915/gem_mmap_gtt: Test mmap_offset lifetime
@ 2019-08-10 12:38 Chris Wilson
2019-08-10 13:41 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Chris Wilson @ 2019-08-10 12:38 UTC (permalink / raw)
To: intel-gfx; +Cc: igt-dev
Closing the object on another file should not affect the local
mmap_offset.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
---
tests/i915/gem_mmap_gtt.c | 40 +++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/tests/i915/gem_mmap_gtt.c b/tests/i915/gem_mmap_gtt.c
index 6f3a9c36e..8eff91850 100644
--- a/tests/i915/gem_mmap_gtt.c
+++ b/tests/i915/gem_mmap_gtt.c
@@ -322,6 +322,44 @@ test_pf_nonblock(int i915)
igt_spin_free(i915, spin);
}
+static void
+test_isolation(int i915)
+{
+ struct drm_i915_gem_mmap_gtt mmap_arg;
+ int A = gem_reopen_driver(i915);
+ int B = gem_reopen_driver(i915);
+ uint64_t offset_a, offset_b;
+ uint32_t a, b;
+ void *ptr;
+
+ a = gem_create(A, 4096);
+ b = gem_open(B, gem_flink(A, a));
+
+ mmap_arg.handle = a;
+ do_ioctl(A, DRM_IOCTL_I915_GEM_MMAP_GTT, &mmap_arg);
+ offset_a = mmap_arg.offset;
+
+ mmap_arg.handle = b;
+ do_ioctl(B, DRM_IOCTL_I915_GEM_MMAP_GTT, &mmap_arg);
+ offset_b = mmap_arg.offset;
+
+ igt_info("A: {fd:%d, handle:%d, offset:%"PRIx64"}\n",
+ A, a, offset_a);
+ igt_info("B: {fd:%d, handle:%d, offset:%"PRIx64"}\n",
+ B, b, offset_b);
+
+ close(B);
+
+ ptr = mmap64(0, 4096, PROT_READ, MAP_SHARED, A, offset_a);
+ igt_assert(ptr != MAP_FAILED);
+ munmap(ptr, 4096);
+
+ close(A);
+
+ ptr = mmap64(0, 4096, PROT_READ, MAP_SHARED, A, offset_a);
+ igt_assert(ptr == MAP_FAILED);
+}
+
static void
test_write_gtt(int fd)
{
@@ -945,6 +983,8 @@ igt_main
test_write_cpu_read_gtt(fd);
igt_subtest("basic-wc")
test_wc(fd);
+ igt_subtest("isolation")
+ test_isolation(fd);
igt_subtest("pf-nonblock")
test_pf_nonblock(fd);
--
2.23.0.rc1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 4+ messages in thread* [igt-dev] ✓ Fi.CI.BAT: success for i915/gem_mmap_gtt: Test mmap_offset lifetime 2019-08-10 12:38 [igt-dev] [PATCH i-g-t] i915/gem_mmap_gtt: Test mmap_offset lifetime Chris Wilson @ 2019-08-10 13:41 ` Patchwork 2019-08-11 5:18 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork 2019-08-13 10:44 ` [igt-dev] [PATCH i-g-t] " Abdiel Janulgue 2 siblings, 0 replies; 4+ messages in thread From: Patchwork @ 2019-08-10 13:41 UTC (permalink / raw) To: Chris Wilson; +Cc: igt-dev == Series Details == Series: i915/gem_mmap_gtt: Test mmap_offset lifetime URL : https://patchwork.freedesktop.org/series/65014/ State : success == Summary == CI Bug Log - changes from CI_DRM_6674 -> IGTPW_3331 ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://patchwork.freedesktop.org/api/1.0/series/65014/revisions/1/mbox/ Known issues ------------ Here are the changes found in IGTPW_3331 that come from known issues: ### IGT changes ### #### Issues hit #### * igt@gem_exec_suspend@basic-s3: - fi-blb-e6850: [PASS][1] -> [INCOMPLETE][2] ([fdo#107718]) [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/fi-blb-e6850/igt@gem_exec_suspend@basic-s3.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/fi-blb-e6850/igt@gem_exec_suspend@basic-s3.html * igt@gem_mmap_gtt@basic-write-no-prefault: - fi-icl-u3: [PASS][3] -> [DMESG-WARN][4] ([fdo#107724]) +1 similar issue [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/fi-icl-u3/igt@gem_mmap_gtt@basic-write-no-prefault.html [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/fi-icl-u3/igt@gem_mmap_gtt@basic-write-no-prefault.html * igt@kms_chamelium@common-hpd-after-suspend: - fi-kbl-7567u: [PASS][5] -> [WARN][6] ([fdo#109380]) [5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/fi-kbl-7567u/igt@kms_chamelium@common-hpd-after-suspend.html [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/fi-kbl-7567u/igt@kms_chamelium@common-hpd-after-suspend.html * igt@kms_chamelium@hdmi-hpd-fast: - fi-kbl-7500u: [PASS][7] -> [FAIL][8] ([fdo#109485]) [7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/fi-kbl-7500u/igt@kms_chamelium@hdmi-hpd-fast.html [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/fi-kbl-7500u/igt@kms_chamelium@hdmi-hpd-fast.html * igt@kms_frontbuffer_tracking@basic: - fi-hsw-peppy: [PASS][9] -> [DMESG-WARN][10] ([fdo#102614]) [9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/fi-hsw-peppy/igt@kms_frontbuffer_tracking@basic.html [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/fi-hsw-peppy/igt@kms_frontbuffer_tracking@basic.html * igt@kms_pipe_crc_basic@read-crc-pipe-c: - fi-kbl-7567u: [PASS][11] -> [SKIP][12] ([fdo#109271]) +23 similar issues [11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/fi-kbl-7567u/igt@kms_pipe_crc_basic@read-crc-pipe-c.html [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/fi-kbl-7567u/igt@kms_pipe_crc_basic@read-crc-pipe-c.html #### Possible fixes #### * igt@gem_exec_reloc@basic-write-gtt: - fi-icl-u3: [DMESG-WARN][13] ([fdo#107724]) -> [PASS][14] +1 similar issue [13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/fi-icl-u3/igt@gem_exec_reloc@basic-write-gtt.html [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/fi-icl-u3/igt@gem_exec_reloc@basic-write-gtt.html * igt@i915_pm_rpm@module-reload: - fi-cfl-8109u: [INCOMPLETE][15] ([fdo#107802]) -> [PASS][16] [15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/fi-cfl-8109u/igt@i915_pm_rpm@module-reload.html [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/fi-cfl-8109u/igt@i915_pm_rpm@module-reload.html * igt@kms_frontbuffer_tracking@basic: - fi-icl-u2: [FAIL][17] ([fdo#103167]) -> [PASS][18] [17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/fi-icl-u2/igt@kms_frontbuffer_tracking@basic.html [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/fi-icl-u2/igt@kms_frontbuffer_tracking@basic.html * igt@prime_vgem@basic-fence-flip: - fi-kbl-7500u: [SKIP][19] ([fdo#109271]) -> [PASS][20] +23 similar issues [19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/fi-kbl-7500u/igt@prime_vgem@basic-fence-flip.html [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/fi-kbl-7500u/igt@prime_vgem@basic-fence-flip.html [fdo#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614 [fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167 [fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718 [fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724 [fdo#107802]: https://bugs.freedesktop.org/show_bug.cgi?id=107802 [fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271 [fdo#109380]: https://bugs.freedesktop.org/show_bug.cgi?id=109380 [fdo#109485]: https://bugs.freedesktop.org/show_bug.cgi?id=109485 Participating hosts (55 -> 47) ------------------------------ Missing (8): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper fi-bdw-samus Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_5127 -> IGTPW_3331 CI-20190529: 20190529 CI_DRM_6674: 6ae77c1d350659fb671e1b55049beb6a9d0e5d53 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_3331: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/ IGT_5127: f43f5fa12ac1b93febfe3eeb9e9985f5f3e2eff0 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools == Testlist changes == +igt@gem_mmap_gtt@isolation == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/ _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev ^ permalink raw reply [flat|nested] 4+ messages in thread
* [igt-dev] ✗ Fi.CI.IGT: failure for i915/gem_mmap_gtt: Test mmap_offset lifetime 2019-08-10 12:38 [igt-dev] [PATCH i-g-t] i915/gem_mmap_gtt: Test mmap_offset lifetime Chris Wilson 2019-08-10 13:41 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork @ 2019-08-11 5:18 ` Patchwork 2019-08-13 10:44 ` [igt-dev] [PATCH i-g-t] " Abdiel Janulgue 2 siblings, 0 replies; 4+ messages in thread From: Patchwork @ 2019-08-11 5:18 UTC (permalink / raw) To: Chris Wilson; +Cc: igt-dev == Series Details == Series: i915/gem_mmap_gtt: Test mmap_offset lifetime URL : https://patchwork.freedesktop.org/series/65014/ State : failure == Summary == CI Bug Log - changes from CI_DRM_6674_full -> IGTPW_3331_full ==================================================== Summary ------- **FAILURE** Serious unknown changes coming with IGTPW_3331_full absolutely need to be verified manually. If you think the reported changes have nothing to do with the changes introduced in IGTPW_3331_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI. External URL: https://patchwork.freedesktop.org/api/1.0/series/65014/revisions/1/mbox/ Possible new issues ------------------- Here are the unknown changes that may have been introduced in IGTPW_3331_full: ### IGT changes ### #### Possible regressions #### * igt@gem_exec_schedule@fifo-vebox: - shard-hsw: [PASS][1] -> [FAIL][2] [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-hsw7/igt@gem_exec_schedule@fifo-vebox.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-hsw7/igt@gem_exec_schedule@fifo-vebox.html New tests --------- New tests have been introduced between CI_DRM_6674_full and IGTPW_3331_full: ### New IGT tests (1) ### * igt@gem_mmap_gtt@isolation: - Statuses : 6 pass(s) - Exec time: [0.0, 0.00] s Known issues ------------ Here are the changes found in IGTPW_3331_full that come from known issues: ### IGT changes ### #### Issues hit #### * igt@gem_exec_schedule@preempt-bsd1: - shard-iclb: [PASS][3] -> [SKIP][4] ([fdo#109276]) +14 similar issues [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-iclb2/igt@gem_exec_schedule@preempt-bsd1.html [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-iclb7/igt@gem_exec_schedule@preempt-bsd1.html * igt@gem_exec_schedule@preempt-other-chain-bsd: - shard-iclb: [PASS][5] -> [SKIP][6] ([fdo#111325]) +7 similar issues [5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-iclb5/igt@gem_exec_schedule@preempt-other-chain-bsd.html [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-iclb4/igt@gem_exec_schedule@preempt-other-chain-bsd.html * igt@i915_pm_rc6_residency@rc6-accuracy: - shard-kbl: [PASS][7] -> [SKIP][8] ([fdo#109271]) [7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-kbl2/igt@i915_pm_rc6_residency@rc6-accuracy.html [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-kbl1/igt@i915_pm_rc6_residency@rc6-accuracy.html * igt@i915_pm_rpm@i2c: - shard-hsw: [PASS][9] -> [FAIL][10] ([fdo#104097]) [9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-hsw6/igt@i915_pm_rpm@i2c.html [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-hsw1/igt@i915_pm_rpm@i2c.html * igt@i915_suspend@debugfs-reader: - shard-apl: [PASS][11] -> [DMESG-WARN][12] ([fdo#108566]) +8 similar issues [11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-apl6/igt@i915_suspend@debugfs-reader.html [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-apl4/igt@i915_suspend@debugfs-reader.html * igt@kms_flip@2x-flip-vs-expired-vblank-interruptible: - shard-glk: [PASS][13] -> [FAIL][14] ([fdo#105363]) [13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-glk4/igt@kms_flip@2x-flip-vs-expired-vblank-interruptible.html [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-glk6/igt@kms_flip@2x-flip-vs-expired-vblank-interruptible.html * igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-shrfb-draw-pwrite: - shard-iclb: [PASS][15] -> [FAIL][16] ([fdo#103167]) +1 similar issue [15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-iclb4/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-shrfb-draw-pwrite.html [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-iclb1/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-shrfb-draw-pwrite.html * igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes: - shard-kbl: [PASS][17] -> [DMESG-WARN][18] ([fdo#108566]) +2 similar issues [17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-kbl6/igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes.html [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-kbl7/igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes.html * igt@kms_psr2_su@frontbuffer: - shard-iclb: [PASS][19] -> [SKIP][20] ([fdo#109642] / [fdo#111068]) [19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-iclb2/igt@kms_psr2_su@frontbuffer.html [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-iclb4/igt@kms_psr2_su@frontbuffer.html * igt@kms_psr@psr2_primary_page_flip: - shard-iclb: [PASS][21] -> [SKIP][22] ([fdo#109441]) +3 similar issues [21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-iclb2/igt@kms_psr@psr2_primary_page_flip.html [22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-iclb3/igt@kms_psr@psr2_primary_page_flip.html * igt@kms_vblank@pipe-b-ts-continuation-suspend: - shard-kbl: [PASS][23] -> [INCOMPLETE][24] ([fdo#103665]) +1 similar issue [23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-kbl6/igt@kms_vblank@pipe-b-ts-continuation-suspend.html [24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-kbl2/igt@kms_vblank@pipe-b-ts-continuation-suspend.html #### Possible fixes #### * igt@gem_ctx_shared@exec-single-timeline-bsd: - shard-iclb: [SKIP][25] ([fdo#110841]) -> [PASS][26] [25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-iclb1/igt@gem_ctx_shared@exec-single-timeline-bsd.html [26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-iclb6/igt@gem_ctx_shared@exec-single-timeline-bsd.html * igt@gem_exec_schedule@preempt-other-bsd1: - shard-iclb: [SKIP][27] ([fdo#109276]) -> [PASS][28] +21 similar issues [27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-iclb3/igt@gem_exec_schedule@preempt-other-bsd1.html [28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-iclb1/igt@gem_exec_schedule@preempt-other-bsd1.html * igt@gem_exec_schedule@promotion-bsd: - shard-iclb: [SKIP][29] ([fdo#111325]) -> [PASS][30] +4 similar issues [29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-iclb2/igt@gem_exec_schedule@promotion-bsd.html [30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-iclb5/igt@gem_exec_schedule@promotion-bsd.html * igt@gem_softpin@noreloc-s3: - shard-iclb: [INCOMPLETE][31] ([fdo#107713] / [fdo#109100]) -> [PASS][32] [31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-iclb3/igt@gem_softpin@noreloc-s3.html [32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-iclb7/igt@gem_softpin@noreloc-s3.html * igt@gem_tiled_swapping@non-threaded: - shard-apl: [DMESG-WARN][33] ([fdo#108686]) -> [PASS][34] [33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-apl1/igt@gem_tiled_swapping@non-threaded.html [34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-apl8/igt@gem_tiled_swapping@non-threaded.html * igt@i915_suspend@fence-restore-untiled: - shard-apl: [DMESG-WARN][35] ([fdo#108566]) -> [PASS][36] +2 similar issues [35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-apl4/igt@i915_suspend@fence-restore-untiled.html [36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-apl6/igt@i915_suspend@fence-restore-untiled.html * igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-mmap-gtt: - shard-iclb: [FAIL][37] ([fdo#103167]) -> [PASS][38] +5 similar issues [37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-iclb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-mmap-gtt.html [38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-iclb4/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-mmap-gtt.html * igt@kms_psr@psr2_suspend: - shard-iclb: [SKIP][39] ([fdo#109441]) -> [PASS][40] [39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-iclb3/igt@kms_psr@psr2_suspend.html [40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-iclb2/igt@kms_psr@psr2_suspend.html * igt@kms_setmode@basic: - shard-apl: [FAIL][41] ([fdo#99912]) -> [PASS][42] [41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-apl2/igt@kms_setmode@basic.html [42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-apl4/igt@kms_setmode@basic.html - shard-glk: [FAIL][43] ([fdo#99912]) -> [PASS][44] [43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-glk7/igt@kms_setmode@basic.html [44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-glk2/igt@kms_setmode@basic.html * igt@kms_vblank@pipe-a-ts-continuation-suspend: - shard-kbl: [DMESG-WARN][45] ([fdo#108566]) -> [PASS][46] +4 similar issues [45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-kbl7/igt@kms_vblank@pipe-a-ts-continuation-suspend.html [46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-kbl7/igt@kms_vblank@pipe-a-ts-continuation-suspend.html * igt@perf_pmu@rc6-runtime-pm-long: - shard-iclb: [FAIL][47] ([fdo#105010]) -> [PASS][48] [47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-iclb1/igt@perf_pmu@rc6-runtime-pm-long.html [48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-iclb1/igt@perf_pmu@rc6-runtime-pm-long.html - shard-glk: [FAIL][49] ([fdo#105010]) -> [PASS][50] [49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-glk9/igt@perf_pmu@rc6-runtime-pm-long.html [50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-glk8/igt@perf_pmu@rc6-runtime-pm-long.html - shard-hsw: [FAIL][51] ([fdo#105010]) -> [PASS][52] [51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-hsw7/igt@perf_pmu@rc6-runtime-pm-long.html [52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-hsw2/igt@perf_pmu@rc6-runtime-pm-long.html #### Warnings #### * igt@gem_ctx_isolation@vcs1-nonpriv: - shard-iclb: [SKIP][53] ([fdo#109276]) -> [FAIL][54] ([fdo#111329]) [53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-iclb6/igt@gem_ctx_isolation@vcs1-nonpriv.html [54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-iclb4/igt@gem_ctx_isolation@vcs1-nonpriv.html * igt@gem_mocs_settings@mocs-settings-bsd2: - shard-iclb: [FAIL][55] ([fdo#111330]) -> [SKIP][56] ([fdo#109276]) [55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-iclb2/igt@gem_mocs_settings@mocs-settings-bsd2.html [56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-iclb8/igt@gem_mocs_settings@mocs-settings-bsd2.html * igt@gem_pwrite@huge-cpu-backwards: - shard-iclb: [INCOMPLETE][57] ([fdo#107713]) -> [SKIP][58] ([fdo#109290]) [57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6674/shard-iclb4/igt@gem_pwrite@huge-cpu-backwards.html [58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/shard-iclb4/igt@gem_pwrite@huge-cpu-backwards.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167 [fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665 [fdo#104097]: https://bugs.freedesktop.org/show_bug.cgi?id=104097 [fdo#105010]: https://bugs.freedesktop.org/show_bug.cgi?id=105010 [fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363 [fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713 [fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566 [fdo#108686]: https://bugs.freedesktop.org/show_bug.cgi?id=108686 [fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100 [fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271 [fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276 [fdo#109290]: https://bugs.freedesktop.org/show_bug.cgi?id=109290 [fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441 [fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642 [fdo#110841]: https://bugs.freedesktop.org/show_bug.cgi?id=110841 [fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068 [fdo#111325]: https://bugs.freedesktop.org/show_bug.cgi?id=111325 [fdo#111329]: https://bugs.freedesktop.org/show_bug.cgi?id=111329 [fdo#111330]: https://bugs.freedesktop.org/show_bug.cgi?id=111330 [fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912 Participating hosts (10 -> 6) ------------------------------ Missing (4): pig-skl-6260u shard-skl pig-hsw-4770r pig-glk-j5005 Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_5127 -> IGTPW_3331 * Piglit: piglit_4509 -> None CI-20190529: 20190529 CI_DRM_6674: 6ae77c1d350659fb671e1b55049beb6a9d0e5d53 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_3331: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/ IGT_5127: f43f5fa12ac1b93febfe3eeb9e9985f5f3e2eff0 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3331/ _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] i915/gem_mmap_gtt: Test mmap_offset lifetime 2019-08-10 12:38 [igt-dev] [PATCH i-g-t] i915/gem_mmap_gtt: Test mmap_offset lifetime Chris Wilson 2019-08-10 13:41 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork 2019-08-11 5:18 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork @ 2019-08-13 10:44 ` Abdiel Janulgue 2 siblings, 0 replies; 4+ messages in thread From: Abdiel Janulgue @ 2019-08-13 10:44 UTC (permalink / raw) To: Chris Wilson, intel-gfx; +Cc: igt-dev On 10/08/2019 15.38, Chris Wilson wrote: > Closing the object on another file should not affect the local > mmap_offset. > Thanks for this! It helped squeezed the bug out of mmap_offset. Reviewed-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com> > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> > Cc: Abdiel Janulgue <abdiel.janulgue@linux.intel.com> > --- > tests/i915/gem_mmap_gtt.c | 40 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > > diff --git a/tests/i915/gem_mmap_gtt.c b/tests/i915/gem_mmap_gtt.c > index 6f3a9c36e..8eff91850 100644 > --- a/tests/i915/gem_mmap_gtt.c > +++ b/tests/i915/gem_mmap_gtt.c > @@ -322,6 +322,44 @@ test_pf_nonblock(int i915) > igt_spin_free(i915, spin); > } > > +static void > +test_isolation(int i915) > +{ > + struct drm_i915_gem_mmap_gtt mmap_arg; > + int A = gem_reopen_driver(i915); > + int B = gem_reopen_driver(i915); > + uint64_t offset_a, offset_b; > + uint32_t a, b; > + void *ptr; > + > + a = gem_create(A, 4096); > + b = gem_open(B, gem_flink(A, a)); > + > + mmap_arg.handle = a; > + do_ioctl(A, DRM_IOCTL_I915_GEM_MMAP_GTT, &mmap_arg); > + offset_a = mmap_arg.offset; > + > + mmap_arg.handle = b; > + do_ioctl(B, DRM_IOCTL_I915_GEM_MMAP_GTT, &mmap_arg); > + offset_b = mmap_arg.offset; > + > + igt_info("A: {fd:%d, handle:%d, offset:%"PRIx64"}\n", > + A, a, offset_a); > + igt_info("B: {fd:%d, handle:%d, offset:%"PRIx64"}\n", > + B, b, offset_b); > + > + close(B); > + > + ptr = mmap64(0, 4096, PROT_READ, MAP_SHARED, A, offset_a); > + igt_assert(ptr != MAP_FAILED); > + munmap(ptr, 4096); > + > + close(A); > + > + ptr = mmap64(0, 4096, PROT_READ, MAP_SHARED, A, offset_a); > + igt_assert(ptr == MAP_FAILED); > +} > + > static void > test_write_gtt(int fd) > { > @@ -945,6 +983,8 @@ igt_main > test_write_cpu_read_gtt(fd); > igt_subtest("basic-wc") > test_wc(fd); > + igt_subtest("isolation") > + test_isolation(fd); > igt_subtest("pf-nonblock") > test_pf_nonblock(fd); > > _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-08-13 10:44 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-08-10 12:38 [igt-dev] [PATCH i-g-t] i915/gem_mmap_gtt: Test mmap_offset lifetime Chris Wilson 2019-08-10 13:41 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork 2019-08-11 5:18 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork 2019-08-13 10:44 ` [igt-dev] [PATCH i-g-t] " Abdiel Janulgue
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox