gem_ctx_create:Adjusted test to use __for_each_physical_engine to utilize all available engines
PATCH v3 1/1 gem_ctx_create:Adjusted test to use __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.
Used gem_context_clone_with_engines
to make sure that engine index was potentially created based on a default context with engine map configured
V2:
Added gem_reopen_driver and gem_context_copy_engines to transfer the engine map from parent fd default context.
--- tests/i915/gem_ctx_create.c | 102 ++++++++++++++++++++++++++---------- 1 file changed, 75 insertions(+), 27 deletions(-)
tests/i915/gem_ctx_create.c +75 -27
@@ -100,11 +100,18 @@ static void files(int core, int timeout, const int ncpus) igt_fork(child, ncpus) { struct timespec start, end; unsigned count = 0; + int fd; clock_gettime(CLOCK_MONOTONIC, &start); do { do { - int fd = drm_open_driver(DRIVER_INTEL); + fd = gem_reopen_driver(core); + /* + * Ensure the gpu is idle by launching + * a nop execbuf and stalling for it. + */ + gem_quiescent_gpu(fd); + gem_context_copy_engines(core, 0, fd, 0); obj.handle = gem_open(fd, name); execbuf.flags &= ~ENGINE_FLAGS; execbuf.flags |= ppgtt_engines[count % ppgtt_nengine];
@@ -124,22 +131,22 @@ static void files(int core, int timeout, const int ncpus)gem_close (core, batch); } -static void active (int fd,unsigned engine,int timeout,int ncpus) +static void active (int fd,const struct intel_execution_engine2 *e, +int timeout,int ncpus) {const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 obj;unsigned int nengine, engines[16 ];unsigned *shared; - -if (engine ==ALL_ENGINES ) { +/* When e is NULL, test would run for all engines */ +if (!e) {igt_require (all_nengine); nengine = all_nengine;memcpy (engines, all_engines,sizeof (engines[0 ])*nengine); }else { -gem_require_ring (fd, engine); nengine =1 ; - engines[0 ] = engine; + engines[0 ] = e->flags; } shared =mmap (NULL ,4096 ,PROT_WRITE ,MAP_SHARED |MAP_ANON ,-1 ,0 );
@@ -156,8 +163,17 @@ static void active(int fd, unsigned engine, int timeout, int ncpus)if (ncpus <0 ) { igt_fork(child, ppgtt_nengine) {unsigned long count =0 ; +int i915; + + i915 =gem_reopen_driver (fd); +/* +* Ensure the gpu is idle by launching +* a nop execbuf and stalling for it +*/ +gem_quiescent_gpu (i915); +gem_context_copy_engines (fd,0 , i915,0 ); -if (ppgtt_engines[child] == engine) +if (ppgtt_engines[child] == e->flags)continue ; execbuf.flags = ppgtt_engines[child];
@@ -179,11 +195,22 @@ static void active(int fd, unsigned engine, int timeout, int ncpus) igt_fork(child, ncpus) { struct timespec start, end; unsigned count = 0; + int i915; + uint32_t ctx; + + i915 = gem_reopen_driver(fd); + /* + * Ensure the gpu is idle by launching + * a nop execbuf and stalling for it. + */ + gem_quiescent_gpu(i915); + ctx = gem_context_create(i915); + gem_context_copy_engines(fd, 0, i915, ctx); clock_gettime(CLOCK_MONOTONIC, &start); do { do { - execbuf.rsvd1 = gem_context_create(fd); + execbuf.rsvd1 = ctx; for (unsigned n = 0; n < nengine; n++) { execbuf.flags = engines[n]; gem_execbuf(fd, &execbuf);
@@ -276,7 +303,9 @@ static void maximum(int fd, int ncpus, unsigned mode) err = -ENOMEM ;if (avail_mem > (count +1 ) * ctx_size) - err =__gem_context_create (fd, &ctx_id); + err =__gem_context_clone (fd,0 , +I915_CONTEXT_CLONE_ENGINES , +0 , &ctx_id);if (err) {igt_info ("Created %lu contexts, before failing with '%s' [%d]\n" , count,strerror (-err), -err);
@@ -297,9 +326,18 @@ static void maximum(int fd, int ncpus, unsigned mode) igt_fork(child, ncpus) {struct timespec start, end; +int i915; + + i915 =gem_reopen_driver (fd); +/* +* Ensure the gpu is idle by launching +* a nop execbuf and stalling for it. +*/ +gem_quiescent_gpu (i915); +gem_context_copy_engines (fd,0 , i915,0 );hars_petruska_f54_1_random_perturb (child); - obj[0 ].handle =gem_create (fd,4096 ); + obj[0 ].handle =gem_create (i915,4096 );clock_gettime (CLOCK_MONOTONIC , &start);for (int repeat =0 ; repeat <3 ; repeat++) {
@@ -310,13 +348,13 @@ static void maximum(int fd, int ncpus, unsigned mode) execbuf.rsvd1 = contexts[i];for (unsigned long j =0 ; j < all_nengine; j++) { execbuf.flags = all_engines[j]; -gem_execbuf (fd, &execbuf); +gem_execbuf (i915, &execbuf); } } } -gem_sync (fd, obj[0 ].handle); +gem_sync (i915, obj[0 ].handle);clock_gettime (CLOCK_MONOTONIC , &end); -gem_close (fd, obj[0 ].handle); +gem_close (i915, obj[0 ].handle);igt_info ("[%d] Context execution: %.3f us\n" , child,elapsed (&start, &end) / (3 * count * all_nengine) *1e6 );
@@ -370,6 +408,7 @@ static void basic_ext_param(int i915)gem_context_destroy (i915, create.ctx_id); +/* Having demonstrated a valid setup, check a few invalids */ ext.param.ctx_id =1 ;igt_assert_eq (create_ext_ioctl (i915, &create), -EINVAL );
@@ -524,6 +563,7 @@ igt_main {const int ncpus =sysconf (_SC_NPROCESSORS_ONLN);struct drm_i915_gem_context_create create; +const struct intel_execution_engine2 *e;int fd =-1 ; igt_fixture {
@@ -531,8 +571,8 @@ igt_mainigt_require_gem (fd);gem_require_contexts (fd); -for_each_physical_engine (e, fd) - all_engines[all_nengine++] =eb_ring (e); +__for_each_physical_engine (fd, e) + all_engines[all_nengine++] = e->flags;igt_require (all_nengine);if (gem_uses_full_ppgtt (fd)) {
@@ -572,20 +612,28 @@ igt_main igt_subtest("forked-files")files (fd,20 , ncpus); +/* NULL value means all engines */ igt_subtest("active-all") -active (fd,ALL_ENGINES ,20 ,1 ); +active (fd,NULL ,20 ,1 ); igt_subtest("forked-active-all") -active (fd,ALL_ENGINES ,20 , ncpus); - -for (const struct intel_execution_engine *e = intel_execution_engines; - e->name; e++) { - igt_subtest_f("active-%s", e->name) -active (fd,eb_ring (e),20 ,1 ); - igt_subtest_f("forked-active-%s", e->name) -active (fd,eb_ring (e),20 , ncpus); -if (e->exec_id) { - igt_subtest_f("hog-%s", e->name) -active (fd,eb_ring (e),20 ,-1 ); +active (fd,NULL ,20 , ncpus); + + igt_subtest_with_dynamic("active") { +__for_each_physical_engine (fd, e) { + igt_dynamic_f("%s", e->name) +active (fd, e,20 ,1 ); + } + } + igt_subtest_with_dynamic("forked-active") { +__for_each_physical_engine (fd, e) { + igt_dynamic_f("%s", e->name) +active (fd, e,20 , ncpus); + } + } + igt_subtest_with_dynamic("hog") { +__for_each_physical_engine (fd, e) { + igt_dynamic_f("%s", e->name) +active (fd, e,20 ,-1 ); } }
Signature · 6 lines
2.24.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ GitLab.Pipeline: failure for gem_ctx_create:Adjusted test to use __for_each_physical_engine to utilize all available engines (rev3)
== Series Details ==
== Series Details ==
Series: gem_ctx_create:Adjusted test to use __for_each_physical_engine to utilize all available engines (rev3)
URL : https://patchwork.freedesktop.org/series/72889/
State : failure
== Summary ==
ERROR! This series introduces new undocumented tests:
gem_ctx_create@active
gem_ctx_create@forked-active
gem_ctx_create@hog
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/106112 for the overview.
== Logs ==
For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/106112
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for gem_ctx_create:Adjusted test to use __for_each_physical_engine to utilize all available engines (rev3)
In reply to Arjun Melkaveri== Series Details ==
== Series Details ==
Series: gem_ctx_create:Adjusted test to use __for_each_physical_engine to utilize all available engines (rev3)
URL : https://patchwork.freedesktop.org/series/72889/
State : success
== Summary ==
CI Bug Log - changes from IGT_5425 -> IGTPW_4112
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/index.html
Known issues
------------
Here are the changes found in IGTPW_4112 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_close_race@basic-threads:
- fi-byt-j1900: [PASS][1] -> [INCOMPLETE][2] ([i915#45])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/fi-byt-j1900/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/fi-byt-j1900/igt@[email protected]
* igt@i915_selftest@live_blt:
- fi-hsw-4770r: [PASS][3] -> [DMESG-FAIL][4] ([i915#553] / [i915#725])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/fi-hsw-4770r/igt@i915_selftest@live_blt.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/fi-hsw-4770r/igt@i915_selftest@live_blt.html
* igt@i915_selftest@live_gtt:
- fi-bdw-5557u: [PASS][5] -> [TIMEOUT][6] ([fdo#112271])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/fi-bdw-5557u/igt@i915_selftest@live_gtt.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/fi-bdw-5557u/igt@i915_selftest@live_gtt.html
* igt@i915_selftest@live_hangcheck:
- fi-icl-u3: [PASS][7] -> [INCOMPLETE][8] ([fdo#108569])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/fi-icl-u3/igt@i915_selftest@live_hangcheck.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/fi-icl-u3/igt@i915_selftest@live_hangcheck.html
#### Possible fixes ####
* igt@i915_selftest@live_blt:
- fi-bsw-n3050: [INCOMPLETE][9] ([i915#392]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/fi-bsw-n3050/igt@i915_selftest@live_blt.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/fi-bsw-n3050/igt@i915_selftest@live_blt.html
- fi-bsw-nick: [INCOMPLETE][11] ([i915#392]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/fi-bsw-nick/igt@i915_selftest@live_blt.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/fi-bsw-nick/igt@i915_selftest@live_blt.html
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][13] ([fdo#111096] / [i915#323]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/fi-kbl-7500u/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/fi-kbl-7500u/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: [DMESG-WARN][15] ([i915#44]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/fi-hsw-peppy/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/fi-hsw-peppy/igt@[email protected]
#### Warnings ####
* igt@gem_exec_parallel@fds:
- fi-byt-n2820: [FAIL][17] ([i915#694]) -> [TIMEOUT][18] ([fdo#112271])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/fi-byt-n2820/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/fi-byt-n2820/igt@[email protected]
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#111096]: https://bugs.freedesktop.org/show_bug.cgi?id=111096
[fdo#112271]: https://bugs.freedesktop.org/show_bug.cgi?id=112271
[i915#323]: https://gitlab.freedesktop.org/drm/intel/issues/323
[i915#392]: https://gitlab.freedesktop.org/drm/intel/issues/392
[i915#44]: https://gitlab.freedesktop.org/drm/intel/issues/44
[i915#45]: https://gitlab.freedesktop.org/drm/intel/issues/45
[i915#553]: https://gitlab.freedesktop.org/drm/intel/issues/553
[i915#694]: https://gitlab.freedesktop.org/drm/intel/issues/694
[i915#725]: https://gitlab.freedesktop.org/drm/intel/issues/725
Participating hosts (53 -> 47)
------------------------------
Additional (1): fi-pnv-d510
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_5425 -> IGTPW_4112
CI-20190529: 20190529
CI_DRM_7885: fc2806bc441bfc6b44cf4713f3c6b820d73c3534 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_4112: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/index.html
IGT_5425: ad4542ef1adbaa1227bc9ba9e24bb0e0f6dd408d @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Testlist changes ==
+igt@gem_ctx_create@active
+igt@gem_ctx_create@forked-active
+igt@gem_ctx_create@hog
-igt@gem_ctx_create@active-blt
-igt@gem_ctx_create@active-bsd
-igt@gem_ctx_create@active-bsd1
-igt@gem_ctx_create@active-bsd2
-igt@gem_ctx_create@active-default
-igt@gem_ctx_create@active-render
-igt@gem_ctx_create@active-vebox
-igt@gem_ctx_create@forked-active-blt
-igt@gem_ctx_create@forked-active-bsd
-igt@gem_ctx_create@forked-active-bsd1
-igt@gem_ctx_create@forked-active-bsd2
-igt@gem_ctx_create@forked-active-default
-igt@gem_ctx_create@forked-active-render
-igt@gem_ctx_create@forked-active-vebox
-igt@gem_ctx_create@hog-blt
-igt@gem_ctx_create@hog-bsd
-igt@gem_ctx_create@hog-bsd1
-igt@gem_ctx_create@hog-bsd2
-igt@gem_ctx_create@hog-render
-igt@gem_ctx_create@hog-vebox
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ Fi.CI.IGT: failure for gem_ctx_create:Adjusted test to use __for_each_physical_engine to utilize all available engines (rev3)
In reply to Arjun Melkaveri== Series Details ==
== Series Details ==
Series: gem_ctx_create:Adjusted test to use __for_each_physical_engine to utilize all available engines (rev3)
URL : https://patchwork.freedesktop.org/series/72889/
State : failure
== Summary ==
CI Bug Log - changes from IGT_5425_full -> IGTPW_4112_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_4112_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_4112_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://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_4112_full:
### IGT changes ###
#### Possible regressions ####
* igt@kms_color@pipe-a-legacy-gamma:
- shard-tglb: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-tglb1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-tglb2/igt@[email protected]
Known issues
------------
Here are the changes found in IGTPW_4112_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_caching@read-writes:
- shard-hsw: [PASS][3] -> [FAIL][4] ([i915#694])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-hsw6/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-hsw6/igt@[email protected]
* igt@gem_exec_balancer@smoke:
- shard-iclb: [PASS][5] -> [SKIP][6] ([fdo#110854])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-iclb1/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-iclb7/igt@[email protected]
* igt@gem_exec_parallel@vcs1-fds:
- shard-iclb: [PASS][7] -> [SKIP][8] ([fdo#112080]) +7 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-iclb4/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-iclb8/igt@[email protected]
* igt@gem_exec_schedule@pi-distinct-iova-bsd:
- shard-iclb: [PASS][9] -> [SKIP][10] ([i915#677])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-iclb8/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-iclb1/igt@[email protected]
* igt@gem_exec_schedule@preempt-queue-contexts-bsd1:
- shard-iclb: [PASS][11] -> [SKIP][12] ([fdo#109276]) +15 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-iclb4/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-iclb8/igt@[email protected]
* igt@gem_exec_schedule@reorder-wide-bsd:
- shard-iclb: [PASS][13] -> [SKIP][14] ([fdo#112146]) +6 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-iclb3/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-iclb1/igt@[email protected]
* igt@gem_ppgtt@flink-and-close-vma-leak:
- shard-glk: [PASS][15] -> [FAIL][16] ([i915#644])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-glk4/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-glk3/igt@[email protected]
* igt@gem_userptr_blits@dmabuf-unsync:
- shard-snb: [PASS][17] -> [DMESG-WARN][18] ([fdo#111870] / [i915#478])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-snb6/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-snb5/igt@[email protected]
* igt@gen9_exec_parse@allowed-single:
- shard-glk: [PASS][19] -> [DMESG-WARN][20] ([i915#716])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-glk1/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-glk9/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [PASS][21] -> [FAIL][22] ([i915#454])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-iclb1/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-iclb6/igt@[email protected]
* igt@i915_pm_rpm@system-suspend-modeset:
- shard-iclb: [PASS][23] -> [INCOMPLETE][24] ([i915#189])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-iclb4/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-iclb8/igt@[email protected]
* igt@kms_color@pipe-b-ctm-green-to-red:
- shard-apl: [PASS][25] -> [FAIL][26] ([i915#129])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-apl1/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-apl3/igt@[email protected]
- shard-kbl: [PASS][27] -> [FAIL][28] ([i915#129])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-kbl4/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-kbl3/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-tglb: [PASS][29] -> [FAIL][30] ([fdo#111703])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-tglb8/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-tglb3/igt@[email protected]
* igt@kms_cursor_edge_walk@pipe-a-64x64-left-edge:
- shard-tglb: [PASS][31] -> [FAIL][32] ([i915#70])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-tglb3/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-tglb8/igt@[email protected]
* igt@kms_draw_crc@draw-method-rgb565-mmap-gtt-ytiled:
- shard-tglb: [PASS][33] -> [DMESG-FAIL][34] ([i915#402])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-tglb1/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-tglb3/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-farfromfence:
- shard-tglb: [PASS][35] -> [SKIP][36] ([i915#668]) +2 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-tglb3/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-tglb3/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- shard-iclb: [PASS][37] -> [INCOMPLETE][38] ([i915#140])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-iclb6/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-iclb1/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-c-planes:
- shard-kbl: [PASS][39] -> [DMESG-WARN][40] ([i915#180]) +3 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-kbl4/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-kbl7/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-min:
- shard-tglb: [PASS][41] -> [FAIL][42] ([i915#1184])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-tglb8/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-tglb2/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-x:
- shard-glk: [PASS][43] -> [FAIL][44] ([i915#899])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-glk1/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-glk1/igt@[email protected]
* igt@kms_psr@no_drrs:
- shard-iclb: [PASS][45] -> [FAIL][46] ([i915#173])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-iclb8/igt@kms_psr@no_drrs.html
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-iclb1/igt@kms_psr@no_drrs.html
* igt@kms_psr@psr2_cursor_mmap_cpu:
- shard-iclb: [PASS][47] -> [SKIP][48] ([fdo#109441]) +2 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-iclb2/igt@kms_psr@psr2_cursor_mmap_cpu.html
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-iclb6/igt@kms_psr@psr2_cursor_mmap_cpu.html
#### Possible fixes ####
* igt@gem_ctx_isolation@rcs0-s3:
- shard-kbl: [DMESG-WARN][49] ([i915#180]) -> [PASS][50] +5 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-kbl4/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-kbl2/igt@[email protected]
* igt@gem_ctx_shared@exec-single-timeline-bsd:
- shard-iclb: [SKIP][51] ([fdo#110841]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-iclb4/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-iclb6/igt@[email protected]
* igt@gem_exec_schedule@pi-distinct-iova-vebox:
- shard-glk: [FAIL][53] ([i915#859]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-glk9/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-glk3/igt@[email protected]
* igt@gem_exec_schedule@preemptive-hang-bsd:
- shard-iclb: [SKIP][55] ([fdo#112146]) -> [PASS][56] +3 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-iclb2/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-iclb3/igt@[email protected]
* igt@i915_hangman@error-state-capture-vcs1:
- shard-iclb: [SKIP][57] ([fdo#112080]) -> [PASS][58] +8 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-iclb7/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-iclb2/igt@[email protected]
* igt@i915_pm_dc@dc5-psr:
- shard-tglb: [DMESG-WARN][59] ([i915#402]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-tglb5/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-tglb3/igt@[email protected]
* igt@i915_pm_rps@waitboost:
- shard-iclb: [FAIL][61] ([i915#413]) -> [PASS][62]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-iclb7/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-iclb3/igt@[email protected]
* igt@i915_selftest@live_gtt:
- shard-kbl: [TIMEOUT][63] ([fdo#112271]) -> [PASS][64]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-kbl3/igt@i915_selftest@live_gtt.html
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-kbl3/igt@i915_selftest@live_gtt.html
- shard-apl: [TIMEOUT][65] ([fdo#112271]) -> [PASS][66]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-apl3/igt@i915_selftest@live_gtt.html
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-apl2/igt@i915_selftest@live_gtt.html
* igt@kms_ccs@pipe-a-crc-primary-rotation-180:
- shard-tglb: [DMESG-FAIL][67] ([i915#402]) -> [PASS][68] +2 similar issues
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-tglb6/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-tglb1/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-256x85-onscreen:
- shard-tglb: [FAIL][69] ([fdo#111703]) -> [PASS][70]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-tglb7/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-tglb6/igt@[email protected]
* igt@kms_draw_crc@draw-method-xrgb2101010-render-untiled:
- shard-tglb: [FAIL][71] ([i915#559]) -> [PASS][72]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-tglb7/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-tglb8/igt@[email protected]
* igt@kms_flip@flip-vs-panning-vs-hang-interruptible:
- shard-hsw: [DMESG-WARN][73] ([i915#44]) -> [PASS][74]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-hsw5/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-hsw2/igt@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-apl: [DMESG-WARN][75] ([i915#180]) -> [PASS][76]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-apl8/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-apl3/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc-pipe-a-frame-sequence:
- shard-tglb: [FAIL][77] ([i915#1183]) -> [PASS][78]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-tglb8/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-tglb3/igt@[email protected]
* igt@kms_plane@plane-panning-top-left-pipe-a-planes:
- shard-tglb: [FAIL][79] ([i915#1171]) -> [PASS][80]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-tglb2/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-tglb5/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-coverage-7efc:
- shard-tglb: [FAIL][81] ([i915#1184]) -> [PASS][82]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-tglb2/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-tglb1/igt@[email protected]
* igt@kms_plane_cursor@pipe-a-overlay-size-256:
- shard-tglb: [FAIL][83] ([i915#1139]) -> [PASS][84]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-tglb7/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-tglb5/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-none:
- shard-tglb: [FAIL][85] ([i915#899]) -> [PASS][86]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-tglb6/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-tglb7/igt@[email protected]
* igt@kms_psr@psr2_suspend:
- shard-iclb: [SKIP][87] ([fdo#109441]) -> [PASS][88] +2 similar issues
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-iclb3/igt@kms_psr@psr2_suspend.html
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-iclb2/igt@kms_psr@psr2_suspend.html
* igt@kms_vblank@pipe-a-ts-continuation-dpms-suspend:
- shard-kbl: [INCOMPLETE][89] ([fdo#103665]) -> [PASS][90]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-kbl4/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-kbl3/igt@[email protected]
* igt@kms_vblank@pipe-b-wait-forked:
- shard-snb: [SKIP][91] ([fdo#109271]) -> [PASS][92] +1 similar issue
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-snb2/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-snb5/igt@[email protected]
* igt@prime_busy@hang-bsd2:
- shard-iclb: [SKIP][93] ([fdo#109276]) -> [PASS][94] +9 similar issues
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-iclb6/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-iclb1/igt@[email protected]
#### Warnings ####
* igt@gem_userptr_blits@map-fixed-invalidate-busy:
- shard-snb: [DMESG-WARN][95] ([fdo#111870] / [i915#478]) -> [DMESG-WARN][96] ([fdo#110789] / [fdo#111870] / [i915#478])
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-snb2/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-snb4/igt@[email protected]
* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: [DMESG-WARN][97] ([fdo#107724]) -> [SKIP][98] ([fdo#109349])
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5425/shard-iclb2/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/shard-iclb5/igt@[email protected]
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#110789]: https://bugs.freedesktop.org/show_bug.cgi?id=110789
[fdo#110841]: https://bugs.freedesktop.org/show_bug.cgi?id=110841
[fdo#110854]: https://bugs.freedesktop.org/show_bug.cgi?id=110854
[fdo#111703]: https://bugs.freedesktop.org/show_bug.cgi?id=111703
[fdo#111870]: https://bugs.freedesktop.org/show_bug.cgi?id=111870
[fdo#112080]: https://bugs.freedesktop.org/show_bug.cgi?id=112080
[fdo#112146]: https://bugs.freedesktop.org/show_bug.cgi?id=112146
[fdo#112271]: https://bugs.freedesktop.org/show_bug.cgi?id=112271
[i915#1139]: https://gitlab.freedesktop.org/drm/intel/issues/1139
[i915#1171]: https://gitlab.freedesktop.org/drm/intel/issues/1171
[i915#1183]: https://gitlab.freedesktop.org/drm/intel/issues/1183
[i915#1184]: https://gitlab.freedesktop.org/drm/intel/issues/1184
[i915#129]: https://gitlab.freedesktop.org/drm/intel/issues/129
[i915#140]: https://gitlab.freedesktop.org/drm/intel/issues/140
[i915#173]: https://gitlab.freedesktop.org/drm/intel/issues/173
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#189]: https://gitlab.freedesktop.org/drm/intel/issues/189
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[i915#413]: https://gitlab.freedesktop.org/drm/intel/issues/413
[i915#44]: https://gitlab.freedesktop.org/drm/intel/issues/44
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#478]: https://gitlab.freedesktop.org/drm/intel/issues/478
[i915#559]: https://gitlab.freedesktop.org/drm/intel/issues/559
[i915#644]: https://gitlab.freedesktop.org/drm/intel/issues/644
[i915#668]: https://gitlab.freedesktop.org/drm/intel/issues/668
[i915#677]: https://gitlab.freedesktop.org/drm/intel/issues/677
[i915#694]: https://gitlab.freedesktop.org/drm/intel/issues/694
[i915#70]: https://gitlab.freedesktop.org/drm/intel/issues/70
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#859]: https://gitlab.freedesktop.org/drm/intel/issues/859
[i915#899]: https://gitlab.freedesktop.org/drm/intel/issues/899
Participating hosts (8 -> 8)
------------------------------
No changes in participating hosts
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5425 -> IGTPW_4112
CI-20190529: 20190529
CI_DRM_7885: fc2806bc441bfc6b44cf4713f3c6b820d73c3534 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_4112: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/index.html
IGT_5425: ad4542ef1adbaa1227bc9ba9e24bb0e0f6dd408d @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4112/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Quoted 7 lines · Arjun Melkaveri
Replaced the legacy for_each_engine* defines with the ones implemented in the
gem_engine_topologylibrary.Used
gem_context_clone_with_engines
to make sure that engine index was potentially created based on a default context with engine map configured
Quoted 5 lines
V2:
Added
gem_reopen_driverandgem_context_copy_enginesto transfer the engine map from parent fd default context.
LGTM. CI failures are not connected with this change. I will merge it later.
Kasia :)
Quoted 226 lines
Cc Chris Wilson <[email protected]>Cc Ursulin Tvrtko <[email protected]>Signed-off-by Arjun Melkaveri <[email protected]>--- tests/i915/gem_ctx_create.c | 102 ++++++++++++++++++++++++++---------- 1 file changed, 75 insertions(+), 27 deletions(-)tests/i915/gem_ctx_create.c +75
-27@@ -100,11 +100,18 @@ static void files(int core, int timeout, const int ncpus) igt_fork(child, ncpus) { struct timespec start, end; unsigned count = 0; + int fd; clock_gettime(CLOCK_MONOTONIC, &start); do { do { - int fd = drm_open_driver(DRIVER_INTEL); + fd = gem_reopen_driver(core); + /* + * Ensure the gpu is idle by launching + * a nop execbuf and stalling for it. + */ + gem_quiescent_gpu(fd); + gem_context_copy_engines(core, 0, fd, 0); obj.handle = gem_open(fd, name); execbuf.flags &= ~ENGINE_FLAGS; execbuf.flags |= ppgtt_engines[count % ppgtt_nengine];@@ -124,22 +131,22 @@ static void files(int core, int timeout, const int ncpus)gem_close (core, batch); } -static void active (int fd,unsigned engine,int timeout,int ncpus) +static void active (int fd,const struct intel_execution_engine2 *e, +int timeout,int ncpus) {const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 obj;unsigned int nengine, engines[16 ];unsigned *shared; - -if (engine ==ALL_ENGINES ) { +/* When e is NULL, test would run for all engines */ +if (!e) {igt_require (all_nengine); nengine = all_nengine;memcpy (engines, all_engines,sizeof (engines[0 ])*nengine); }else { -gem_require_ring (fd, engine); nengine =1 ; - engines[0 ] = engine; + engines[0 ] = e->flags; } shared =mmap (NULL ,4096 ,PROT_WRITE ,MAP_SHARED |MAP_ANON ,-1 ,0 );@@ -156,8 +163,17 @@ static void active(int fd, unsigned engine, int timeout, int ncpus)if (ncpus <0 ) { igt_fork(child, ppgtt_nengine) {unsigned long count =0 ; +int i915; + + i915 =gem_reopen_driver (fd); +/* +* Ensure the gpu is idle by launching +* a nop execbuf and stalling for it +*/ +gem_quiescent_gpu (i915); +gem_context_copy_engines (fd,0 , i915,0 ); -if (ppgtt_engines[child] == engine) +if (ppgtt_engines[child] == e->flags)continue ; execbuf.flags = ppgtt_engines[child];@@ -179,11 +195,22 @@ static void active(int fd, unsigned engine, int timeout, int ncpus) igt_fork(child, ncpus) { struct timespec start, end; unsigned count = 0; + int i915; + uint32_t ctx; + + i915 = gem_reopen_driver(fd); + /* + * Ensure the gpu is idle by launching + * a nop execbuf and stalling for it. + */ + gem_quiescent_gpu(i915); + ctx = gem_context_create(i915); + gem_context_copy_engines(fd, 0, i915, ctx); clock_gettime(CLOCK_MONOTONIC, &start); do { do { - execbuf.rsvd1 = gem_context_create(fd); + execbuf.rsvd1 = ctx; for (unsigned n = 0; n < nengine; n++) { execbuf.flags = engines[n]; gem_execbuf(fd, &execbuf);@@ -276,7 +303,9 @@ static void maximum(int fd, int ncpus, unsigned mode) err = -ENOMEM ;if (avail_mem > (count +1 ) * ctx_size) - err =__gem_context_create (fd, &ctx_id); + err =__gem_context_clone (fd,0 , +I915_CONTEXT_CLONE_ENGINES , +0 , &ctx_id);if (err) {igt_info ("Created %lu contexts, before failing with '%s' [%d]\n" , count,strerror (-err), -err);@@ -297,9 +326,18 @@ static void maximum(int fd, int ncpus, unsigned mode) igt_fork(child, ncpus) {struct timespec start, end; +int i915; + + i915 =gem_reopen_driver (fd); +/* +* Ensure the gpu is idle by launching +* a nop execbuf and stalling for it. +*/ +gem_quiescent_gpu (i915); +gem_context_copy_engines (fd,0 , i915,0 );hars_petruska_f54_1_random_perturb (child); - obj[0 ].handle =gem_create (fd,4096 ); + obj[0 ].handle =gem_create (i915,4096 );clock_gettime (CLOCK_MONOTONIC , &start);for (int repeat =0 ; repeat <3 ; repeat++) {@@ -310,13 +348,13 @@ static void maximum(int fd, int ncpus, unsigned mode) execbuf.rsvd1 = contexts[i];for (unsigned long j =0 ; j < all_nengine; j++) { execbuf.flags = all_engines[j]; -gem_execbuf (fd, &execbuf); +gem_execbuf (i915, &execbuf); } } } -gem_sync (fd, obj[0 ].handle); +gem_sync (i915, obj[0 ].handle);clock_gettime (CLOCK_MONOTONIC , &end); -gem_close (fd, obj[0 ].handle); +gem_close (i915, obj[0 ].handle);igt_info ("[%d] Context execution: %.3f us\n" , child,elapsed (&start, &end) / (3 * count * all_nengine) *1e6 );@@ -370,6 +408,7 @@ static void basic_ext_param(int i915)gem_context_destroy (i915, create.ctx_id); +/* Having demonstrated a valid setup, check a few invalids */ ext.param.ctx_id =1 ;igt_assert_eq (create_ext_ioctl (i915, &create), -EINVAL );@@ -524,6 +563,7 @@ igt_main {const int ncpus =sysconf (_SC_NPROCESSORS_ONLN);struct drm_i915_gem_context_create create; +const struct intel_execution_engine2 *e;int fd =-1 ; igt_fixture {@@ -531,8 +571,8 @@ igt_mainigt_require_gem (fd);gem_require_contexts (fd); -for_each_physical_engine (e, fd) - all_engines[all_nengine++] =eb_ring (e); +__for_each_physical_engine (fd, e) + all_engines[all_nengine++] = e->flags;igt_require (all_nengine);if (gem_uses_full_ppgtt (fd)) {@@ -572,20 +612,28 @@ igt_main igt_subtest("forked-files")files (fd,20 , ncpus); +/* NULL value means all engines */ igt_subtest("active-all") -active (fd,ALL_ENGINES ,20 ,1 ); +active (fd,NULL ,20 ,1 ); igt_subtest("forked-active-all") -active (fd,ALL_ENGINES ,20 , ncpus); - -for (const struct intel_execution_engine *e = intel_execution_engines; - e->name; e++) { - igt_subtest_f("active-%s", e->name) -active (fd,eb_ring (e),20 ,1 ); - igt_subtest_f("forked-active-%s", e->name) -active (fd,eb_ring (e),20 , ncpus); -if (e->exec_id) { - igt_subtest_f("hog-%s", e->name) -active (fd,eb_ring (e),20 ,-1 ); +active (fd,NULL ,20 , ncpus); + + igt_subtest_with_dynamic("active") { +__for_each_physical_engine (fd, e) { + igt_dynamic_f("%s", e->name) +active (fd, e,20 ,1 ); + } + } + igt_subtest_with_dynamic("forked-active") { +__for_each_physical_engine (fd, e) { + igt_dynamic_f("%s", e->name) +active (fd, e,20 , ncpus); + } + } + igt_subtest_with_dynamic("hog") { +__for_each_physical_engine (fd, e) { + igt_dynamic_f("%s", e->name) +active (fd, e,20 ,-1 ); } }Signature · 6 lines
2.24.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
Quoting Arjun Melkaveri (2020-02-07 12:59:41)
Quoted 14 lines
tests/i915/gem_ctx_create.c +10
-0@@ -179,11 +195,22 @@ static void active(int fd, unsigned engine, int timeout, int ncpus) igt_fork(child, ncpus) {struct timespec start, end;unsigned count =0 ; +int i915; +uint32_t ctx; + + i915 =gem_reopen_driver (fd); +/* +* Ensure the gpu is idle by launching +* a nop execbuf and stalling for it. +*/ +gem_quiescent_gpu (i915); + ctx =gem_context_create (i915);
tests/i915/gem_ctx_create.c static void active(int fd, unsigned engine, int timeout, int ncpus) · line 216
Quoted 10 lines
tests/i915/gem_ctx_create.c +2
-1+gem_context_copy_engines (fd,0 , i915, ctx);clock_gettime (CLOCK_MONOTONIC , &start); do { do { - execbuf.rsvd1 = gem_context_create(fd); + execbuf.rsvd1 = ctx; for (unsigned n = 0; n < nengine; n++) { execbuf.flags = engines[n]; gem_execbuf(fd, &execbuf);
Ahem. The point of the test was to create a new context, not keep using a dead context.
-Chris
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
-----Original Message-----
From: Chris Wilson <[email protected]>
Sent: Tuesday, March 3, 2020 7:59 PM
To: Melkaveri, Arjun <[email protected]>; [email protected]
Subject: Re: [igt-dev] [PATCH V3] [PATCH i-g-t] gem_ctx_create:Adjusted test to use __for_each_physical_engine to utilize all available engines
Quoting Arjun Melkaveri (2020-02-07 12:59:41)
Quoted 14 lines
tests/i915/gem_ctx_create.c +10
-0@@ -179,11 +195,22 @@ static void active(int fd, unsigned engine, int timeout, int ncpus) igt_fork(child, ncpus) {struct timespec start, end;unsigned count =0 ; +int i915; +uint32_t ctx; + + i915 =gem_reopen_driver (fd); +/* +* Ensure the gpu is idle by launching +* a nop execbuf and stalling for it. +*/ +gem_quiescent_gpu (i915); + ctx =gem_context_create (i915);
tests/i915/gem_ctx_create.c static void active(int fd, unsigned engine, int timeout, int ncpus) · line 216
Quoted 10 lines
tests/i915/gem_ctx_create.c +2
-1+gem_context_copy_engines (fd,0 , i915, ctx);clock_gettime (CLOCK_MONOTONIC , &start); do { do { - execbuf.rsvd1 = gem_context_create(fd); + execbuf.rsvd1 = ctx; for (unsigned n = 0; n < nengine; n++) { execbuf.flags = engines[n]; gem_execbuf(fd, &execbuf);
Ahem. The point of the test was to create a new context, not keep using a dead context. -Chris
Will correct it and send patch , saw where I have gone wrong now .
-Arjun
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev