* [igt-dev] [PATCH i-g-t] tests/i915: Remove subtests that rely on async relocation behavior
@ 2020-08-10 9:00 Maarten Lankhorst
2020-08-10 9:56 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Maarten Lankhorst @ 2020-08-10 9:00 UTC (permalink / raw)
To: igt-dev; +Cc: Dave Airlie
These tests are no longer valid, as they require behavior that
was never accepted upstream; it assumes that relocations don't
block synchronously, and the reservation_object lock is only
held at the end of command submission to install the fences.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Dave Airlie <airlied@redhat.com>
---
tests/i915/gem_exec_reloc.c | 219 ------------------------------------
1 file changed, 219 deletions(-)
diff --git a/tests/i915/gem_exec_reloc.c b/tests/i915/gem_exec_reloc.c
index d50a8b69487f..85df3da7e011 100644
--- a/tests/i915/gem_exec_reloc.c
+++ b/tests/i915/gem_exec_reloc.c
@@ -424,76 +424,6 @@ static void many_active(int i915, unsigned engine)
}
}
-static void __wide_active(int i915, unsigned engine, unsigned long count)
-{
- struct drm_i915_gem_relocation_entry *reloc =
- calloc(count, sizeof(*reloc));
- struct drm_i915_gem_exec_object2 *obj =
- calloc(count + 1, sizeof(*obj));
- struct drm_i915_gem_execbuffer2 execbuf = {
- .buffers_ptr = to_user_pointer(obj),
- .buffer_count = count + 1,
- .flags = engine | I915_EXEC_HANDLE_LUT,
- };
- igt_spin_t *spin;
-
- for (unsigned long i = 0; i < count; i++) {
- obj[i].handle = gem_create(i915, 4096);
- obj[i].flags = EXEC_OBJECT_WRITE;
- obj[i].flags |= EXEC_OBJECT_SUPPORTS_48B_ADDRESS;
- }
-
- spin = __igt_spin_new(i915,
- .engine = engine,
- .flags = (IGT_SPIN_FENCE_OUT |
- IGT_SPIN_NO_PREEMPTION));
- obj[count] = spin->obj[1];
- gem_execbuf(i915, &execbuf); /* mark all the objects as active */
-
- for (unsigned long i = 0; i < count; i++) {
- reloc[i].target_handle = i;
- reloc[i].presumed_offset = ~0ull;
- obj[i].relocs_ptr = to_user_pointer(&reloc[i]);
- obj[i].relocation_count = 1;
- }
- gem_execbuf(i915, &execbuf); /* relocation onto active objects */
-
- igt_assert_eq(sync_fence_status(spin->out_fence), 0);
- igt_spin_free(i915, spin);
-
- for (unsigned long i = 0; i < count; i++) {
- uint64_t addr;
-
- gem_read(i915, obj[i].handle, 0, &addr, sizeof(addr));
- igt_assert_eq_u64(addr, obj[i].offset);
-
- gem_close(i915, obj[i].handle);
- }
- free(obj);
- free(reloc);
-}
-
-static void wide_active(int i915, unsigned engine)
-{
- const uint64_t max = gem_aperture_size(i915) / 4096 / 2;
- unsigned long count = 256;
-
- igt_until_timeout(2) {
- uint64_t required, total;
-
- if (!__intel_check_memory(count, 4096, CHECK_RAM,
- &required, &total))
- break;
-
- igt_debug("Testing count:%lu\n", count);
- __wide_active(i915, engine, count);
-
- count <<= 1;
- if (count >= max)
- break;
- }
-}
-
static unsigned int offset_in_page(void *addr)
{
return (uintptr_t)addr & 4095;
@@ -937,145 +867,6 @@ static void basic_softpin(int fd)
gem_close(fd, obj[1].handle);
}
-static struct drm_i915_gem_relocation_entry *
-parallel_relocs(int count, unsigned long *out)
-{
- struct drm_i915_gem_relocation_entry *reloc;
- unsigned long sz;
- int i;
-
- sz = count * sizeof(*reloc);
- sz = ALIGN(sz, 4096);
-
- reloc = mmap(0, sz, PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
- igt_assert(reloc != MAP_FAILED);
- for (i = 0; i < count; i++) {
- reloc[i].target_handle = 0;
- reloc[i].presumed_offset = ~0ull;
- reloc[i].offset = 8 * i;
- reloc[i].delta = i;
- reloc[i].read_domains = I915_GEM_DOMAIN_INSTRUCTION;
- reloc[i].write_domain = 0;
- }
- mprotect(reloc, sz, PROT_READ);
-
- *out = sz;
- return reloc;
-}
-
-static int __execbuf(int i915, struct drm_i915_gem_execbuffer2 *execbuf)
-{
- int err;
-
- err = 0;
- if (ioctl(i915, DRM_IOCTL_I915_GEM_EXECBUFFER2, execbuf)) {
- err = -errno;
- igt_assume(err);
- }
-
- errno = 0;
- return err;
-}
-
-static int stop;
-static void sighandler(int sig)
-{
- stop = 1;
-}
-
-static void parallel_child(int i915,
- const struct intel_execution_engine2 *engine,
- struct drm_i915_gem_relocation_entry *reloc,
- uint32_t common)
-{
- igt_spin_t *spin = __igt_spin_new(i915, .engine = engine->flags);
- struct drm_i915_gem_exec_object2 reloc_target = {
- .handle = gem_create(i915, 32 * 1024 * 8),
- .relocation_count = 32 * 1024,
- .relocs_ptr = to_user_pointer(reloc),
- };
- struct drm_i915_gem_exec_object2 obj[3] = {
- reloc_target,
- { .handle = common },
- spin->obj[1],
- };
- struct drm_i915_gem_execbuffer2 execbuf = {
- .buffers_ptr = to_user_pointer(obj),
- .buffer_count = ARRAY_SIZE(obj),
- .flags = engine->flags | I915_EXEC_HANDLE_LUT,
- };
- struct sigaction act = {
- .sa_handler = sighandler,
- };
- unsigned long count = 0;
-
- sigaction(SIGINT, &act, NULL);
- while (!READ_ONCE(stop)) {
- int err = __execbuf(i915, &execbuf);
- if (err == -EINTR)
- break;
-
- igt_assert_eq(err, 0);
- count++;
- }
-
- igt_info("%s: count %lu\n", engine->name, count);
- igt_spin_free(i915, spin);
-}
-
-static void kill_children(int sig)
-{
- signal(sig, SIG_IGN);
- kill(-getpgrp(), SIGINT);
- signal(sig, SIG_DFL);
-}
-
-static void parallel(int i915)
-{
- const struct intel_execution_engine2 *e;
- struct drm_i915_gem_relocation_entry *reloc;
- uint32_t common = gem_create(i915, 4096);
- uint32_t batch = batch_create(i915);
- unsigned long reloc_sz;
-
- reloc = parallel_relocs(32 * 1024, &reloc_sz);
-
- stop = 0;
- __for_each_physical_engine(i915, e) {
- igt_fork(child, 1)
- parallel_child(i915, e, reloc, common);
- }
- sleep(2);
-
- if (gem_scheduler_has_preemption(i915)) {
- uint32_t ctx = gem_context_clone_with_engines(i915, 0);
-
- __for_each_physical_engine(i915, e) {
- struct drm_i915_gem_exec_object2 obj[2] = {
- { .handle = common },
- { .handle = batch },
- };
- struct drm_i915_gem_execbuffer2 execbuf = {
- .buffers_ptr = to_user_pointer(obj),
- .buffer_count = ARRAY_SIZE(obj),
- .flags = e->flags,
- .rsvd1 = ctx,
- };
- gem_execbuf(i915, &execbuf);
- }
-
- gem_context_destroy(i915, ctx);
- }
- gem_sync(i915, batch);
- gem_close(i915, batch);
-
- kill_children(SIGINT);
- igt_waitchildren();
-
- gem_close(i915, common);
- munmap(reloc, reloc_sz);
-}
-
#define CONCURRENT 1024
static uint64_t concurrent_relocs(int i915, int idx, int count)
@@ -1487,16 +1278,6 @@ igt_main
}
}
- igt_subtest_with_dynamic("basic-wide-active") {
- __for_each_physical_engine(fd, e) {
- igt_dynamic_f("%s", e->name)
- wide_active(fd, e->flags);
- }
- }
-
- igt_subtest("basic-parallel")
- parallel(fd);
-
igt_subtest("basic-concurrent0")
concurrent(fd, 0);
igt_subtest("basic-concurrent16")
--
2.28.0
_______________________________________________
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 tests/i915: Remove subtests that rely on async relocation behavior 2020-08-10 9:00 [igt-dev] [PATCH i-g-t] tests/i915: Remove subtests that rely on async relocation behavior Maarten Lankhorst @ 2020-08-10 9:56 ` Patchwork 2020-08-10 12:42 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork 2020-08-10 19:07 ` [igt-dev] [PATCH i-g-t] " David Airlie 2 siblings, 0 replies; 4+ messages in thread From: Patchwork @ 2020-08-10 9:56 UTC (permalink / raw) To: Maarten Lankhorst; +Cc: igt-dev [-- Attachment #1.1: Type: text/plain, Size: 5010 bytes --] == Series Details == Series: tests/i915: Remove subtests that rely on async relocation behavior URL : https://patchwork.freedesktop.org/series/80460/ State : success == Summary == CI Bug Log - changes from CI_DRM_8862 -> IGTPW_4868 ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/index.html Known issues ------------ Here are the changes found in IGTPW_4868 that come from known issues: ### IGT changes ### #### Issues hit #### * igt@i915_module_load@reload: - fi-apl-guc: [PASS][1] -> [DMESG-WARN][2] ([i915#1635] / [i915#1982]) [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/fi-apl-guc/igt@i915_module_load@reload.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/fi-apl-guc/igt@i915_module_load@reload.html * igt@kms_chamelium@common-hpd-after-suspend: - fi-kbl-7500u: [PASS][3] -> [DMESG-WARN][4] ([i915#2203]) [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/fi-kbl-7500u/igt@kms_chamelium@common-hpd-after-suspend.html [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/fi-kbl-7500u/igt@kms_chamelium@common-hpd-after-suspend.html * igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic: - fi-bsw-kefka: [PASS][5] -> [DMESG-WARN][6] ([i915#1982]) +1 similar issue [5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/fi-bsw-kefka/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic.html [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/fi-bsw-kefka/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic.html #### Possible fixes #### * igt@gem_exec_suspend@basic-s0: - fi-tgl-u2: [FAIL][7] ([i915#1888]) -> [PASS][8] [7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/fi-tgl-u2/igt@gem_exec_suspend@basic-s0.html [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/fi-tgl-u2/igt@gem_exec_suspend@basic-s0.html * igt@i915_pm_rpm@module-reload: - fi-apl-guc: [DMESG-WARN][9] ([i915#1635] / [i915#1982]) -> [PASS][10] [9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/fi-apl-guc/igt@i915_pm_rpm@module-reload.html [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/fi-apl-guc/igt@i915_pm_rpm@module-reload.html * igt@kms_busy@basic@flip: - fi-kbl-x1275: [DMESG-WARN][11] ([i915#62] / [i915#92] / [i915#95]) -> [PASS][12] [11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/fi-kbl-x1275/igt@kms_busy@basic@flip.html [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/fi-kbl-x1275/igt@kms_busy@basic@flip.html #### Warnings #### * igt@kms_cursor_legacy@basic-flip-after-cursor-legacy: - fi-kbl-x1275: [DMESG-WARN][13] ([i915#62] / [i915#92]) -> [DMESG-WARN][14] ([i915#62] / [i915#92] / [i915#95]) +1 similar issue [13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/fi-kbl-x1275/igt@kms_cursor_legacy@basic-flip-after-cursor-legacy.html [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/fi-kbl-x1275/igt@kms_cursor_legacy@basic-flip-after-cursor-legacy.html * igt@kms_flip@basic-flip-vs-dpms@a-dp1: - fi-kbl-x1275: [DMESG-WARN][15] ([i915#62] / [i915#92] / [i915#95]) -> [DMESG-WARN][16] ([i915#62] / [i915#92]) +2 similar issues [15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/fi-kbl-x1275/igt@kms_flip@basic-flip-vs-dpms@a-dp1.html [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/fi-kbl-x1275/igt@kms_flip@basic-flip-vs-dpms@a-dp1.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [i915#1635]: https://gitlab.freedesktop.org/drm/intel/issues/1635 [i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888 [i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982 [i915#2203]: https://gitlab.freedesktop.org/drm/intel/issues/2203 [i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62 [i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92 [i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95 Participating hosts (42 -> 37) ------------------------------ Additional (1): fi-kbl-soraka Missing (6): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-byt-clapper fi-bdw-samus Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_5765 -> IGTPW_4868 CI-20190529: 20190529 CI_DRM_8862: 147f0d3f7239756494adef31518f87e60a970878 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_4868: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/index.html IGT_5765: 9f0977284d54ed37496260988dfcd6d2ad72dd1e @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools == Testlist changes == -igt@gem_exec_reloc@basic-parallel -igt@gem_exec_reloc@basic-wide-active == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/index.html [-- Attachment #1.2: Type: text/html, Size: 6670 bytes --] [-- Attachment #2: Type: text/plain, Size: 154 bytes --] _______________________________________________ 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: success for tests/i915: Remove subtests that rely on async relocation behavior 2020-08-10 9:00 [igt-dev] [PATCH i-g-t] tests/i915: Remove subtests that rely on async relocation behavior Maarten Lankhorst 2020-08-10 9:56 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork @ 2020-08-10 12:42 ` Patchwork 2020-08-10 19:07 ` [igt-dev] [PATCH i-g-t] " David Airlie 2 siblings, 0 replies; 4+ messages in thread From: Patchwork @ 2020-08-10 12:42 UTC (permalink / raw) To: Maarten Lankhorst; +Cc: igt-dev [-- Attachment #1.1: Type: text/plain, Size: 15255 bytes --] == Series Details == Series: tests/i915: Remove subtests that rely on async relocation behavior URL : https://patchwork.freedesktop.org/series/80460/ State : success == Summary == CI Bug Log - changes from CI_DRM_8862_full -> IGTPW_4868_full ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/index.html Known issues ------------ Here are the changes found in IGTPW_4868_full that come from known issues: ### IGT changes ### #### Issues hit #### * igt@kms_big_fb@x-tiled-32bpp-rotate-180: - shard-kbl: [PASS][1] -> [DMESG-WARN][2] ([i915#93] / [i915#95]) [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-kbl3/igt@kms_big_fb@x-tiled-32bpp-rotate-180.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-kbl6/igt@kms_big_fb@x-tiled-32bpp-rotate-180.html * igt@kms_cursor_crc@pipe-a-cursor-dpms: - shard-kbl: [PASS][3] -> [FAIL][4] ([i915#54]) [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-kbl3/igt@kms_cursor_crc@pipe-a-cursor-dpms.html [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-kbl6/igt@kms_cursor_crc@pipe-a-cursor-dpms.html - shard-apl: [PASS][5] -> [FAIL][6] ([i915#1635] / [i915#54]) [5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-apl8/igt@kms_cursor_crc@pipe-a-cursor-dpms.html [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-apl2/igt@kms_cursor_crc@pipe-a-cursor-dpms.html * igt@kms_flip@2x-flip-vs-fences-interruptible@ab-vga1-hdmi-a1: - shard-hsw: [PASS][7] -> [DMESG-WARN][8] ([i915#1982]) [7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-hsw6/igt@kms_flip@2x-flip-vs-fences-interruptible@ab-vga1-hdmi-a1.html [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-hsw6/igt@kms_flip@2x-flip-vs-fences-interruptible@ab-vga1-hdmi-a1.html * igt@kms_flip@flip-vs-suspend@c-dp1: - shard-kbl: [PASS][9] -> [DMESG-WARN][10] ([i915#180]) +11 similar issues [9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-kbl6/igt@kms_flip@flip-vs-suspend@c-dp1.html [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-kbl1/igt@kms_flip@flip-vs-suspend@c-dp1.html * igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-shrfb-draw-render: - shard-tglb: [PASS][11] -> [DMESG-WARN][12] ([i915#1982]) +1 similar issue [11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-tglb5/igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-shrfb-draw-render.html [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-tglb5/igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-shrfb-draw-render.html * igt@kms_lease@lease_invalid_crtc: - shard-hsw: [PASS][13] -> [TIMEOUT][14] ([i915#1958]) +2 similar issues [13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-hsw1/igt@kms_lease@lease_invalid_crtc.html [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-hsw8/igt@kms_lease@lease_invalid_crtc.html * igt@kms_psr@psr2_cursor_plane_onoff: - shard-iclb: [PASS][15] -> [SKIP][16] ([fdo#109441]) +2 similar issues [15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-iclb2/igt@kms_psr@psr2_cursor_plane_onoff.html [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-iclb4/igt@kms_psr@psr2_cursor_plane_onoff.html * igt@perf@blocking-parameterized: - shard-iclb: [PASS][17] -> [FAIL][18] ([i915#1542]) [17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-iclb4/igt@perf@blocking-parameterized.html [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-iclb6/igt@perf@blocking-parameterized.html * igt@perf@polling-parameterized: - shard-iclb: [PASS][19] -> [DMESG-WARN][20] ([i915#1982]) +1 similar issue [19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-iclb2/igt@perf@polling-parameterized.html [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-iclb2/igt@perf@polling-parameterized.html * igt@prime_busy@after-wait@vcs0: - shard-hsw: [PASS][21] -> [FAIL][22] ([i915#2258]) +2 similar issues [21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-hsw6/igt@prime_busy@after-wait@vcs0.html [22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-hsw5/igt@prime_busy@after-wait@vcs0.html * igt@syncobj_wait@multi-wait-for-submit-submitted-signaled: - shard-snb: [PASS][23] -> [TIMEOUT][24] ([i915#1958]) +2 similar issues [23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-snb2/igt@syncobj_wait@multi-wait-for-submit-submitted-signaled.html [24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-snb2/igt@syncobj_wait@multi-wait-for-submit-submitted-signaled.html * igt@sysfs_preempt_timeout@timeout@vecs0: - shard-glk: [PASS][25] -> [FAIL][26] ([i915#1755]) [25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-glk5/igt@sysfs_preempt_timeout@timeout@vecs0.html [26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-glk9/igt@sysfs_preempt_timeout@timeout@vecs0.html #### Possible fixes #### * {igt@feature_discovery@psr2}: - shard-iclb: [SKIP][27] ([i915#658]) -> [PASS][28] [27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-iclb8/igt@feature_discovery@psr2.html [28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-iclb2/igt@feature_discovery@psr2.html * igt@gem_ctx_isolation@preservation-s3@vecs0: - shard-kbl: [DMESG-WARN][29] ([i915#180]) -> [PASS][30] +3 similar issues [29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-kbl1/igt@gem_ctx_isolation@preservation-s3@vecs0.html [30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-kbl7/igt@gem_ctx_isolation@preservation-s3@vecs0.html * igt@gem_eio@kms: - shard-apl: [DMESG-WARN][31] ([i915#1635] / [i915#1982]) -> [PASS][32] +1 similar issue [31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-apl4/igt@gem_eio@kms.html [32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-apl2/igt@gem_eio@kms.html * igt@gem_exec_whisper@basic-queues-forked-all: - shard-glk: [DMESG-WARN][33] ([i915#118] / [i915#95]) -> [PASS][34] +2 similar issues [33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-glk4/igt@gem_exec_whisper@basic-queues-forked-all.html [34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-glk7/igt@gem_exec_whisper@basic-queues-forked-all.html * igt@kms_cursor_edge_walk@pipe-c-128x128-bottom-edge: - shard-glk: [DMESG-WARN][35] ([i915#1982]) -> [PASS][36] [35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-glk4/igt@kms_cursor_edge_walk@pipe-c-128x128-bottom-edge.html [36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-glk3/igt@kms_cursor_edge_walk@pipe-c-128x128-bottom-edge.html * igt@kms_cursor_legacy@cursor-vs-flip-toggle: - shard-hsw: [FAIL][37] ([i915#57]) -> [PASS][38] [37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-hsw1/igt@kms_cursor_legacy@cursor-vs-flip-toggle.html [38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-hsw6/igt@kms_cursor_legacy@cursor-vs-flip-toggle.html * igt@kms_flip@2x-plain-flip-fb-recreate@ab-vga1-hdmi-a1: - shard-hsw: [DMESG-WARN][39] ([i915#1982]) -> [PASS][40] [39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-hsw6/igt@kms_flip@2x-plain-flip-fb-recreate@ab-vga1-hdmi-a1.html [40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-hsw2/igt@kms_flip@2x-plain-flip-fb-recreate@ab-vga1-hdmi-a1.html * igt@kms_flip@modeset-vs-vblank-race-interruptible@a-dp1: - shard-kbl: [DMESG-WARN][41] ([i915#1982]) -> [PASS][42] [41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-kbl2/igt@kms_flip@modeset-vs-vblank-race-interruptible@a-dp1.html [42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-kbl4/igt@kms_flip@modeset-vs-vblank-race-interruptible@a-dp1.html * igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-wc: - shard-tglb: [DMESG-WARN][43] ([i915#1982]) -> [PASS][44] +2 similar issues [43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-tglb5/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-wc.html [44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-tglb8/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-wc.html - shard-iclb: [DMESG-WARN][45] ([i915#1982]) -> [PASS][46] [45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-iclb7/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-wc.html [46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-iclb6/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-wc.html * igt@kms_psr@no_drrs: - shard-iclb: [FAIL][47] ([i915#173]) -> [PASS][48] [47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-iclb1/igt@kms_psr@no_drrs.html [48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-iclb7/igt@kms_psr@no_drrs.html * igt@kms_psr@psr2_cursor_blt: - shard-iclb: [SKIP][49] ([fdo#109441]) -> [PASS][50] +2 similar issues [49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-iclb1/igt@kms_psr@psr2_cursor_blt.html [50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-iclb2/igt@kms_psr@psr2_cursor_blt.html * igt@perf_pmu@init-wait@vecs0: - shard-hsw: [DMESG-WARN][51] ([i915#2316]) -> [PASS][52] [51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-hsw6/igt@perf_pmu@init-wait@vecs0.html [52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-hsw1/igt@perf_pmu@init-wait@vecs0.html * igt@prime_busy@hang-wait@bcs0: - shard-hsw: [FAIL][53] ([i915#2258]) -> [PASS][54] +5 similar issues [53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-hsw6/igt@prime_busy@hang-wait@bcs0.html [54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-hsw7/igt@prime_busy@hang-wait@bcs0.html * {igt@syncobj_timeline@invalid-multi-wait-unsubmitted-submitted}: - shard-hsw: [TIMEOUT][55] ([i915#1958]) -> [PASS][56] [55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-hsw6/igt@syncobj_timeline@invalid-multi-wait-unsubmitted-submitted.html [56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-hsw2/igt@syncobj_timeline@invalid-multi-wait-unsubmitted-submitted.html #### Warnings #### * igt@gem_ctx_engines@execute-one: - shard-snb: [SKIP][57] ([fdo#109271]) -> [TIMEOUT][58] ([i915#1958]) +1 similar issue [57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-snb2/igt@gem_ctx_engines@execute-one.html [58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-snb2/igt@gem_ctx_engines@execute-one.html * igt@gem_exec_reloc@basic-concurrent16: - shard-snb: [FAIL][59] ([i915#1930]) -> [TIMEOUT][60] ([i915#1958]) [59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-snb6/igt@gem_exec_reloc@basic-concurrent16.html [60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-snb2/igt@gem_exec_reloc@basic-concurrent16.html * igt@kms_content_protection@lic: - shard-kbl: [TIMEOUT][61] ([i915#1319] / [i915#1958]) -> [TIMEOUT][62] ([i915#1319]) [61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-kbl7/igt@kms_content_protection@lic.html [62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-kbl6/igt@kms_content_protection@lic.html * igt@kms_cursor_crc@pipe-a-cursor-suspend: - shard-kbl: [INCOMPLETE][63] ([i915#155]) -> [DMESG-WARN][64] ([i915#180]) [63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-kbl4/igt@kms_cursor_crc@pipe-a-cursor-suspend.html [64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-kbl2/igt@kms_cursor_crc@pipe-a-cursor-suspend.html * igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-pri-indfb-draw-mmap-gtt: - shard-hsw: [TIMEOUT][65] ([i915#1958]) -> [SKIP][66] ([fdo#109271]) +3 similar issues [65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-hsw6/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-pri-indfb-draw-mmap-gtt.html [66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-hsw1/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-pri-indfb-draw-mmap-gtt.html * igt@kms_psr@primary_render: - shard-hsw: [SKIP][67] ([fdo#109271]) -> [TIMEOUT][68] ([i915#1958]) [67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8862/shard-hsw1/igt@kms_psr@primary_render.html [68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/shard-hsw8/igt@kms_psr@primary_render.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271 [fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441 [i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118 [i915#1319]: https://gitlab.freedesktop.org/drm/intel/issues/1319 [i915#1542]: https://gitlab.freedesktop.org/drm/intel/issues/1542 [i915#155]: https://gitlab.freedesktop.org/drm/intel/issues/155 [i915#1635]: https://gitlab.freedesktop.org/drm/intel/issues/1635 [i915#173]: https://gitlab.freedesktop.org/drm/intel/issues/173 [i915#1755]: https://gitlab.freedesktop.org/drm/intel/issues/1755 [i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180 [i915#1930]: https://gitlab.freedesktop.org/drm/intel/issues/1930 [i915#1958]: https://gitlab.freedesktop.org/drm/intel/issues/1958 [i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982 [i915#2258]: https://gitlab.freedesktop.org/drm/intel/issues/2258 [i915#2316]: https://gitlab.freedesktop.org/drm/intel/issues/2316 [i915#54]: https://gitlab.freedesktop.org/drm/intel/issues/54 [i915#57]: https://gitlab.freedesktop.org/drm/intel/issues/57 [i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658 [i915#93]: https://gitlab.freedesktop.org/drm/intel/issues/93 [i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95 Participating hosts (11 -> 8) ------------------------------ Missing (3): pig-skl-6260u pig-glk-j5005 pig-icl-1065g7 Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_5765 -> IGTPW_4868 * Piglit: piglit_4509 -> None CI-20190529: 20190529 CI_DRM_8862: 147f0d3f7239756494adef31518f87e60a970878 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_4868: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4868/index.html IGT_5765: 9f0977284d54ed37496260988dfcd6d2ad72dd1e @ 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_4868/index.html [-- Attachment #1.2: Type: text/html, Size: 18380 bytes --] [-- Attachment #2: Type: text/plain, Size: 154 bytes --] _______________________________________________ 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] tests/i915: Remove subtests that rely on async relocation behavior 2020-08-10 9:00 [igt-dev] [PATCH i-g-t] tests/i915: Remove subtests that rely on async relocation behavior Maarten Lankhorst 2020-08-10 9:56 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork 2020-08-10 12:42 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork @ 2020-08-10 19:07 ` David Airlie 2 siblings, 0 replies; 4+ messages in thread From: David Airlie @ 2020-08-10 19:07 UTC (permalink / raw) To: Maarten Lankhorst; +Cc: igt-dev On Mon, Aug 10, 2020 at 7:07 PM Maarten Lankhorst <maarten.lankhorst@linux.intel.com> wrote: > > These tests are no longer valid, as they require behavior that > was never accepted upstream; it assumes that relocations don't > block synchronously, and the reservation_object lock is only > held at the end of command submission to install the fences. > > Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> > Cc: Dave Airlie <airlied@redhat.com> Acked-by: Dave Airlie <airlied@redhat.com> > --- > tests/i915/gem_exec_reloc.c | 219 ------------------------------------ > 1 file changed, 219 deletions(-) > > diff --git a/tests/i915/gem_exec_reloc.c b/tests/i915/gem_exec_reloc.c > index d50a8b69487f..85df3da7e011 100644 > --- a/tests/i915/gem_exec_reloc.c > +++ b/tests/i915/gem_exec_reloc.c > @@ -424,76 +424,6 @@ static void many_active(int i915, unsigned engine) > } > } > > -static void __wide_active(int i915, unsigned engine, unsigned long count) > -{ > - struct drm_i915_gem_relocation_entry *reloc = > - calloc(count, sizeof(*reloc)); > - struct drm_i915_gem_exec_object2 *obj = > - calloc(count + 1, sizeof(*obj)); > - struct drm_i915_gem_execbuffer2 execbuf = { > - .buffers_ptr = to_user_pointer(obj), > - .buffer_count = count + 1, > - .flags = engine | I915_EXEC_HANDLE_LUT, > - }; > - igt_spin_t *spin; > - > - for (unsigned long i = 0; i < count; i++) { > - obj[i].handle = gem_create(i915, 4096); > - obj[i].flags = EXEC_OBJECT_WRITE; > - obj[i].flags |= EXEC_OBJECT_SUPPORTS_48B_ADDRESS; > - } > - > - spin = __igt_spin_new(i915, > - .engine = engine, > - .flags = (IGT_SPIN_FENCE_OUT | > - IGT_SPIN_NO_PREEMPTION)); > - obj[count] = spin->obj[1]; > - gem_execbuf(i915, &execbuf); /* mark all the objects as active */ > - > - for (unsigned long i = 0; i < count; i++) { > - reloc[i].target_handle = i; > - reloc[i].presumed_offset = ~0ull; > - obj[i].relocs_ptr = to_user_pointer(&reloc[i]); > - obj[i].relocation_count = 1; > - } > - gem_execbuf(i915, &execbuf); /* relocation onto active objects */ > - > - igt_assert_eq(sync_fence_status(spin->out_fence), 0); > - igt_spin_free(i915, spin); > - > - for (unsigned long i = 0; i < count; i++) { > - uint64_t addr; > - > - gem_read(i915, obj[i].handle, 0, &addr, sizeof(addr)); > - igt_assert_eq_u64(addr, obj[i].offset); > - > - gem_close(i915, obj[i].handle); > - } > - free(obj); > - free(reloc); > -} > - > -static void wide_active(int i915, unsigned engine) > -{ > - const uint64_t max = gem_aperture_size(i915) / 4096 / 2; > - unsigned long count = 256; > - > - igt_until_timeout(2) { > - uint64_t required, total; > - > - if (!__intel_check_memory(count, 4096, CHECK_RAM, > - &required, &total)) > - break; > - > - igt_debug("Testing count:%lu\n", count); > - __wide_active(i915, engine, count); > - > - count <<= 1; > - if (count >= max) > - break; > - } > -} > - > static unsigned int offset_in_page(void *addr) > { > return (uintptr_t)addr & 4095; > @@ -937,145 +867,6 @@ static void basic_softpin(int fd) > gem_close(fd, obj[1].handle); > } > > -static struct drm_i915_gem_relocation_entry * > -parallel_relocs(int count, unsigned long *out) > -{ > - struct drm_i915_gem_relocation_entry *reloc; > - unsigned long sz; > - int i; > - > - sz = count * sizeof(*reloc); > - sz = ALIGN(sz, 4096); > - > - reloc = mmap(0, sz, PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); > - igt_assert(reloc != MAP_FAILED); > - for (i = 0; i < count; i++) { > - reloc[i].target_handle = 0; > - reloc[i].presumed_offset = ~0ull; > - reloc[i].offset = 8 * i; > - reloc[i].delta = i; > - reloc[i].read_domains = I915_GEM_DOMAIN_INSTRUCTION; > - reloc[i].write_domain = 0; > - } > - mprotect(reloc, sz, PROT_READ); > - > - *out = sz; > - return reloc; > -} > - > -static int __execbuf(int i915, struct drm_i915_gem_execbuffer2 *execbuf) > -{ > - int err; > - > - err = 0; > - if (ioctl(i915, DRM_IOCTL_I915_GEM_EXECBUFFER2, execbuf)) { > - err = -errno; > - igt_assume(err); > - } > - > - errno = 0; > - return err; > -} > - > -static int stop; > -static void sighandler(int sig) > -{ > - stop = 1; > -} > - > -static void parallel_child(int i915, > - const struct intel_execution_engine2 *engine, > - struct drm_i915_gem_relocation_entry *reloc, > - uint32_t common) > -{ > - igt_spin_t *spin = __igt_spin_new(i915, .engine = engine->flags); > - struct drm_i915_gem_exec_object2 reloc_target = { > - .handle = gem_create(i915, 32 * 1024 * 8), > - .relocation_count = 32 * 1024, > - .relocs_ptr = to_user_pointer(reloc), > - }; > - struct drm_i915_gem_exec_object2 obj[3] = { > - reloc_target, > - { .handle = common }, > - spin->obj[1], > - }; > - struct drm_i915_gem_execbuffer2 execbuf = { > - .buffers_ptr = to_user_pointer(obj), > - .buffer_count = ARRAY_SIZE(obj), > - .flags = engine->flags | I915_EXEC_HANDLE_LUT, > - }; > - struct sigaction act = { > - .sa_handler = sighandler, > - }; > - unsigned long count = 0; > - > - sigaction(SIGINT, &act, NULL); > - while (!READ_ONCE(stop)) { > - int err = __execbuf(i915, &execbuf); > - if (err == -EINTR) > - break; > - > - igt_assert_eq(err, 0); > - count++; > - } > - > - igt_info("%s: count %lu\n", engine->name, count); > - igt_spin_free(i915, spin); > -} > - > -static void kill_children(int sig) > -{ > - signal(sig, SIG_IGN); > - kill(-getpgrp(), SIGINT); > - signal(sig, SIG_DFL); > -} > - > -static void parallel(int i915) > -{ > - const struct intel_execution_engine2 *e; > - struct drm_i915_gem_relocation_entry *reloc; > - uint32_t common = gem_create(i915, 4096); > - uint32_t batch = batch_create(i915); > - unsigned long reloc_sz; > - > - reloc = parallel_relocs(32 * 1024, &reloc_sz); > - > - stop = 0; > - __for_each_physical_engine(i915, e) { > - igt_fork(child, 1) > - parallel_child(i915, e, reloc, common); > - } > - sleep(2); > - > - if (gem_scheduler_has_preemption(i915)) { > - uint32_t ctx = gem_context_clone_with_engines(i915, 0); > - > - __for_each_physical_engine(i915, e) { > - struct drm_i915_gem_exec_object2 obj[2] = { > - { .handle = common }, > - { .handle = batch }, > - }; > - struct drm_i915_gem_execbuffer2 execbuf = { > - .buffers_ptr = to_user_pointer(obj), > - .buffer_count = ARRAY_SIZE(obj), > - .flags = e->flags, > - .rsvd1 = ctx, > - }; > - gem_execbuf(i915, &execbuf); > - } > - > - gem_context_destroy(i915, ctx); > - } > - gem_sync(i915, batch); > - gem_close(i915, batch); > - > - kill_children(SIGINT); > - igt_waitchildren(); > - > - gem_close(i915, common); > - munmap(reloc, reloc_sz); > -} > - > #define CONCURRENT 1024 > > static uint64_t concurrent_relocs(int i915, int idx, int count) > @@ -1487,16 +1278,6 @@ igt_main > } > } > > - igt_subtest_with_dynamic("basic-wide-active") { > - __for_each_physical_engine(fd, e) { > - igt_dynamic_f("%s", e->name) > - wide_active(fd, e->flags); > - } > - } > - > - igt_subtest("basic-parallel") > - parallel(fd); > - > igt_subtest("basic-concurrent0") > concurrent(fd, 0); > igt_subtest("basic-concurrent16") > -- > 2.28.0 > _______________________________________________ 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:[~2020-08-10 19:07 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-08-10 9:00 [igt-dev] [PATCH i-g-t] tests/i915: Remove subtests that rely on async relocation behavior Maarten Lankhorst 2020-08-10 9:56 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork 2020-08-10 12:42 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork 2020-08-10 19:07 ` [igt-dev] [PATCH i-g-t] " David Airlie
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox