* [igt-dev] [PATCH i-g-t] tests/xe/debugfs: fix xe_device_get() placement
@ 2023-03-22 10:22 Matthew Auld
2023-03-22 11:01 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
0 siblings, 1 reply; 2+ messages in thread
From: Matthew Auld @ 2023-03-22 10:22 UTC (permalink / raw)
To: igt-dev
Accidentally broke this when moving the xe_device_get(), missing that
for_each_gt() also relies on the cached query state:
Starting subtest: gt
(xe_debugfs:6941) xe/xe_query-CRITICAL: Test assertion failure function
xe_number_gt, file ../lib/xe/xe_query.c:327:
(xe_debugfs:6941) xe/xe_query-CRITICAL: Failed assertion: xe_dev
Stack trace:
#0 ../lib/igt_core.c:1963 __igt_fail_assert()
#1 ../lib/xe/xe_query.c:327 xe_number_gt()
#2 ../tests/xe/xe_debugfs.c:262 __igt_unique____real_main245()
#3 ../tests/xe/xe_debugfs.c:245 main()
#4 ../sysdeps/nptl/libc_start_call_main.h:58 __libc_start_call_main()
#5 ../csu/libc-start.c:128 __libc_start_main@@GLIBC_2.34()
#6 [_start+0x25]
Subtest gt failed.
Fixes: c01d2733 ("tests/xe/debugfs: fix double-free in test_base")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
---
tests/xe/xe_debugfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/xe/xe_debugfs.c b/tests/xe/xe_debugfs.c
index ad6191fb..f2480845 100644
--- a/tests/xe/xe_debugfs.c
+++ b/tests/xe/xe_debugfs.c
@@ -145,8 +145,6 @@ test_base(int fd)
igt_debugfs_dump(fd, "gem_names");
validate_entries(fd, "", expected_files, ARRAY_SIZE(expected_files));
-
- xe_device_put(fd);
}
/**
@@ -250,6 +248,7 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
igt_fixture {
fd = drm_open_driver(DRIVER_XE);
+ xe_device_get(fd);
__igt_debugfs_dump(fd, "info", IGT_LOG_INFO);
}
@@ -271,6 +270,7 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
}
igt_fixture {
+ xe_device_put(fd);
close(fd);
}
}
--
2.39.2
^ permalink raw reply related [flat|nested] 2+ messages in thread* [igt-dev] ✗ Fi.CI.BAT: failure for tests/xe/debugfs: fix xe_device_get() placement 2023-03-22 10:22 [igt-dev] [PATCH i-g-t] tests/xe/debugfs: fix xe_device_get() placement Matthew Auld @ 2023-03-22 11:01 ` Patchwork 0 siblings, 0 replies; 2+ messages in thread From: Patchwork @ 2023-03-22 11:01 UTC (permalink / raw) To: Matthew Auld; +Cc: igt-dev [-- Attachment #1: Type: text/plain, Size: 12805 bytes --] == Series Details == Series: tests/xe/debugfs: fix xe_device_get() placement URL : https://patchwork.freedesktop.org/series/115505/ State : failure == Summary == CI Bug Log - changes from IGT_7211 -> IGTPW_8660 ==================================================== Summary ------- **FAILURE** Serious unknown changes coming with IGTPW_8660 absolutely need to be verified manually. If you think the reported changes have nothing to do with the changes introduced in IGTPW_8660, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/index.html Participating hosts (34 -> 35) ------------------------------ Additional (2): bat-rpls-2 bat-dg1-5 Missing (1): fi-snb-2520m Possible new issues ------------------- Here are the unknown changes that may have been introduced in IGTPW_8660: ### IGT changes ### #### Possible regressions #### * igt@gem_exec_suspend@basic-s0@smem: - bat-rpls-2: NOTRUN -> [ABORT][1] [1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-2/igt@gem_exec_suspend@basic-s0@smem.html Known issues ------------ Here are the changes found in IGTPW_8660 that come from known issues: ### IGT changes ### #### Issues hit #### * igt@debugfs_test@basic-hwmon: - bat-rpls-2: NOTRUN -> [SKIP][2] ([i915#7456]) [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-2/igt@debugfs_test@basic-hwmon.html * igt@fbdev@read: - bat-rpls-2: NOTRUN -> [SKIP][3] ([i915#2582]) +4 similar issues [3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-2/igt@fbdev@read.html * igt@gem_lmem_swapping@verify-random: - bat-rpls-2: NOTRUN -> [SKIP][4] ([i915#4613]) +3 similar issues [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-2/igt@gem_lmem_swapping@verify-random.html * igt@gem_mmap@basic: - bat-dg1-5: NOTRUN -> [SKIP][5] ([i915#4083]) [5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-dg1-5/igt@gem_mmap@basic.html * igt@gem_tiled_fence_blits@basic: - bat-dg1-5: NOTRUN -> [SKIP][6] ([i915#4077]) +2 similar issues [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-dg1-5/igt@gem_tiled_fence_blits@basic.html * igt@gem_tiled_pread_basic: - bat-dg1-5: NOTRUN -> [SKIP][7] ([i915#4079]) +1 similar issue [7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-dg1-5/igt@gem_tiled_pread_basic.html - bat-rpls-2: NOTRUN -> [SKIP][8] ([i915#3282]) [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-2/igt@gem_tiled_pread_basic.html * igt@i915_pm_backlight@basic-brightness: - bat-rpls-2: NOTRUN -> [SKIP][9] ([i915#7561]) [9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-2/igt@i915_pm_backlight@basic-brightness.html - bat-dg1-5: NOTRUN -> [SKIP][10] ([i915#7561]) [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-dg1-5/igt@i915_pm_backlight@basic-brightness.html * igt@i915_selftest@live@gt_pm: - bat-rpls-2: NOTRUN -> [DMESG-FAIL][11] ([i915#4258]) [11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-2/igt@i915_selftest@live@gt_pm.html * igt@i915_selftest@live@migrate: - bat-atsm-1: [PASS][12] -> [DMESG-FAIL][13] ([i915#7699]) [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7211/bat-atsm-1/igt@i915_selftest@live@migrate.html [13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-atsm-1/igt@i915_selftest@live@migrate.html * igt@i915_selftest@live@mman: - bat-rpls-1: [PASS][14] -> [TIMEOUT][15] ([i915#6794]) [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7211/bat-rpls-1/igt@i915_selftest@live@mman.html [15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-1/igt@i915_selftest@live@mman.html * igt@i915_selftest@live@slpc: - bat-rpls-2: NOTRUN -> [DMESG-FAIL][16] ([i915#6367] / [i915#7913] / [i915#7996]) [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-2/igt@i915_selftest@live@slpc.html * igt@kms_addfb_basic@basic-x-tiled-legacy: - bat-dg1-5: NOTRUN -> [SKIP][17] ([i915#4212]) +7 similar issues [17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-dg1-5/igt@kms_addfb_basic@basic-x-tiled-legacy.html * igt@kms_addfb_basic@basic-y-tiled-legacy: - bat-dg1-5: NOTRUN -> [SKIP][18] ([i915#4215]) [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-dg1-5/igt@kms_addfb_basic@basic-y-tiled-legacy.html * igt@kms_busy@basic: - bat-rpls-2: NOTRUN -> [SKIP][19] ([i915#1845]) +14 similar issues [19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-2/igt@kms_busy@basic.html * igt@kms_chamelium_edid@hdmi-edid-read: - bat-rpls-2: NOTRUN -> [SKIP][20] ([i915#7828]) +7 similar issues [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-2/igt@kms_chamelium_edid@hdmi-edid-read.html * igt@kms_chamelium_hpd@common-hpd-after-suspend: - bat-adln-1: NOTRUN -> [SKIP][21] ([i915#7828]) [21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-adln-1/igt@kms_chamelium_hpd@common-hpd-after-suspend.html - bat-rpls-1: NOTRUN -> [SKIP][22] ([i915#7828]) [22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-1/igt@kms_chamelium_hpd@common-hpd-after-suspend.html * igt@kms_chamelium_hpd@vga-hpd-fast: - bat-dg1-5: NOTRUN -> [SKIP][23] ([i915#7828]) +8 similar issues [23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-dg1-5/igt@kms_chamelium_hpd@vga-hpd-fast.html * igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy: - bat-dg1-5: NOTRUN -> [SKIP][24] ([i915#4103] / [i915#4213]) +1 similar issue [24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-dg1-5/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy.html * igt@kms_flip@basic-flip-vs-dpms: - bat-rpls-2: NOTRUN -> [SKIP][25] ([i915#3637]) +3 similar issues [25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-2/igt@kms_flip@basic-flip-vs-dpms.html * igt@kms_force_connector_basic@force-load-detect: - bat-rpls-2: NOTRUN -> [SKIP][26] ([fdo#109285]) [26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-2/igt@kms_force_connector_basic@force-load-detect.html - bat-dg1-5: NOTRUN -> [SKIP][27] ([fdo#109285]) [27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-dg1-5/igt@kms_force_connector_basic@force-load-detect.html * igt@kms_frontbuffer_tracking@basic: - bat-rpls-2: NOTRUN -> [SKIP][28] ([i915#1849]) [28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-2/igt@kms_frontbuffer_tracking@basic.html * igt@kms_pipe_crc_basic@suspend-read-crc: - bat-rpls-1: NOTRUN -> [SKIP][29] ([i915#1845]) [29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-1/igt@kms_pipe_crc_basic@suspend-read-crc.html * igt@kms_psr@sprite_plane_onoff: - bat-rpls-2: NOTRUN -> [SKIP][30] ([i915#1072]) +3 similar issues [30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-2/igt@kms_psr@sprite_plane_onoff.html - bat-dg1-5: NOTRUN -> [SKIP][31] ([i915#1072] / [i915#4078]) +3 similar issues [31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-dg1-5/igt@kms_psr@sprite_plane_onoff.html * igt@kms_setmode@basic-clone-single-crtc: - bat-dg1-5: NOTRUN -> [SKIP][32] ([i915#3555] / [i915#4579]) [32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-dg1-5/igt@kms_setmode@basic-clone-single-crtc.html - bat-rpls-2: NOTRUN -> [SKIP][33] ([i915#3555]) [33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-2/igt@kms_setmode@basic-clone-single-crtc.html * igt@prime_vgem@basic-fence-flip: - bat-rpls-2: NOTRUN -> [SKIP][34] ([fdo#109295] / [i915#1845] / [i915#3708]) [34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-2/igt@prime_vgem@basic-fence-flip.html * igt@prime_vgem@basic-fence-read: - bat-rpls-2: NOTRUN -> [SKIP][35] ([fdo#109295] / [i915#3708]) +3 similar issues [35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-2/igt@prime_vgem@basic-fence-read.html - bat-dg1-5: NOTRUN -> [SKIP][36] ([i915#3708]) +3 similar issues [36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-dg1-5/igt@prime_vgem@basic-fence-read.html * igt@prime_vgem@basic-gtt: - bat-dg1-5: NOTRUN -> [SKIP][37] ([i915#3708] / [i915#4077]) +1 similar issue [37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-dg1-5/igt@prime_vgem@basic-gtt.html * igt@prime_vgem@basic-userptr: - bat-dg1-5: NOTRUN -> [SKIP][38] ([i915#3708] / [i915#4873]) [38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-dg1-5/igt@prime_vgem@basic-userptr.html #### Possible fixes #### * igt@i915_selftest@live@slpc: - bat-dg2-11: [DMESG-WARN][39] ([i915#7996]) -> [PASS][40] [39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7211/bat-dg2-11/igt@i915_selftest@live@slpc.html [40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-dg2-11/igt@i915_selftest@live@slpc.html * igt@i915_selftest@live@workarounds: - bat-rpls-1: [DMESG-FAIL][41] ([i915#6763]) -> [PASS][42] [41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7211/bat-rpls-1/igt@i915_selftest@live@workarounds.html [42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-rpls-1/igt@i915_selftest@live@workarounds.html * igt@i915_suspend@basic-s3-without-i915: - bat-adln-1: [INCOMPLETE][43] ([i915#7443]) -> [PASS][44] [43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7211/bat-adln-1/igt@i915_suspend@basic-s3-without-i915.html [44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/bat-adln-1/igt@i915_suspend@basic-s3-without-i915.html [fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285 [fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295 [i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072 [i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845 [i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849 [i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582 [i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282 [i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555 [i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637 [i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708 [i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077 [i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078 [i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079 [i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083 [i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103 [i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212 [i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213 [i915#4215]: https://gitlab.freedesktop.org/drm/intel/issues/4215 [i915#4258]: https://gitlab.freedesktop.org/drm/intel/issues/4258 [i915#4579]: https://gitlab.freedesktop.org/drm/intel/issues/4579 [i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613 [i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873 [i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367 [i915#6763]: https://gitlab.freedesktop.org/drm/intel/issues/6763 [i915#6794]: https://gitlab.freedesktop.org/drm/intel/issues/6794 [i915#7443]: https://gitlab.freedesktop.org/drm/intel/issues/7443 [i915#7456]: https://gitlab.freedesktop.org/drm/intel/issues/7456 [i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561 [i915#7699]: https://gitlab.freedesktop.org/drm/intel/issues/7699 [i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828 [i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913 [i915#7996]: https://gitlab.freedesktop.org/drm/intel/issues/7996 Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_7211 -> IGTPW_8660 CI-20190529: 20190529 CI_DRM_12893: f8980398783b2abaa6479829786e9ffb9c4b7490 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_8660: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/index.html IGT_7211: c0cc1de7b2f4041ca68960362aa55f881d416bac @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8660/index.html [-- Attachment #2: Type: text/html, Size: 15434 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-22 11:01 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-03-22 10:22 [igt-dev] [PATCH i-g-t] tests/xe/debugfs: fix xe_device_get() placement Matthew Auld 2023-03-22 11:01 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox