tests/i915/gem_ringfill:Added __for_each_physical_engine to utilize all available engines.
PATCH v2 1/1 tests/i915/gem_ringfill:Added __for_each_physical_engine to utilize all available engines.
Replaced the legacy for_each_engine* defines with the ones implemented in the gem_engine_topology library.
subtest that is modified: Ringfill
V2
Added "Test" name in dynamic subtest to avoid
"-" during subtest list.
corrected DRM open call .
--- tests/i915/gem_ringfill.c | 44 +++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 23 deletions(-)
tests/i915/gem_ringfill.c +21 -23
@@ -96,7 +96,7 @@ static int setup_execbuf(int fd,struct drm_i915_gem_execbuffer2 *execbuf, struct drm_i915_gem_exec_object2 *obj, struct drm_i915_gem_relocation_entry *reloc, - unsigned int ring) + const struct intel_execution_engine2 *e) { const int gen = intel_gen(intel_get_drm_devid(fd));const uint32_t bbe =MI_BATCH_BUFFER_END ;
@@ -109,7 +109,7 @@ static int setup_execbuf(int fd,memset (reloc,0 ,1024 *sizeof (*reloc)); execbuf->buffers_ptr =to_user_pointer (obj); - execbuf->flags = ring | (1 <<11 ) | (1 <<12 ); + execbuf->flags = e->flags | (1 <<11 ) | (1 <<12 );if (gen >3 && gen <6 ) execbuf->flags |=I915_EXEC_SECURE ;
@@ -170,25 +170,25 @@ static int setup_execbuf(int fd,return 0 ; } -static void run_test (int fd,unsigned ring,unsigned flags,unsigned timeout) +static void run_test (int fd,const struct intel_execution_engine2 *e,unsigned flags,unsigned timeout) { +int i915;struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_relocation_entry reloc[1024 ];struct drm_i915_gem_execbuffer2 execbuf;igt_hang_t hang; -gem_require_ring (fd, ring); -igt_require (gem_can_store_dword (fd, ring)); +igt_require (gem_class_can_store_dword (fd, e->class));if (flags & (SUSPEND |HIBERNATE )) -run_test (fd, ring,0 ,0 ); +run_test (fd, e,0 ,0 );gem_quiescent_gpu (fd); -igt_require (setup_execbuf (fd, &execbuf, obj, reloc, ring) ==0 ); +igt_require (setup_execbuf (fd, &execbuf, obj, reloc, e) ==0 );memset (&hang,0 ,sizeof (hang));if (flags &HANG ) - hang =igt_hang_ring (fd, ring & ~(3 <<13 )); + hang =igt_hang_ring (fd, e->flags & ~(3 <<13 ));if (flags & (CHILD |FORKED |BOMB )) {int nchild;
@@ -203,8 +203,9 @@ static void run_test(int fd, unsigned ring, unsigned flags, unsigned timeout)igt_debug ("Forking %d children\n" , nchild); igt_fork(child, nchild) {if (flags &NEWFD ) { - fd =drm_open_driver (DRIVER_INTEL ); -setup_execbuf (fd, &execbuf, obj, reloc, ring); + i915 =drm_open_driver (DRIVER_INTEL ); +gem_context_copy_engines (fd,0 , i915,0 ); +setup_execbuf (fd, &execbuf, obj, reloc, e); }fill_ring (fd, &execbuf, flags, timeout); }
@@ -235,11 +236,12 @@ static void run_test(int fd, unsigned ring, unsigned flags, unsigned timeout)gem_quiescent_gpu (fd);if (flags & (SUSPEND |HIBERNATE )) -run_test (fd, ring,0 ,0 ); +run_test (fd, e,0 ,0 ); } igt_main { +const struct intel_execution_engine2 *e; const struct { const char *suffix; unsigned flags;
@@ -265,7 +267,7 @@ igt_main fd =drm_open_driver (DRIVER_INTEL );igt_require_gem (fd); -igt_require (gem_can_store_dword (fd,0 )); +igt_require (gem_class_can_store_dword (fd,0 )); gen =intel_gen (intel_get_drm_devid (fd));if (gen >3 && gen <6 ) {/* ctg and ilk need secure batches */ igt_device_set_master (fd);
@@ -276,21 +278,17 @@ igt_mainigt_info ("Ring size: %d batches\n" , ring_size);igt_require (ring_size); } -for (m = modes; m->suffix; m++) { -const struct intel_execution_engine *e; - -for (e = intel_execution_engines; e->name; e++) { -igt_subtest_f ("%s%s%s" , - m->basic && !e->exec_id ?"basic-" :"" , - e->name, - m->suffix) { -igt_skip_on (m->flags &NEWFD && master); -run_test (fd,eb_ring (e), m->flags, m->timeout); + +igt_skip_on (m->flags &NEWFD && master); + igt_subtest_with_dynamic_f("Test-%s%s", m->basic ? "basic" : "", m->suffix) { +__for_each_physical_engine (fd, e) { + igt_dynamic_f("%s", e->name) { +run_test (fd, e, m->flags, m->timeout); + } } } } -igt_fixture close (fd ); }
Signature · 6 lines
2.25.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ GitLab.Pipeline: failure for tests/i915/gem_ringfill:Added __for_each_physical_engine to utilize all available engines. (rev2)
== Series Details ==
== Series Details ==
Series: tests/i915/gem_ringfill:Added __for_each_physical_engine to utilize all available engines. (rev2)
URL : https://patchwork.freedesktop.org/series/73463/
State : failure
== Summary ==
ERROR! This series introduces new undocumented tests:
gem_ringfill@Test--S3
gem_ringfill@Test--S4
gem_ringfill@Test--bomb
gem_ringfill@Test--child
gem_ringfill@Test-basic
gem_ringfill@Test-basic-fd
gem_ringfill@Test-basic-forked
gem_ringfill@Test-basic-hang
gem_ringfill@Test-basic-interruptible
Can you document them as per the requirement in the [CONTRIBUTING.md]?
[Documentation] has more details on how to do this.
Here are few examples:
https://gitlab.freedesktop.org/drm/igt-gpu-tools/commit/0316695d03aa46108296b27f3982ec93200c7a6e
https://gitlab.freedesktop.org/drm/igt-gpu-tools/commit/443cc658e1e6b492ee17bf4f4d891029eb7a205d
Thanks in advance!
[CONTRIBUTING.md]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/blob/master/CONTRIBUTING.md#L19
[Documentation]: https://drm.pages.freedesktop.org/igt-gpu-tools/igt-gpu-tools-Core.html#igt-describe
Other than that, pipeline status: SUCCESS.
see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/108727 for the overview.
== Logs ==
For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/108727
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ Fi.CI.BAT: failure for tests/i915/gem_ringfill:Added __for_each_physical_engine to utilize all available engines. (rev2)
In reply to satyavat== Series Details ==
== Series Details ==
Series: tests/i915/gem_ringfill:Added __for_each_physical_engine to utilize all available engines. (rev2)
URL : https://patchwork.freedesktop.org/series/73463/
State : failure
== Summary ==
CI Bug Log - changes from IGT_5442 -> IGTPW_4154
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_4154 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_4154, 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_4154/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_4154:
### IGT changes ###
#### Possible regressions ####
* igt@gem_ringfill@basic-default-forked:
- fi-icl-y: [PASS][1] -> [SKIP][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-icl-y/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-icl-y/igt@[email protected]
- fi-icl-dsi: [PASS][3] -> [SKIP][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-icl-dsi/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-icl-dsi/igt@[email protected]
- fi-icl-u3: [PASS][5] -> [SKIP][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-icl-u3/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-icl-u3/igt@[email protected]
- fi-icl-u2: [PASS][7] -> [SKIP][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-icl-u2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-icl-u2/igt@[email protected]
- fi-cml-u2: [PASS][9] -> [SKIP][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-cml-u2/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-cml-u2/igt@[email protected]
- fi-ilk-650: [PASS][11] -> [FAIL][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-ilk-650/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-ilk-650/igt@[email protected]
- fi-icl-guc: [PASS][13] -> [SKIP][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-icl-guc/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-icl-guc/igt@[email protected]
- fi-cml-s: [PASS][15] -> [SKIP][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-cml-s/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-cml-s/igt@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@gem_ringfill@basic-default-forked:
- {fi-tgl-u}: [PASS][17] -> [SKIP][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-tgl-u/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-tgl-u/igt@[email protected]
- {fi-tgl-dsi}: [PASS][19] -> [SKIP][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-tgl-dsi/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-tgl-dsi/igt@[email protected]
Known issues
------------
Here are the changes found in IGTPW_4154 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ringfill@basic-default-forked:
- fi-kbl-x1275: [PASS][21] -> [SKIP][22] ([fdo#109271])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-kbl-x1275/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-kbl-x1275/igt@[email protected]
- fi-kbl-7500u: [PASS][23] -> [SKIP][24] ([fdo#109271])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-kbl-7500u/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-kbl-7500u/igt@[email protected]
- fi-hsw-4770r: [PASS][25] -> [SKIP][26] ([fdo#109271])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-hsw-4770r/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-hsw-4770r/igt@[email protected]
- fi-skl-guc: [PASS][27] -> [SKIP][28] ([fdo#109271])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-skl-guc/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-skl-guc/igt@[email protected]
- fi-kbl-8809g: [PASS][29] -> [SKIP][30] ([fdo#109271])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-kbl-8809g/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-kbl-8809g/igt@[email protected]
- fi-blb-e6850: [PASS][31] -> [SKIP][32] ([fdo#109271])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-blb-e6850/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-blb-e6850/igt@[email protected]
- fi-bdw-5557u: [PASS][33] -> [SKIP][34] ([fdo#109271])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-bdw-5557u/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-bdw-5557u/igt@[email protected]
- fi-apl-guc: [PASS][35] -> [SKIP][36] ([fdo#109271])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-apl-guc/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-apl-guc/igt@[email protected]
- fi-cfl-8700k: [PASS][37] -> [SKIP][38] ([fdo#109271])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-cfl-8700k/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-cfl-8700k/igt@[email protected]
- fi-skl-6600u: [PASS][39] -> [SKIP][40] ([fdo#109271])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-skl-6600u/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-skl-6600u/igt@[email protected]
- fi-pnv-d510: [PASS][41] -> [SKIP][42] ([fdo#109271])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-pnv-d510/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-pnv-d510/igt@[email protected]
- fi-cfl-guc: [PASS][43] -> [SKIP][44] ([fdo#109271])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-cfl-guc/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-cfl-guc/igt@[email protected]
- fi-skl-6700k2: [PASS][45] -> [SKIP][46] ([fdo#109271])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-skl-6700k2/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-skl-6700k2/igt@[email protected]
- fi-skl-lmem: [PASS][47] -> [SKIP][48] ([fdo#109271])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-skl-lmem/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-skl-lmem/igt@[email protected]
- fi-snb-2600: [PASS][49] -> [SKIP][50] ([fdo#109271])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-snb-2600/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-snb-2600/igt@[email protected]
- fi-kbl-guc: [PASS][51] -> [SKIP][52] ([fdo#109271])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-kbl-guc/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-kbl-guc/igt@[email protected]
- fi-bsw-kefka: [PASS][53] -> [SKIP][54] ([fdo#109271])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-bsw-kefka/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-bsw-kefka/igt@[email protected]
- fi-kbl-r: [PASS][55] -> [SKIP][56] ([fdo#109271])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-kbl-r/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-kbl-r/igt@[email protected]
- fi-bsw-nick: [PASS][57] -> [SKIP][58] ([fdo#109271])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-bsw-nick/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-bsw-nick/igt@[email protected]
- fi-cfl-8109u: [PASS][59] -> [SKIP][60] ([fdo#109271])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-cfl-8109u/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-cfl-8109u/igt@[email protected]
- fi-snb-2520m: [PASS][61] -> [SKIP][62] ([fdo#109271])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-snb-2520m/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-snb-2520m/igt@[email protected]
- fi-bxt-dsi: [PASS][63] -> [SKIP][64] ([fdo#109271])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-bxt-dsi/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-bxt-dsi/igt@[email protected]
- fi-bsw-n3050: [PASS][65] -> [SKIP][66] ([fdo#109271])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-bsw-n3050/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-bsw-n3050/igt@[email protected]
- fi-hsw-4770: [PASS][67] -> [SKIP][68] ([fdo#109271])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-hsw-4770/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-hsw-4770/igt@[email protected]
- fi-glk-dsi: [PASS][69] -> [SKIP][70] ([fdo#109271])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-glk-dsi/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-glk-dsi/igt@[email protected]
- fi-ivb-3770: [PASS][71] -> [SKIP][72] ([fdo#109271])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-ivb-3770/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-ivb-3770/igt@[email protected]
* igt@i915_selftest@live_gtt:
- fi-cfl-guc: [PASS][73] -> [TIMEOUT][74] ([fdo#112271])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-cfl-guc/igt@i915_selftest@live_gtt.html
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-cfl-guc/igt@i915_selftest@live_gtt.html
#### Possible fixes ####
* igt@i915_selftest@live_gtt:
- fi-skl-6600u: [TIMEOUT][75] ([fdo#111732] / [fdo#112271]) -> [PASS][76]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-skl-6600u/igt@i915_selftest@live_gtt.html
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-skl-6600u/igt@i915_selftest@live_gtt.html
* igt@kms_flip@basic-flip-vs-wf_vblank:
- fi-bsw-n3050: [FAIL][77] ([i915#34]) -> [PASS][78]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5442/fi-bsw-n3050/igt@kms_flip@basic-flip-vs-wf_vblank.html
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/fi-bsw-n3050/igt@kms_flip@basic-flip-vs-wf_vblank.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#111732]: https://bugs.freedesktop.org/show_bug.cgi?id=111732
[fdo#112126]: https://bugs.freedesktop.org/show_bug.cgi?id=112126
[fdo#112271]: https://bugs.freedesktop.org/show_bug.cgi?id=112271
[i915#34]: https://gitlab.freedesktop.org/drm/intel/issues/34
Participating hosts (52 -> 45)
------------------------------
Missing (7): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5442 -> IGTPW_4154
CI-20190529: 20190529
CI_DRM_7939: cceb0c30a34af6ca96e35211ecdc5ca198d44e7e @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_4154: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/index.html
IGT_5442: 3f6080996885b997685f08ecb8b416b2dc485290 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Testlist changes ==
+igt@gem_ringfill@test-basic
+igt@gem_ringfill@test-basic-fd
+igt@gem_ringfill@test-basic-forked
+igt@gem_ringfill@test-basic-hang
+igt@gem_ringfill@test-basic-interruptible
+igt@gem_ringfill@test--bomb
+igt@gem_ringfill@test--child
+igt@gem_ringfill@test--s3
+igt@gem_ringfill@test--s4
-igt@gem_ringfill@basic-default
-igt@gem_ringfill@basic-default-fd
-igt@gem_ringfill@basic-default-forked
-igt@gem_ringfill@basic-default-hang
-igt@gem_ringfill@basic-default-interruptible
-igt@gem_ringfill@blt
-igt@gem_ringfill@blt-bomb
-igt@gem_ringfill@blt-child
-igt@gem_ringfill@blt-fd
-igt@gem_ringfill@blt-forked
-igt@gem_ringfill@blt-hang
-igt@gem_ringfill@blt-interruptible
-igt@gem_ringfill@blt-s3
-igt@gem_ringfill@blt-s4
-igt@gem_ringfill@bsd
-igt@gem_ringfill@bsd1
-igt@gem_ringfill@bsd1-bomb
-igt@gem_ringfill@bsd1-child
-igt@gem_ringfill@bsd1-fd
-igt@gem_ringfill@bsd1-forked
-igt@gem_ringfill@bsd1-hang
-igt@gem_ringfill@bsd1-interruptible
-igt@gem_ringfill@bsd1-s3
-igt@gem_ringfill@bsd1-s4
-igt@gem_ringfill@bsd2
-igt@gem_ringfill@bsd2-bomb
-igt@gem_ringfill@bsd2-child
-igt@gem_ringfill@bsd2-fd
-igt@gem_ringfill@bsd2-forked
-igt@gem_ringfill@bsd2-hang
-igt@gem_ringfill@bsd2-interruptible
-igt@gem_ringfill@bsd2-s3
-igt@gem_ringfill@bsd2-s4
-igt@gem_ringfill@bsd-bomb
-igt@gem_ringfill@bsd-child
-igt@gem_ringfill@bsd-fd
-igt@gem_ringfill@bsd-forked
-igt@gem_ringfill@bsd-hang
-igt@gem_ringfill@bsd-interruptible
-igt@gem_ringfill@bsd-s3
-igt@gem_ringfill@bsd-s4
-igt@gem_ringfill@default-bomb
-igt@gem_ringfill@default-child
-igt@gem_ringfill@default-s3
-igt@gem_ringfill@default-s4
-igt@gem_ringfill@render
-igt@gem_ringfill@render-bomb
-igt@gem_ringfill@render-child
-igt@gem_ringfill@render-fd
-igt@gem_ringfill@render-forked
-igt@gem_ringfill@render-hang
-igt@gem_ringfill@render-interruptible
-igt@gem_ringfill@render-s3
-igt@gem_ringfill@render-s4
-igt@gem_ringfill@vebox
-igt@gem_ringfill@vebox-bomb
-igt@gem_ringfill@vebox-child
-igt@gem_ringfill@vebox-fd
-igt@gem_ringfill@vebox-forked
-igt@gem_ringfill@vebox-hang
-igt@gem_ringfill@vebox-interruptible
-igt@gem_ringfill@vebox-s3
-igt@gem_ringfill@vebox-s4
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4154/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Quoted 115 lines · satyavat
Replaced the legacy for_each_engine* defines with the ones implemented in the
gem_engine_topologylibrary.subtest that is modified: Ringfill
V2
Added "Test" name in dynamic subtest to avoid
"-" during subtest list.corrected DRM open call .
Cc Dec Katarzyna <[email protected]>Cc Ursulin Tvrtko <[email protected]>Signed-off-by satyavat <[email protected]>--- tests/i915/gem_ringfill.c | 44 +++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 23 deletions(-)tests/i915/gem_ringfill.c +14
-15@@ -96,7 +96,7 @@ static int setup_execbuf(int fd,struct drm_i915_gem_execbuffer2 *execbuf, struct drm_i915_gem_exec_object2 *obj, struct drm_i915_gem_relocation_entry *reloc, - unsigned int ring) + const struct intel_execution_engine2 *e) { const int gen = intel_gen(intel_get_drm_devid(fd));const uint32_t bbe =MI_BATCH_BUFFER_END ;@@ -109,7 +109,7 @@ static int setup_execbuf(int fd,memset (reloc,0 ,1024 *sizeof (*reloc)); execbuf->buffers_ptr =to_user_pointer (obj); - execbuf->flags = ring | (1 <<11 ) | (1 <<12 ); + execbuf->flags = e->flags | (1 <<11 ) | (1 <<12 );if (gen >3 && gen <6 ) execbuf->flags |=I915_EXEC_SECURE ;@@ -170,25 +170,25 @@ static int setup_execbuf(int fd,return 0 ; } -static void run_test (int fd,unsigned ring,unsigned flags,unsigned timeout) +static void run_test (int fd,const struct intel_execution_engine2 *e,unsigned flags,unsigned timeout) { +int i915;struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_relocation_entry reloc[1024 ];struct drm_i915_gem_execbuffer2 execbuf;igt_hang_t hang; -gem_require_ring (fd, ring); -igt_require (gem_can_store_dword (fd, ring)); +igt_require (gem_class_can_store_dword (fd, e->class));if (flags & (SUSPEND |HIBERNATE )) -run_test (fd, ring,0 ,0 ); +run_test (fd, e,0 ,0 );gem_quiescent_gpu (fd); -igt_require (setup_execbuf (fd, &execbuf, obj, reloc, ring) ==0 ); +igt_require (setup_execbuf (fd, &execbuf, obj, reloc, e) ==0 );memset (&hang,0 ,sizeof (hang));if (flags &HANG ) - hang =igt_hang_ring (fd, ring & ~(3 <<13 )); + hang =igt_hang_ring (fd, e->flags & ~(3 <<13 ));if (flags & (CHILD |FORKED |BOMB )) {int nchild;@@ -203,8 +203,9 @@ static void run_test(int fd, unsigned ring, unsigned flags, unsigned timeout)igt_debug ("Forking %d children\n" , nchild); igt_fork(child, nchild) {if (flags &NEWFD ) { - fd =drm_open_driver (DRIVER_INTEL ); -setup_execbuf (fd, &execbuf, obj, reloc, ring); + i915 =drm_open_driver (DRIVER_INTEL ); +gem_context_copy_engines (fd,0 , i915,0 ); +setup_execbuf (fd, &execbuf, obj, reloc, e); }fill_ring (fd, &execbuf, flags, timeout); }@@ -235,11 +236,12 @@ static void run_test(int fd, unsigned ring, unsigned flags, unsigned timeout)gem_quiescent_gpu (fd);if (flags & (SUSPEND |HIBERNATE )) -run_test (fd, ring,0 ,0 ); +run_test (fd, e,0 ,0 ); } igt_main { +const struct intel_execution_engine2 *e; const struct { const char *suffix; unsigned flags;@@ -265,7 +267,7 @@ igt_main fd =drm_open_driver (DRIVER_INTEL );igt_require_gem (fd); -igt_require (gem_can_store_dword (fd,0 )); +igt_require (gem_class_can_store_dword (fd,0 )); gen =intel_gen (intel_get_drm_devid (fd));if (gen >3 && gen <6 ) {/* ctg and ilk need secure batches */ igt_device_set_master (fd);@@ -276,21 +278,17 @@ igt_mainigt_info ("Ring size: %d batches\n" , ring_size);igt_require (ring_size); } -for (m = modes; m->suffix; m++) { -const struct intel_execution_engine *e; -
tests/i915/gem_ringfill.c igt_main · line 284
Quoted 10 lines
tests/i915/gem_ringfill.c +3
-7-for (e = intel_execution_engines; e->name; e++) { -igt_subtest_f ("%s%s%s" , - m->basic && !e->exec_id ?"basic-" :"" , - e->name, - m->suffix) { -igt_skip_on (m->flags &NEWFD && master); -run_test (fd,eb_ring (e), m->flags, m->timeout); + +igt_skip_on (m->flags &NEWFD && master); + igt_subtest_with_dynamic_f("Test-%s%s", m->basic ? "basic" : "", m->suffix) {
I meant doing
igt_subtest_with_dynamic_f("%s%s", m->basic ? "basic-" : "", m->suffix)
^^^
and removing the - from the modes array.
Signature · 1 line
Petri Latvala
Quoted 18 lines
tests/i915/gem_ringfill.c +4
-1+__for_each_physical_engine (fd, e) { + igt_dynamic_f("%s", e->name) { +run_test (fd, e, m->flags, m->timeout); + } } } } -igt_fixture close (fd ); }Signature · 6 lines
2.25.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev