tests/i915/gem_sync: Add support for local memory
PATCH 1/1 tests/i915/gem_sync: Add support for local memory
From: Ch Sai Gowtham <[email protected]>
Add support for local memory region (Device memory)
--- tests/i915/gem_sync.c | 198 +++++++++++++++++++++++++++++------------- 1 file changed, 136 insertions(+), 62 deletions(-)
tests/i915/gem_sync.c +136 -62
@@ -143,9 +143,20 @@ static void xchg_engine(void *array, unsigned i, unsigned j)igt_swap (E [i],E [j]); } +static uint32_t batch_create (int fd,uint32_t batch_size,uint32_t region) +{ +const uint32_t bbe =MI_BATCH_BUFFER_END ; +uint32_t handle; + + handle =gem_create_in_memory_regions (fd,4096 , region); +gem_write (fd, handle,0 , &bbe,sizeof (bbe)); + +return handle; +} +static void sync_ring (int fd,const intel_ctx_t *ctx, -unsigned ring,int num_children,int timeout) +unsigned ring,int num_children,int timeout,uint32_t region) {struct intel_engine_data ied;
@@ -155,15 +166,13 @@ sync_ring(int fd, const intel_ctx_t *ctx,intel_detect_and_clear_missed_interrupts (fd); igt_fork(child, num_children) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object;struct drm_i915_gem_execbuffer2 execbuf;double start, elapsed;unsigned long cycles;memset (&object,0 ,sizeof (object)); - object.handle =gem_create (fd,4096 ); -gem_write (fd, object.handle,0 , &bbe,sizeof (bbe)); + object.handle =batch_create (fd,4096 , region);memset (&execbuf,0 ,sizeof (execbuf)); execbuf.buffers_ptr =to_user_pointer (&object);
@@ -193,9 +202,8 @@ sync_ring(int fd, const intel_ctx_t *ctx,static void idle_ring (int fd,const intel_ctx_t *ctx,unsigned int ring, -int num_children,int timeout) +int num_children,int timeout,uint32_t region) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object;struct drm_i915_gem_execbuffer2 execbuf;double start, elapsed;
@@ -204,8 +212,7 @@ idle_ring(int fd, const intel_ctx_t *ctx, unsigned int ring,gem_require_ring (fd, ring);memset (&object,0 ,sizeof (object)); - object.handle =gem_create (fd,4096 ); -gem_write (fd, object.handle,0 , &bbe,sizeof (bbe)); + object.handle =batch_create (fd,4096 , region);memset (&execbuf,0 ,sizeof (execbuf)); execbuf.buffers_ptr =to_user_pointer (&object);
@@ -234,7 +241,7 @@ idle_ring(int fd, const intel_ctx_t *ctx, unsigned int ring,static void wakeup_ring (int fd,const intel_ctx_t *ctx,unsigned ring, -int timeout,int wlen) +int timeout,int wlen,uint32_t region) {struct intel_engine_data ied;
@@ -243,7 +250,6 @@ wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring,intel_detect_and_clear_missed_interrupts (fd); igt_fork(child, ied.nengines) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object;struct drm_i915_gem_execbuffer2 execbuf;double end, this, elapsed, now, baseline;
@@ -251,8 +257,7 @@ wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring,igt_spin_t *spin;memset (&object,0 ,sizeof (object)); - object.handle =gem_create (fd,4096 ); -gem_write (fd, object.handle,0 , &bbe,sizeof (bbe)); + object.handle =batch_create (fd,4096 , region);memset (&execbuf,0 ,sizeof (execbuf)); execbuf.buffers_ptr =to_user_pointer (&object);
@@ -329,7 +334,7 @@ wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring, }static void active_ring (int fd,const intel_ctx_t *ctx,unsigned int ring, -int num_children,int timeout) +int num_children,int timeout,uint32_t region) {struct intel_engine_data ied;
@@ -381,7 +386,7 @@ static void active_ring(int fd, const intel_ctx_t *ctx, unsigned int ring,static void active_wakeup_ring (int fd,const intel_ctx_t *ctx,unsigned ring, -int timeout,int wlen) +int timeout,int wlen,uint32_t region) {struct intel_engine_data ied;
@@ -390,7 +395,6 @@ active_wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring,intel_detect_and_clear_missed_interrupts (fd); igt_fork(child, ied.nengines) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object;struct drm_i915_gem_execbuffer2 execbuf;double end, this, elapsed, now, baseline;
@@ -398,8 +402,7 @@ active_wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring,igt_spin_t *spin[2 ];memset (&object,0 ,sizeof (object)); - object.handle =gem_create (fd,4096 ); -gem_write (fd, object.handle,0 , &bbe,sizeof (bbe)); + object.handle =batch_create (fd,4096 , region);memset (&execbuf,0 ,sizeof (execbuf)); execbuf.buffers_ptr =to_user_pointer (&object);
@@ -497,7 +500,7 @@ active_wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring,static void store_ring (int fd,const intel_ctx_t *ctx,unsigned ring, -int num_children,int timeout) +int num_children,int timeout,uint32_t region) {const unsigned int gen =intel_gen (intel_get_drm_devid (fd));struct intel_engine_data ied;
@@ -508,7 +511,6 @@ store_ring(int fd, const intel_ctx_t *ctx, unsigned ring,intel_detect_and_clear_missed_interrupts (fd); igt_fork(child, num_children) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object[2 ];struct drm_i915_gem_relocation_entry reloc[1024 ];struct drm_i915_gem_execbuffer2 execbuf;
@@ -526,8 +528,7 @@ store_ring(int fd, const intel_ctx_t *ctx, unsigned ring, execbuf.rsvd1 = ctx->id;memset (object,0 ,sizeof (object)); - object[0 ].handle =gem_create (fd,4096 ); -gem_write (fd, object[0 ].handle,0 , &bbe,sizeof (bbe)); + object[0 ].handle =batch_create (fd,4096 , region); execbuf.buffer_count =1 ;gem_execbuf (fd, &execbuf);
@@ -595,7 +596,7 @@ store_ring(int fd, const intel_ctx_t *ctx, unsigned ring,static void switch_ring (int fd,const intel_ctx_t *ctx,unsigned ring, -int num_children,int timeout) +int num_children,int timeout,uint32_t region) {const unsigned int gen =intel_gen (intel_get_drm_devid (fd));struct intel_engine_data ied;
@@ -618,7 +619,6 @@ switch_ring(int fd, const intel_ctx_t *ctx, unsigned ring,unsigned long cycles;for (int i =0 ; i <ARRAY_SIZE (contexts); i++) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;const uint32_t sz =32 <<10 ;struct context *c = &contexts[i];uint32_t *batch, *b;
@@ -635,8 +635,7 @@ switch_ring(int fd, const intel_ctx_t *ctx, unsigned ring, c->execbuf.rsvd1 = c->ctx->id;memset (c->object,0 ,sizeof (c->object)); - c->object[0 ].handle =gem_create (fd,4096 ); -gem_write (fd, c->object[0 ].handle,0 , &bbe,sizeof (bbe)); + c->object[0 ].handle =batch_create (fd,4096 , region); c->execbuf.buffer_count =1 ;gem_execbuf (fd, &c->execbuf);
@@ -778,10 +777,9 @@ static void *waiter(void *arg)static void __store_many (int fd,const intel_ctx_t *ctx,unsigned ring, -int timeout,unsigned long *cycles) +int timeout,unsigned long *cycles,uint32_t region) {const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object[2 ];struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_relocation_entry reloc[1024 ];
@@ -800,8 +798,7 @@ __store_many(int fd, const intel_ctx_t *ctx, unsigned ring, execbuf.rsvd1 = ctx->id;memset (object,0 ,sizeof (object)); - object[0 ].handle =gem_create (fd,4096 ); -gem_write (fd, object[0 ].handle,0 , &bbe,sizeof (bbe)); + object[0 ].handle =batch_create (fd,4096 , region); execbuf.buffer_count =1 ;gem_execbuf (fd, &execbuf); object[0 ].flags |=EXEC_OBJECT_WRITE ;
@@ -908,7 +905,7 @@ __store_many(int fd, const intel_ctx_t *ctx, unsigned ring,static void store_many (int fd,const intel_ctx_t *ctx,unsigned int ring, -int num_children,int timeout) +int num_children,int timeout,uint32_t region) {struct intel_engine_data ied;unsigned long *shared;
@@ -926,7 +923,8 @@ store_many(int fd, const intel_ctx_t *ctx, unsigned int ring,__store_many (fd, ctx,ied_flags (&ied, n), timeout, - &shared[n]); + &shared[n], + region); }igt_waitchildren ();
@@ -939,7 +937,7 @@ store_many(int fd, const intel_ctx_t *ctx, unsigned int ring, }static void -sync_all (int fd,const intel_ctx_t *ctx,int num_children,int timeout) +sync_all (int fd,const intel_ctx_t *ctx,int num_children,int timeout,uint32_t region) {struct intel_engine_data ied;
@@ -948,15 +946,13 @@ sync_all(int fd, const intel_ctx_t *ctx, int num_children, int timeout)intel_detect_and_clear_missed_interrupts (fd); igt_fork(child, num_children) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object;struct drm_i915_gem_execbuffer2 execbuf;double start, elapsed;unsigned long cycles;memset (&object,0 ,sizeof (object)); - object.handle =gem_create (fd,4096 ); -gem_write (fd, object.handle,0 , &bbe,sizeof (bbe)); + object.handle =batch_create (fd,4096 , region);memset (&execbuf,0 ,sizeof (execbuf)); execbuf.buffers_ptr =to_user_pointer (&object);
@@ -986,7 +982,7 @@ sync_all(int fd, const intel_ctx_t *ctx, int num_children, int timeout) }static void -store_all (int fd,const intel_ctx_t *ctx,int num_children,int timeout) +store_all (int fd,const intel_ctx_t *ctx,int num_children,int timeout,uint32_t region) {const unsigned int gen =intel_gen (intel_get_drm_devid (fd));struct intel_engine_data ied;
@@ -996,7 +992,6 @@ store_all(int fd, const intel_ctx_t *ctx, int num_children, int timeout)intel_detect_and_clear_missed_interrupts (fd); igt_fork(child, num_children) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object[2 ];struct drm_i915_gem_relocation_entry reloc[1024 ];struct drm_i915_gem_execbuffer2 execbuf;
@@ -1013,8 +1008,7 @@ store_all(int fd, const intel_ctx_t *ctx, int num_children, int timeout) execbuf.rsvd1 = ctx->id;memset (object,0 ,sizeof (object)); - object[0 ].handle =gem_create (fd,4096 ); -gem_write (fd, object[0 ].handle,0 , &bbe,sizeof (bbe)); + object[0 ].handle =batch_create (fd,4096 , region); execbuf.buffer_count =1 ;gem_execbuf (fd, &execbuf);
@@ -1156,7 +1150,7 @@ igt_mainconst struct {const char *name;void (*func)(int fd,const intel_ctx_t *ctx,unsigned int engine, -int num_children,int timeout); +int num_children,int timeout,uint32_t memregion);int num_children;int timeout; } all[] = {
@@ -1192,6 +1186,10 @@ igt_mainconst struct intel_execution_engine2 *e;const intel_ctx_t *ctx;int fd =-1 ; +struct drm_i915_query_memory_regions *query_info; +struct igt_collection *regions, *set; +char *sub_name; +uint32_t region; igt_fixture { fd =drm_open_driver (DRIVER_INTEL );
@@ -1201,47 +1199,121 @@ igt_main ctx =intel_ctx_create_all_physical (fd);igt_fork_hang_detector (fd); + query_info =gem_get_query_memory_regions (fd); +igt_assert (query_info); + set =get_memory_region_set (query_info, +I915_SYSTEM_MEMORY , +I915_DEVICE_MEMORY ); + }/* Legacy for selecting rings. */ for_each_test (t, individual) { igt_subtest_with_dynamic_f("%s", t->name) {for (const struct intel_execution_ring *l = intel_execution_rings; l->name; l++) { - igt_dynamic_f("%s", l->name) { - t->func (fd,intel_ctx_0 (fd),eb_ring (l), - t->num_children, t->timeout); +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); + igt_dynamic_f("%s", l->name) { + t->func (fd,intel_ctx_0 (fd),eb_ring (l), + t->num_children, + t->timeout, + region); + } +free (sub_name); } } } } - igt_subtest("basic-all") -sync_all (fd, ctx,1 ,2 ); - igt_subtest("basic-store-all") -store_all (fd, ctx,1 ,2 ); + igt_subtest_with_dynamic("basic-all") { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); + igt_dynamic_f("basic-all-%s", sub_name) +sync_all (fd, ctx,1 ,2 , region); +free (sub_name); + } + } + + igt_subtest_with_dynamic("basic-store-all") { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); + igt_dynamic_f("basic-store-all-%s", sub_name) +store_all (fd, ctx,1 ,2 , region); +free (sub_name); + } + } + + igt_subtest_with_dynamic("all") { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); + igt_dynamic_f("all-%s", sub_name) +sync_all (fd, ctx,1 ,20 , region); +free (sub_name); + } + } + + igt_subtest_with_dynamic("store-all") { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); + igt_dynamic_f("store-all-%s", sub_name) +store_all (fd, ctx,1 ,20 , region); +free (sub_name); + } + } - igt_subtest("all") -sync_all (fd, ctx,1 ,20 ); - igt_subtest("store-all") -store_all (fd, ctx,1 ,20 ); - igt_subtest("forked-all") -sync_all (fd, ctx, ncpus,20 ); - igt_subtest("forked-store-all") -store_all (fd, ctx, ncpus,20 ); + igt_subtest_with_dynamic("forked-all") { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); + igt_dynamic_f("forked-all-%s", sub_name) +sync_all (fd, ctx, ncpus,20 , region); +free (sub_name); + } + } + + igt_subtest_with_dynamic("forked-store-all") { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); + igt_dynamic_f("forked-store-all-%s", sub_name) +store_all (fd, ctx, ncpus,20 , region); +free (sub_name); + } + }for_each_test (t, all) { -igt_subtest_f ("%s" , t->name) - t->func(fd, ctx, ALL_ENGINES, t->num_children, t->timeout); + igt_subtest_with_dynamic_f("%s", t->name) { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); +igt_dynamic_f ("%s" , sub_name) + t->func(fd, ctx, ALL_ENGINES, t->num_children, + t->timeout, + region); +free (sub_name); + } + } }/* New way of selecting engines. */ for_each_test (t, individual) { igt_subtest_with_dynamic_f("%s", t->name) { -for_each_ctx_engine (fd, ctx, e) { - igt_dynamic_f("%s", e->name) { - t->func (fd, ctx, e->flags, - t->num_children, t->timeout); - } +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); +for_each_ctx_engine (fd, ctx, e) +igt_dynamic_f ("%s-%s" , e->name, sub_name) + t->func(fd, ctx, e->flags, + t->num_children, + t->timeout, + region); +free (sub_name); + } } }
@@ -1264,6 +1336,8 @@ igt_main } igt_fixture { +free (query_info); +igt_collection_destroy (set);igt_stop_hang_detector ();intel_ctx_destroy (fd, ctx);close (fd);
Signature · 1 line
2.32.0
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for tests/i915/gem_sync: Add support for local memory
== Series Details ==
== Series Details ==
Series: tests/i915/gem_sync: Add support for local memory
URL : https://patchwork.freedesktop.org/series/95437/
State : success
== Summary ==
CI Bug Log - changes from IGT_6229 -> IGTPW_6284
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/index.html
New tests
---------
New tests have been introduced between IGT_6229 and IGTPW_6284:
### New IGT tests (2) ###
* igt@gem_sync@basic-all@basic-all-smem:
- Statuses : 32 pass(s)
- Exec time: [2.03, 4.27] s
* igt@gem_sync@basic-each@smem:
- Statuses : 32 pass(s)
- Exec time: [2.05, 3.63] s
Known issues
------------
Here are the changes found in IGTPW_6284 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_cs_nop@nop-compute0:
- fi-ilk-650: NOTRUN -> [SKIP][1] ([fdo#109271]) +35 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/fi-ilk-650/igt@amdgpu/[email protected]
* igt@core_hotunplug@unbind-rebind:
- fi-bdw-samus: NOTRUN -> [WARN][2] ([i915#3718])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/fi-bdw-samus/igt@[email protected]
* igt@debugfs_test@read_all_entries:
- fi-kbl-soraka: [PASS][3] -> [DMESG-WARN][4] ([i915#1982] / [i915#262])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/fi-kbl-soraka/igt@debugfs_test@read_all_entries.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/fi-kbl-soraka/igt@debugfs_test@read_all_entries.html
* igt@i915_selftest@live@execlists:
- fi-bsw-kefka: [PASS][5] -> [INCOMPLETE][6] ([i915#2940])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/fi-bsw-kefka/igt@i915_selftest@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/fi-bsw-kefka/igt@i915_selftest@[email protected]
* igt@kms_chamelium@dp-hpd-fast:
- fi-ilk-650: NOTRUN -> [SKIP][7] ([fdo#109271] / [fdo#111827]) +8 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/fi-ilk-650/igt@[email protected]
* igt@kms_chamelium@hdmi-edid-read:
- fi-bdw-samus: NOTRUN -> [SKIP][8] ([fdo#109271] / [fdo#111827]) +8 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/fi-bdw-samus/igt@[email protected]
* igt@kms_flip@basic-flip-vs-modeset@c-dp1:
- fi-cfl-8109u: [PASS][9] -> [FAIL][10] ([i915#4165]) +1 similar issue
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/fi-cfl-8109u/igt@kms_flip@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/fi-cfl-8109u/igt@kms_flip@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-b:
- fi-cfl-8109u: [PASS][11] -> [DMESG-WARN][12] ([i915#295]) +18 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/fi-cfl-8109u/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/fi-cfl-8109u/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- fi-bdw-samus: NOTRUN -> [SKIP][13] ([fdo#109271]) +29 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/fi-bdw-samus/igt@[email protected]
* igt@prime_vgem@basic-userptr:
- fi-pnv-d510: NOTRUN -> [SKIP][14] ([fdo#109271]) +48 similar issues
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/fi-pnv-d510/igt@[email protected]
* igt@runner@aborted:
- fi-bsw-kefka: NOTRUN -> [FAIL][15] ([fdo#109271] / [i915#1436] / [i915#3428])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/fi-bsw-kefka/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_parallel@engines@userptr:
- fi-pnv-d510: [INCOMPLETE][16] ([i915#299]) -> [PASS][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/fi-pnv-d510/igt@gem_exec_parallel@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/fi-pnv-d510/igt@gem_exec_parallel@[email protected]
* igt@gem_exec_suspend@basic-s3:
- fi-bdw-samus: [INCOMPLETE][18] ([i915#146] / [i915#4173]) -> [PASS][19]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/fi-bdw-samus/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/fi-bdw-samus/igt@[email protected]
- fi-tgl-1115g4: [FAIL][20] ([i915#1888]) -> [PASS][21]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/fi-tgl-1115g4/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/fi-tgl-1115g4/igt@[email protected]
* igt@kms_chamelium@hdmi-edid-read:
- fi-kbl-7500u: [FAIL][22] ([i915#3449]) -> [PASS][23]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/fi-kbl-7500u/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/fi-kbl-7500u/igt@[email protected]
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#146]: https://gitlab.freedesktop.org/drm/intel/issues/146
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#262]: https://gitlab.freedesktop.org/drm/intel/issues/262
[i915#2940]: https://gitlab.freedesktop.org/drm/intel/issues/2940
[i915#295]: https://gitlab.freedesktop.org/drm/intel/issues/295
[i915#299]: https://gitlab.freedesktop.org/drm/intel/issues/299
[i915#3428]: https://gitlab.freedesktop.org/drm/intel/issues/3428
[i915#3449]: https://gitlab.freedesktop.org/drm/intel/issues/3449
[i915#3718]: https://gitlab.freedesktop.org/drm/intel/issues/3718
[i915#4165]: https://gitlab.freedesktop.org/drm/intel/issues/4165
[i915#4173]: https://gitlab.freedesktop.org/drm/intel/issues/4173
Participating hosts (33 -> 33)
------------------------------
Additional (1): fi-ilk-650
Missing (1): fi-bsw-cyan
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_6229 -> IGTPW_6284
CI-20190529: 20190529
CI_DRM_10681: fe9b639a95a08713c8ee4ef110ce6a6388c9f9f2 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_6284: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/index.html
IGT_6229: dff598c339a2da647f15c86d0015e16378c7ea9b @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/index.html
Patchwork
CI[igt-dev] ✗ Fi.CI.IGT: failure for tests/i915/gem_sync: Add support for local memory
In reply to [email protected]== Series Details ==
== Series Details ==
Series: tests/i915/gem_sync: Add support for local memory
URL : https://patchwork.freedesktop.org/series/95437/
State : failure
== Summary ==
CI Bug Log - changes from IGT_6229_full -> IGTPW_6284_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_6284_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_6284_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_6284/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_6284_full:
### IGT changes ###
#### Possible regressions ####
* igt@kms_ccs@pipe-c-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs:
- shard-tglb: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-tglb3/igt@kms_ccs@pipe-c-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb3/igt@kms_ccs@pipe-c-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs.html
New tests
---------
New tests have been introduced between IGT_6229_full and IGTPW_6284_full:
### New IGT tests (5) ###
* igt@gem_sync@basic-all@basic-all-smem:
- Statuses : 5 pass(s)
- Exec time: [2.08, 2.35] s
* igt@gem_sync@basic-each@smem:
- Statuses : 6 pass(s)
- Exec time: [2.06, 2.33] s
* igt@gem_sync@basic-many-each@smem:
- Statuses : 6 pass(s)
- Exec time: [2.20, 2.43] s
* igt@gem_sync@basic-store-all@basic-store-all-smem:
- Statuses : 5 pass(s)
- Exec time: [2.05, 3.84] s
* igt@gem_sync@basic-store-each@smem:
- Statuses : 6 pass(s)
- Exec time: [2.14, 2.97] s
Known issues
------------
Here are the changes found in IGTPW_6284_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_isolation@preservation-s3@rcs0:
- shard-kbl: [PASS][3] -> [INCOMPLETE][4] ([i915#794])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-kbl1/igt@gem_ctx_isolation@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl3/igt@gem_ctx_isolation@[email protected]
* igt@gem_ctx_persistence@idempotent:
- shard-snb: NOTRUN -> [SKIP][5] ([fdo#109271] / [i915#1099]) +5 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-snb2/igt@[email protected]
* igt@gem_eio@unwedge-stress:
- shard-tglb: NOTRUN -> [TIMEOUT][6] ([i915#2369] / [i915#3063] / [i915#3648])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb2/igt@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-kbl: [PASS][7] -> [FAIL][8] ([i915#2846])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-kbl4/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl4/igt@[email protected]
- shard-apl: NOTRUN -> [FAIL][9] ([i915#2846])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-apl2/igt@[email protected]
* igt@gem_exec_fair@basic-none@rcs0:
- shard-glk: [PASS][10] -> [FAIL][11] ([i915#2842]) +2 similar issues
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-glk5/igt@gem_exec_fair@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-glk6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vcs1:
- shard-iclb: NOTRUN -> [FAIL][12] ([i915#2842])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb4/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vcs1:
- shard-kbl: [PASS][13] -> [FAIL][14] ([i915#2842])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-kbl1/igt@gem_exec_fair@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl2/igt@gem_exec_fair@[email protected]
- shard-tglb: [PASS][15] -> [FAIL][16] ([i915#2842])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-tglb5/igt@gem_exec_fair@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-glk: NOTRUN -> [FAIL][17] ([i915#2842]) +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-glk6/igt@gem_exec_fair@[email protected]
- shard-tglb: NOTRUN -> [FAIL][18] ([i915#2842])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_flush@basic-batch-kernel-default-cmd:
- shard-snb: NOTRUN -> [SKIP][19] ([fdo#109271]) +475 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-snb5/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][20] ([fdo#109313])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb7/igt@[email protected]
* igt@gem_exec_suspend@basic-s3:
- shard-kbl: NOTRUN -> [DMESG-WARN][21] ([i915#180])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl1/igt@[email protected]
* igt@gem_pread@exhaustion:
- shard-apl: NOTRUN -> [WARN][22] ([i915#2658])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-apl6/igt@[email protected]
* igt@gem_render_copy@y-tiled-to-vebox-linear:
- shard-iclb: NOTRUN -> [SKIP][23] ([i915#768]) +1 similar issue
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb1/igt@[email protected]
* igt@gem_workarounds@suspend-resume-fd:
- shard-tglb: [PASS][24] -> [INCOMPLETE][25] ([i915#456])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-tglb2/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb7/igt@[email protected]
* igt@gen3_render_linear_blits:
- shard-tglb: NOTRUN -> [SKIP][26] ([fdo#109289]) +1 similar issue
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb7/igt@gen3_render_linear_blits.html
* igt@gen3_render_mixed_blits:
- shard-iclb: NOTRUN -> [SKIP][27] ([fdo#109289])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb3/igt@gen3_render_mixed_blits.html
* igt@gen9_exec_parse@bb-chained:
- shard-tglb: NOTRUN -> [SKIP][28] ([i915#2856])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb1/igt@[email protected]
* igt@i915_pm_dc@dc6-dpms:
- shard-tglb: NOTRUN -> [FAIL][29] ([i915#454])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb6/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [PASS][30] -> [FAIL][31] ([i915#454])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-iclb4/igt@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb3/igt@[email protected]
* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-dp:
- shard-apl: NOTRUN -> [SKIP][32] ([fdo#109271] / [i915#1937])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-apl2/igt@i915_pm_lpsp@[email protected]
* igt@i915_pm_rc6_residency@rc6-idle:
- shard-tglb: NOTRUN -> [WARN][33] ([i915#2681] / [i915#2684])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb8/igt@[email protected]
* igt@i915_pm_rpm@gem-execbuf-stress-pc8:
- shard-iclb: NOTRUN -> [SKIP][34] ([fdo#109293] / [fdo#109506])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb4/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][35] ([fdo#109506] / [i915#2411])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb1/igt@[email protected]
* igt@kms_atomic_transition@plane-all-modeset-transition:
- shard-iclb: NOTRUN -> [SKIP][36] ([i915#1769])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb4/igt@[email protected]
* igt@kms_big_fb@linear-32bpp-rotate-0:
- shard-glk: NOTRUN -> [DMESG-WARN][37] ([i915#118] / [i915#95])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-glk7/igt@[email protected]
* igt@kms_big_fb@x-tiled-16bpp-rotate-90:
- shard-iclb: NOTRUN -> [SKIP][38] ([fdo#110725] / [fdo#111614])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb8/igt@[email protected]
* igt@kms_big_fb@x-tiled-32bpp-rotate-180:
- shard-glk: [PASS][39] -> [DMESG-WARN][40] ([i915#118] / [i915#95])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-glk2/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-glk5/igt@[email protected]
* igt@kms_big_fb@x-tiled-8bpp-rotate-270:
- shard-tglb: NOTRUN -> [SKIP][41] ([fdo#111614]) +1 similar issue
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb2/igt@[email protected]
* igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-hflip:
- shard-apl: NOTRUN -> [SKIP][42] ([fdo#109271] / [i915#3777]) +1 similar issue
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-apl7/igt@[email protected]
* igt@kms_big_fb@yf-tiled-64bpp-rotate-0:
- shard-iclb: NOTRUN -> [SKIP][43] ([fdo#110723])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb4/igt@[email protected]
* igt@kms_big_joiner@2x-modeset:
- shard-iclb: NOTRUN -> [SKIP][44] ([i915#2705])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb5/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][45] ([i915#2705])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb6/igt@[email protected]
* igt@kms_ccs@pipe-a-bad-pixel-format-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][46] ([i915#3689] / [i915#3886]) +1 similar issue
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb1/igt@kms_ccs@pipe-a-bad-pixel-format-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-a-bad-rotation-90-y_tiled_gen12_rc_ccs_cc:
- shard-kbl: NOTRUN -> [SKIP][47] ([fdo#109271] / [i915#3886]) +7 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl1/igt@kms_ccs@pipe-a-bad-rotation-90-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-a-missing-ccs-buffer-y_tiled_gen12_rc_ccs_cc:
- shard-apl: NOTRUN -> [SKIP][48] ([fdo#109271] / [i915#3886]) +12 similar issues
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-apl6/igt@kms_ccs@pipe-a-missing-ccs-buffer-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-c-bad-pixel-format-y_tiled_gen12_rc_ccs_cc:
- shard-glk: NOTRUN -> [SKIP][49] ([fdo#109271] / [i915#3886])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-glk7/igt@kms_ccs@pipe-c-bad-pixel-format-y_tiled_gen12_rc_ccs_cc.html
- shard-iclb: NOTRUN -> [SKIP][50] ([fdo#109278] / [i915#3886])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb1/igt@kms_ccs@pipe-c-bad-pixel-format-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-d-bad-aux-stride-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][51] ([i915#3689]) +10 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb8/igt@kms_ccs@pipe-d-bad-aux-stride-y_tiled_gen12_mc_ccs.html
* igt@kms_chamelium@dp-hpd-fast:
- shard-glk: NOTRUN -> [SKIP][52] ([fdo#109271] / [fdo#111827]) +6 similar issues
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-glk5/igt@[email protected]
* igt@kms_chamelium@hdmi-audio:
- shard-iclb: NOTRUN -> [SKIP][53] ([fdo#109284] / [fdo#111827]) +6 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb3/igt@[email protected]
* igt@kms_chamelium@vga-hpd-without-ddc:
- shard-snb: NOTRUN -> [SKIP][54] ([fdo#109271] / [fdo#111827]) +28 similar issues
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-snb2/igt@[email protected]
* igt@kms_color_chamelium@pipe-a-degamma:
- shard-kbl: NOTRUN -> [SKIP][55] ([fdo#109271] / [fdo#111827]) +17 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl2/igt@[email protected]
* igt@kms_color_chamelium@pipe-b-ctm-0-5:
- shard-apl: NOTRUN -> [SKIP][56] ([fdo#109271] / [fdo#111827]) +15 similar issues
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-apl1/igt@[email protected]
* igt@kms_color_chamelium@pipe-b-ctm-limited-range:
- shard-tglb: NOTRUN -> [SKIP][57] ([fdo#109284] / [fdo#111827]) +9 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb7/igt@[email protected]
* igt@kms_color_chamelium@pipe-d-ctm-blue-to-red:
- shard-iclb: NOTRUN -> [SKIP][58] ([fdo#109278] / [fdo#109284] / [fdo#111827])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb1/igt@[email protected]
* igt@kms_concurrent@pipe-d:
- shard-tglb: NOTRUN -> [FAIL][59] ([i915#1385])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb1/igt@[email protected]
* igt@kms_content_protection@atomic-dpms:
- shard-apl: NOTRUN -> [TIMEOUT][60] ([i915#1319]) +1 similar issue
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-apl6/igt@[email protected]
* igt@kms_content_protection@dp-mst-lic-type-0:
- shard-iclb: NOTRUN -> [SKIP][61] ([i915#3116])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb5/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][62] ([i915#3116])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb3/igt@[email protected]
* igt@kms_content_protection@legacy:
- shard-kbl: NOTRUN -> [TIMEOUT][63] ([i915#1319])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl3/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][64] ([fdo#111828]) +1 similar issue
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb7/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-512x512-rapid-movement:
- shard-iclb: NOTRUN -> [SKIP][65] ([fdo#109278] / [fdo#109279]) +2 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb3/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-size-change:
- shard-glk: [PASS][66] -> [FAIL][67] ([i915#3444])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-glk8/igt@[email protected]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-glk6/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-32x10-random:
- shard-tglb: NOTRUN -> [SKIP][68] ([i915#3359]) +2 similar issues
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb1/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-32x32-random:
- shard-tglb: NOTRUN -> [SKIP][69] ([i915#3319]) +4 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb7/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-256x256-onscreen:
- shard-kbl: NOTRUN -> [SKIP][70] ([fdo#109271]) +207 similar issues
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl4/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-512x512-rapid-movement:
- shard-tglb: NOTRUN -> [SKIP][71] ([fdo#109279] / [i915#3359]) +3 similar issues
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb3/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-suspend:
- shard-tglb: [PASS][72] -> [INCOMPLETE][73] ([i915#2411] / [i915#4211])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-tglb6/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb7/igt@[email protected]
* igt@kms_cursor_edge_walk@pipe-d-256x256-left-edge:
- shard-iclb: NOTRUN -> [SKIP][74] ([fdo#109278]) +24 similar issues
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb2/igt@[email protected]
* igt@kms_cursor_legacy@cursora-vs-flipb-atomic:
- shard-iclb: NOTRUN -> [SKIP][75] ([fdo#109274] / [fdo#109278]) +3 similar issues
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb3/igt@[email protected]
* igt@kms_cursor_legacy@cursorb-vs-flipb-atomic:
- shard-tglb: NOTRUN -> [SKIP][76] ([fdo#111825]) +32 similar issues
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb2/igt@[email protected]
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-kbl: [PASS][77] -> [INCOMPLETE][78] ([i915#155] / [i915#180] / [i915#636])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-kbl1/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl7/igt@[email protected]
* igt@kms_fbcon_fbt@psr-suspend:
- shard-tglb: [PASS][79] -> [INCOMPLETE][80] ([i915#2411] / [i915#4173] / [i915#456])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-tglb1/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb7/igt@[email protected]
* igt@kms_flip@2x-flip-vs-wf_vblank-interruptible:
- shard-iclb: NOTRUN -> [SKIP][81] ([fdo#109274]) +5 similar issues
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb6/igt@kms_flip@2x-flip-vs-wf_vblank-interruptible.html
* igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile:
- shard-tglb: NOTRUN -> [SKIP][82] ([i915#2587])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb6/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-2p-primscrn-pri-shrfb-draw-mmap-wc:
- shard-iclb: NOTRUN -> [SKIP][83] ([fdo#109280]) +18 similar issues
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb2/igt@kms_frontbuffer_tracking@psr-2p-primscrn-pri-shrfb-draw-mmap-wc.html
* igt@kms_hdr@bpc-switch-suspend:
- shard-kbl: [PASS][84] -> [DMESG-WARN][85] ([i915#180]) +3 similar issues
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-kbl2/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl1/igt@[email protected]
* igt@kms_lease@invalid-create-leases:
- shard-kbl: NOTRUN -> [FAIL][86] ([i915#4262])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl2/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- shard-apl: NOTRUN -> [SKIP][87] ([fdo#109271] / [i915#533]) +1 similar issue
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-apl1/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc-pipe-d-frame-sequence:
- shard-kbl: NOTRUN -> [SKIP][88] ([fdo#109271] / [i915#533]) +1 similar issue
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-basic:
- shard-apl: NOTRUN -> [FAIL][89] ([fdo#108145] / [i915#265]) +3 similar issues
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-apl1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-transparent-fb:
- shard-glk: NOTRUN -> [FAIL][90] ([i915#265])
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-glk5/igt@[email protected]
- shard-apl: NOTRUN -> [FAIL][91] ([i915#265])
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-apl3/igt@[email protected]
- shard-kbl: NOTRUN -> [FAIL][92] ([i915#265])
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl6/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-alpha-opaque-fb:
- shard-kbl: NOTRUN -> [FAIL][93] ([fdo#108145] / [i915#265]) +3 similar issues
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-constant-alpha-max:
- shard-glk: NOTRUN -> [FAIL][94] ([fdo#108145] / [i915#265]) +1 similar issue
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-glk4/igt@[email protected]
* igt@kms_plane_cursor@pipe-d-viewport-size-256:
- shard-glk: NOTRUN -> [SKIP][95] ([fdo#109271]) +74 similar issues
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-glk7/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-y:
- shard-iclb: NOTRUN -> [SKIP][96] ([i915#3536]) +1 similar issue
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb1/igt@[email protected]
* igt@kms_plane_lowres@pipe-b-tiling-none:
- shard-tglb: NOTRUN -> [SKIP][97] ([i915#3536]) +3 similar issues
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb3/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-2:
- shard-glk: NOTRUN -> [SKIP][98] ([fdo#109271] / [i915#658])
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-glk3/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-4:
- shard-tglb: NOTRUN -> [SKIP][99] ([i915#2920]) +1 similar issue
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb3/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-4:
- shard-apl: NOTRUN -> [SKIP][100] ([fdo#109271] / [i915#658]) +5 similar issues
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-apl2/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-2:
- shard-kbl: NOTRUN -> [SKIP][101] ([fdo#109271] / [i915#658]) +1 similar issue
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl3/igt@[email protected]
* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: NOTRUN -> [SKIP][102] ([fdo#109441]) +3 similar issues
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb5/igt@kms_psr@psr2_primary_mmap_cpu.html
* igt@kms_psr@psr2_sprite_mmap_cpu:
- shard-tglb: NOTRUN -> [FAIL][103] ([i915#132] / [i915#3467]) +3 similar issues
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb8/igt@kms_psr@psr2_sprite_mmap_cpu.html
* igt@kms_psr@psr2_sprite_plane_onoff:
- shard-iclb: [PASS][104] -> [SKIP][105] ([fdo#109441]) +1 similar issue
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-iclb2/igt@kms_psr@psr2_sprite_plane_onoff.html
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb5/igt@kms_psr@psr2_sprite_plane_onoff.html
* igt@kms_rotation_crc@primary-yf-tiled-reflect-x-0:
- shard-tglb: NOTRUN -> [SKIP][106] ([fdo#111615]) +4 similar issues
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb2/igt@[email protected]
* igt@kms_setmode@basic:
- shard-snb: NOTRUN -> [FAIL][107] ([i915#31])
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-snb2/igt@[email protected]
* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-kbl: [PASS][108] -> [DMESG-WARN][109] ([i915#180] / [i915#295])
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-kbl1/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl3/igt@[email protected]
* igt@kms_vblank@pipe-d-ts-continuation-idle:
- shard-apl: NOTRUN -> [SKIP][110] ([fdo#109271]) +283 similar issues
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-apl6/igt@[email protected]
* igt@kms_writeback@writeback-fb-id:
- shard-glk: NOTRUN -> [SKIP][111] ([fdo#109271] / [i915#2437])
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-glk9/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][112] ([i915#2437])
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb6/igt@[email protected]
* igt@kms_writeback@writeback-pixel-formats:
- shard-kbl: NOTRUN -> [SKIP][113] ([fdo#109271] / [i915#2437])
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl4/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][114] ([fdo#109271] / [i915#2437])
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-apl6/igt@[email protected]
* igt@nouveau_crc@pipe-c-source-rg:
- shard-iclb: NOTRUN -> [SKIP][115] ([i915#2530]) +1 similar issue
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb7/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][116] ([i915#2530])
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb7/igt@[email protected]
* igt@perf_pmu@event-wait@rcs0:
- shard-tglb: NOTRUN -> [SKIP][117] ([fdo#112283])
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb5/igt@perf_pmu@[email protected]
* igt@prime_nv_pcopy@test3_4:
- shard-tglb: NOTRUN -> [SKIP][118] ([fdo#109291]) +1 similar issue
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-tglb1/igt@prime_nv_pcopy@test3_4.html
* igt@sysfs_clients@fair-3:
- shard-kbl: NOTRUN -> [SKIP][119] ([fdo#109271] / [i915#2994])
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl7/igt@[email protected]
* igt@sysfs_clients@pidname:
- shard-apl: NOTRUN -> [SKIP][120] ([fdo#109271] / [i915#2994]) +3 similar issues
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-apl3/igt@[email protected]
#### Possible fixes ####
* igt@gem_eio@unwedge-stress:
- shard-iclb: [TIMEOUT][121] ([i915#2369] / [i915#2481] / [i915#3070]) -> [PASS][122]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-iclb5/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb1/igt@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-glk: [FAIL][123] ([i915#2846]) -> [PASS][124]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-glk3/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-glk1/igt@[email protected]
* igt@gem_exec_fair@basic-pace@rcs0:
- shard-kbl: [FAIL][125] ([i915#2842]) -> [PASS][126]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-kbl1/igt@gem_exec_fair@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-kbl2/igt@gem_exec_fair@[email protected]
- shard-glk: [FAIL][127] ([i915#2842]) -> [PASS][128]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-glk7/igt@gem_exec_fair@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-glk5/igt@gem_exec_fair@[email protected]
* igt@i915_pm_dc@dc9-dpms:
- shard-iclb: [SKIP][129] -> [PASS][130]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-iclb3/igt@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-iclb6/igt@[email protected]
* igt@i915_suspend@debugfs-reader:
- shard-apl: [DMESG-WARN][131] ([i915#180]) -> [PASS][132] +1 similar issue
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6229/shard-apl7/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/shard-apl6/igt@[email protected]
* igt@kms_big
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6284/index.html
Quoted 436 lines · On Tue, Oct 05, 2021 at 10:44:48AM +0530, [email protected] wrote:
From: Ch Sai Gowtham <[email protected]>
Add support for local memory region (Device memory)
Signed-off-by Ch Sai Gowtham <[email protected]>Cc Zbigniew Kempczyński <[email protected]>--- tests/i915/gem_sync.c | 198 +++++++++++++++++++++++++++++------------- 1 file changed, 136 insertions(+), 62 deletions(-)tests/i915/gem_sync.c +124
-62@@ -143,9 +143,20 @@ static void xchg_engine(void *array, unsigned i, unsigned j)igt_swap (E [i],E [j]); } +static uint32_t batch_create (int fd,uint32_t batch_size,uint32_t region) +{ +const uint32_t bbe =MI_BATCH_BUFFER_END ; +uint32_t handle; + + handle =gem_create_in_memory_regions (fd,4096 , region); +gem_write (fd, handle,0 , &bbe,sizeof (bbe)); + +return handle; +} +static void sync_ring (int fd,const intel_ctx_t *ctx, -unsigned ring,int num_children,int timeout) +unsigned ring,int num_children,int timeout,uint32_t region) {struct intel_engine_data ied;@@ -155,15 +166,13 @@ sync_ring(int fd, const intel_ctx_t *ctx,intel_detect_and_clear_missed_interrupts (fd); igt_fork(child, num_children) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object;struct drm_i915_gem_execbuffer2 execbuf;double start, elapsed;unsigned long cycles;memset (&object,0 ,sizeof (object)); - object.handle =gem_create (fd,4096 ); -gem_write (fd, object.handle,0 , &bbe,sizeof (bbe)); + object.handle =batch_create (fd,4096 , region);memset (&execbuf,0 ,sizeof (execbuf)); execbuf.buffers_ptr =to_user_pointer (&object);@@ -193,9 +202,8 @@ sync_ring(int fd, const intel_ctx_t *ctx,static void idle_ring (int fd,const intel_ctx_t *ctx,unsigned int ring, -int num_children,int timeout) +int num_children,int timeout,uint32_t region) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object;struct drm_i915_gem_execbuffer2 execbuf;double start, elapsed;@@ -204,8 +212,7 @@ idle_ring(int fd, const intel_ctx_t *ctx, unsigned int ring,gem_require_ring (fd, ring);memset (&object,0 ,sizeof (object)); - object.handle =gem_create (fd,4096 ); -gem_write (fd, object.handle,0 , &bbe,sizeof (bbe)); + object.handle =batch_create (fd,4096 , region);memset (&execbuf,0 ,sizeof (execbuf)); execbuf.buffers_ptr =to_user_pointer (&object);@@ -234,7 +241,7 @@ idle_ring(int fd, const intel_ctx_t *ctx, unsigned int ring,static void wakeup_ring (int fd,const intel_ctx_t *ctx,unsigned ring, -int timeout,int wlen) +int timeout,int wlen,uint32_t region) {struct intel_engine_data ied;@@ -243,7 +250,6 @@ wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring,intel_detect_and_clear_missed_interrupts (fd); igt_fork(child, ied.nengines) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object;struct drm_i915_gem_execbuffer2 execbuf;double end, this, elapsed, now, baseline;@@ -251,8 +257,7 @@ wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring,igt_spin_t *spin;memset (&object,0 ,sizeof (object)); - object.handle =gem_create (fd,4096 ); -gem_write (fd, object.handle,0 , &bbe,sizeof (bbe)); + object.handle =batch_create (fd,4096 , region);memset (&execbuf,0 ,sizeof (execbuf)); execbuf.buffers_ptr =to_user_pointer (&object);@@ -329,7 +334,7 @@ wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring, }static void active_ring (int fd,const intel_ctx_t *ctx,unsigned int ring, -int num_children,int timeout) +int num_children,int timeout,uint32_t region) {struct intel_engine_data ied;@@ -381,7 +386,7 @@ static void active_ring(int fd, const intel_ctx_t *ctx, unsigned int ring,static void active_wakeup_ring (int fd,const intel_ctx_t *ctx,unsigned ring, -int timeout,int wlen) +int timeout,int wlen,uint32_t region) {struct intel_engine_data ied;@@ -390,7 +395,6 @@ active_wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring,intel_detect_and_clear_missed_interrupts (fd); igt_fork(child, ied.nengines) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object;struct drm_i915_gem_execbuffer2 execbuf;double end, this, elapsed, now, baseline;@@ -398,8 +402,7 @@ active_wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring,igt_spin_t *spin[2 ];memset (&object,0 ,sizeof (object)); - object.handle =gem_create (fd,4096 ); -gem_write (fd, object.handle,0 , &bbe,sizeof (bbe)); + object.handle =batch_create (fd,4096 , region);memset (&execbuf,0 ,sizeof (execbuf)); execbuf.buffers_ptr =to_user_pointer (&object);@@ -497,7 +500,7 @@ active_wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring,static void store_ring (int fd,const intel_ctx_t *ctx,unsigned ring, -int num_children,int timeout) +int num_children,int timeout,uint32_t region) {const unsigned int gen =intel_gen (intel_get_drm_devid (fd));struct intel_engine_data ied;@@ -508,7 +511,6 @@ store_ring(int fd, const intel_ctx_t *ctx, unsigned ring,intel_detect_and_clear_missed_interrupts (fd); igt_fork(child, num_children) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object[2 ];struct drm_i915_gem_relocation_entry reloc[1024 ];struct drm_i915_gem_execbuffer2 execbuf;@@ -526,8 +528,7 @@ store_ring(int fd, const intel_ctx_t *ctx, unsigned ring, execbuf.rsvd1 = ctx->id;memset (object,0 ,sizeof (object)); - object[0 ].handle =gem_create (fd,4096 ); -gem_write (fd, object[0 ].handle,0 , &bbe,sizeof (bbe)); + object[0 ].handle =batch_create (fd,4096 , region); execbuf.buffer_count =1 ;gem_execbuf (fd, &execbuf);@@ -595,7 +596,7 @@ store_ring(int fd, const intel_ctx_t *ctx, unsigned ring,static void switch_ring (int fd,const intel_ctx_t *ctx,unsigned ring, -int num_children,int timeout) +int num_children,int timeout,uint32_t region) {const unsigned int gen =intel_gen (intel_get_drm_devid (fd));struct intel_engine_data ied;@@ -618,7 +619,6 @@ switch_ring(int fd, const intel_ctx_t *ctx, unsigned ring,unsigned long cycles;for (int i =0 ; i <ARRAY_SIZE (contexts); i++) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;const uint32_t sz =32 <<10 ;struct context *c = &contexts[i];uint32_t *batch, *b;@@ -635,8 +635,7 @@ switch_ring(int fd, const intel_ctx_t *ctx, unsigned ring, c->execbuf.rsvd1 = c->ctx->id;memset (c->object,0 ,sizeof (c->object)); - c->object[0 ].handle =gem_create (fd,4096 ); -gem_write (fd, c->object[0 ].handle,0 , &bbe,sizeof (bbe)); + c->object[0 ].handle =batch_create (fd,4096 , region); c->execbuf.buffer_count =1 ;gem_execbuf (fd, &c->execbuf);@@ -778,10 +777,9 @@ static void *waiter(void *arg)static void __store_many (int fd,const intel_ctx_t *ctx,unsigned ring, -int timeout,unsigned long *cycles) +int timeout,unsigned long *cycles,uint32_t region) {const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object[2 ];struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_relocation_entry reloc[1024 ];@@ -800,8 +798,7 @@ __store_many(int fd, const intel_ctx_t *ctx, unsigned ring, execbuf.rsvd1 = ctx->id;memset (object,0 ,sizeof (object)); - object[0 ].handle =gem_create (fd,4096 ); -gem_write (fd, object[0 ].handle,0 , &bbe,sizeof (bbe)); + object[0 ].handle =batch_create (fd,4096 , region); execbuf.buffer_count =1 ;gem_execbuf (fd, &execbuf); object[0 ].flags |=EXEC_OBJECT_WRITE ;@@ -908,7 +905,7 @@ __store_many(int fd, const intel_ctx_t *ctx, unsigned ring,static void store_many (int fd,const intel_ctx_t *ctx,unsigned int ring, -int num_children,int timeout) +int num_children,int timeout,uint32_t region) {struct intel_engine_data ied;unsigned long *shared;@@ -926,7 +923,8 @@ store_many(int fd, const intel_ctx_t *ctx, unsigned int ring,__store_many (fd, ctx,ied_flags (&ied, n), timeout, - &shared[n]); + &shared[n], + region); }igt_waitchildren ();@@ -939,7 +937,7 @@ store_many(int fd, const intel_ctx_t *ctx, unsigned int ring, }static void -sync_all (int fd,const intel_ctx_t *ctx,int num_children,int timeout) +sync_all (int fd,const intel_ctx_t *ctx,int num_children,int timeout,uint32_t region) {struct intel_engine_data ied;@@ -948,15 +946,13 @@ sync_all(int fd, const intel_ctx_t *ctx, int num_children, int timeout)intel_detect_and_clear_missed_interrupts (fd); igt_fork(child, num_children) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object;struct drm_i915_gem_execbuffer2 execbuf;double start, elapsed;unsigned long cycles;memset (&object,0 ,sizeof (object)); - object.handle =gem_create (fd,4096 ); -gem_write (fd, object.handle,0 , &bbe,sizeof (bbe)); + object.handle =batch_create (fd,4096 , region);memset (&execbuf,0 ,sizeof (execbuf)); execbuf.buffers_ptr =to_user_pointer (&object);@@ -986,7 +982,7 @@ sync_all(int fd, const intel_ctx_t *ctx, int num_children, int timeout) }static void -store_all (int fd,const intel_ctx_t *ctx,int num_children,int timeout) +store_all (int fd,const intel_ctx_t *ctx,int num_children,int timeout,uint32_t region) {const unsigned int gen =intel_gen (intel_get_drm_devid (fd));struct intel_engine_data ied;@@ -996,7 +992,6 @@ store_all(int fd, const intel_ctx_t *ctx, int num_children, int timeout)intel_detect_and_clear_missed_interrupts (fd); igt_fork(child, num_children) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object[2 ];struct drm_i915_gem_relocation_entry reloc[1024 ];struct drm_i915_gem_execbuffer2 execbuf;@@ -1013,8 +1008,7 @@ store_all(int fd, const intel_ctx_t *ctx, int num_children, int timeout) execbuf.rsvd1 = ctx->id;memset (object,0 ,sizeof (object)); - object[0 ].handle =gem_create (fd,4096 ); -gem_write (fd, object[0 ].handle,0 , &bbe,sizeof (bbe)); + object[0 ].handle =batch_create (fd,4096 , region); execbuf.buffer_count =1 ;gem_execbuf (fd, &execbuf);@@ -1156,7 +1150,7 @@ igt_mainconst struct {const char *name;void (*func)(int fd,const intel_ctx_t *ctx,unsigned int engine, -int num_children,int timeout); +int num_children,int timeout,uint32_t memregion);int num_children;int timeout; } all[] = {@@ -1192,6 +1186,10 @@ igt_mainconst struct intel_execution_engine2 *e;const intel_ctx_t *ctx;int fd =-1 ; +struct drm_i915_query_memory_regions *query_info; +struct igt_collection *regions, *set; +char *sub_name; +uint32_t region; igt_fixture { fd =drm_open_driver (DRIVER_INTEL );@@ -1201,47 +1199,121 @@ igt_main ctx =intel_ctx_create_all_physical (fd);igt_fork_hang_detector (fd); + query_info =gem_get_query_memory_regions (fd); +igt_assert (query_info); + set =get_memory_region_set (query_info, +I915_SYSTEM_MEMORY , +I915_DEVICE_MEMORY ); + }/* Legacy for selecting rings. */ for_each_test (t, individual) { igt_subtest_with_dynamic_f("%s", t->name) {for (const struct intel_execution_ring *l = intel_execution_rings; l->name; l++) { - igt_dynamic_f("%s", l->name) { - t->func (fd,intel_ctx_0 (fd),eb_ring (l), - t->num_children, t->timeout); +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); + igt_dynamic_f("%s", l->name) { + t->func (fd,intel_ctx_0 (fd),eb_ring (l), + t->num_children, + t->timeout, + region); + } +free (sub_name); } } } } - igt_subtest("basic-all") -sync_all (fd, ctx,1 ,2 ); - igt_subtest("basic-store-all") -store_all (fd, ctx,1 ,2 ); + igt_subtest_with_dynamic("basic-all") { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); + igt_dynamic_f("basic-all-%s", sub_name) +sync_all (fd, ctx,1 ,2 , region); +free (sub_name); + } + } + + igt_subtest_with_dynamic("basic-store-all") { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); + igt_dynamic_f("basic-store-all-%s", sub_name) +store_all (fd, ctx,1 ,2 , region); +free (sub_name); + } + } + + igt_subtest_with_dynamic("all") { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); + igt_dynamic_f("all-%s", sub_name) +sync_all (fd, ctx,1 ,20 , region); +free (sub_name); + } + } + + igt_subtest_with_dynamic("store-all") { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); + igt_dynamic_f("store-all-%s", sub_name) +store_all (fd, ctx,1 ,20 , region); +free (sub_name); + } + } - igt_subtest("all") -sync_all (fd, ctx,1 ,20 ); - igt_subtest("store-all") -store_all (fd, ctx,1 ,20 ); - igt_subtest("forked-all") -sync_all (fd, ctx, ncpus,20 ); - igt_subtest("forked-store-all") -store_all (fd, ctx, ncpus,20 ); + igt_subtest_with_dynamic("forked-all") { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); + igt_dynamic_f("forked-all-%s", sub_name) +sync_all (fd, ctx, ncpus,20 , region); +free (sub_name); + } + } + + igt_subtest_with_dynamic("forked-store-all") { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); + igt_dynamic_f("forked-store-all-%s", sub_name) +store_all (fd, ctx, ncpus,20 , region); +free (sub_name); + } + }for_each_test (t, all) { -igt_subtest_f ("%s" , t->name) - t->func(fd, ctx, ALL_ENGINES, t->num_children, t->timeout); + igt_subtest_with_dynamic_f("%s", t->name) { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); +igt_dynamic_f ("%s" , sub_name) + t->func(fd, ctx, ALL_ENGINES, t->num_children, + t->timeout, + region); +free (sub_name); + } + } }/* New way of selecting engines. */ for_each_test (t, individual) { igt_subtest_with_dynamic_f("%s", t->name) { -for_each_ctx_engine (fd, ctx, e) { - igt_dynamic_f("%s", e->name) { - t->func (fd, ctx, e->flags, - t->num_children, t->timeout); - } +for_each_combination (regions,1 , set) {
tests/i915/gem_sync.c igt_main · line 1316
Quoted 10 lines
tests/i915/gem_sync.c +10
-0+ sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); +for_each_ctx_engine (fd, ctx, e) +igt_dynamic_f ("%s-%s" , e->name, sub_name) + t->func(fd, ctx, e->flags, + t->num_children, + t->timeout, + region); +free (sub_name); +
I got some doubts regarding the idea of the change. Batch is taken from different regions but in some tests target buffers still are taken from system memory. It would be nice to mix regions (variations with repetitions) when batch + target buffer are used together in the test.
For gen12+ with integrated cards test will likely run correctly only on TGL (reloc patch in core-for-CI for RKL/ADL is temporary) so you can expect failure when it will be removed on gens > TGL.
Code should also be rewritten to use allocator and no-reloc
- if you would run this on DG1 you may expect failure here.
Shape of subtest naming change to use igt_collection is ok, just no-reloc + mixing regions are my main concern.
--
Zbigniew
Quoted 15 lines
tests/i915/gem_sync.c +2
-0} } }@@ -1264,6 +1336,8 @@ igt_main } igt_fixture { +free (query_info); +igt_collection_destroy (set);igt_stop_hang_detector ();intel_ctx_destroy (fd, ctx);close (fd);Signature · 1 line
2.32.0
Quoted 318 lines · On Tue, Oct 05, 2021 at 10:44:48AM +0530, [email protected] wrote:
From: Ch Sai Gowtham <[email protected]>
Add support for local memory region (Device memory)
Signed-off-by Ch Sai Gowtham <[email protected]>Cc Zbigniew Kempczyński <[email protected]>--- tests/i915/gem_sync.c | 198 +++++++++++++++++++++++++++++------------- 1 file changed, 136 insertions(+), 62 deletions(-)tests/i915/gem_sync.c +44
-40@@ -143,9 +143,20 @@ static void xchg_engine(void *array, unsigned i, unsigned j)igt_swap (E [i],E [j]); } +static uint32_t batch_create (int fd,uint32_t batch_size,uint32_t region) +{ +const uint32_t bbe =MI_BATCH_BUFFER_END ; +uint32_t handle; + + handle =gem_create_in_memory_regions (fd,4096 , region); +gem_write (fd, handle,0 , &bbe,sizeof (bbe)); + +return handle; +} +static void sync_ring (int fd,const intel_ctx_t *ctx, -unsigned ring,int num_children,int timeout) +unsigned ring,int num_children,int timeout,uint32_t region) {struct intel_engine_data ied;@@ -155,15 +166,13 @@ sync_ring(int fd, const intel_ctx_t *ctx,intel_detect_and_clear_missed_interrupts (fd); igt_fork(child, num_children) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object;struct drm_i915_gem_execbuffer2 execbuf;double start, elapsed;unsigned long cycles;memset (&object,0 ,sizeof (object)); - object.handle =gem_create (fd,4096 ); -gem_write (fd, object.handle,0 , &bbe,sizeof (bbe)); + object.handle =batch_create (fd,4096 , region);memset (&execbuf,0 ,sizeof (execbuf)); execbuf.buffers_ptr =to_user_pointer (&object);@@ -193,9 +202,8 @@ sync_ring(int fd, const intel_ctx_t *ctx,static void idle_ring (int fd,const intel_ctx_t *ctx,unsigned int ring, -int num_children,int timeout) +int num_children,int timeout,uint32_t region) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object;struct drm_i915_gem_execbuffer2 execbuf;double start, elapsed;@@ -204,8 +212,7 @@ idle_ring(int fd, const intel_ctx_t *ctx, unsigned int ring,gem_require_ring (fd, ring);memset (&object,0 ,sizeof (object)); - object.handle =gem_create (fd,4096 ); -gem_write (fd, object.handle,0 , &bbe,sizeof (bbe)); + object.handle =batch_create (fd,4096 , region);memset (&execbuf,0 ,sizeof (execbuf)); execbuf.buffers_ptr =to_user_pointer (&object);@@ -234,7 +241,7 @@ idle_ring(int fd, const intel_ctx_t *ctx, unsigned int ring,static void wakeup_ring (int fd,const intel_ctx_t *ctx,unsigned ring, -int timeout,int wlen) +int timeout,int wlen,uint32_t region) {struct intel_engine_data ied;@@ -243,7 +250,6 @@ wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring,intel_detect_and_clear_missed_interrupts (fd); igt_fork(child, ied.nengines) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object;struct drm_i915_gem_execbuffer2 execbuf;double end, this, elapsed, now, baseline;@@ -251,8 +257,7 @@ wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring,igt_spin_t *spin;memset (&object,0 ,sizeof (object)); - object.handle =gem_create (fd,4096 ); -gem_write (fd, object.handle,0 , &bbe,sizeof (bbe)); + object.handle =batch_create (fd,4096 , region);memset (&execbuf,0 ,sizeof (execbuf)); execbuf.buffers_ptr =to_user_pointer (&object);@@ -329,7 +334,7 @@ wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring, }static void active_ring (int fd,const intel_ctx_t *ctx,unsigned int ring, -int num_children,int timeout) +int num_children,int timeout,uint32_t region) {struct intel_engine_data ied;@@ -381,7 +386,7 @@ static void active_ring(int fd, const intel_ctx_t *ctx, unsigned int ring,static void active_wakeup_ring (int fd,const intel_ctx_t *ctx,unsigned ring, -int timeout,int wlen) +int timeout,int wlen,uint32_t region) {struct intel_engine_data ied;@@ -390,7 +395,6 @@ active_wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring,intel_detect_and_clear_missed_interrupts (fd); igt_fork(child, ied.nengines) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object;struct drm_i915_gem_execbuffer2 execbuf;double end, this, elapsed, now, baseline;@@ -398,8 +402,7 @@ active_wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring,igt_spin_t *spin[2 ];memset (&object,0 ,sizeof (object)); - object.handle =gem_create (fd,4096 ); -gem_write (fd, object.handle,0 , &bbe,sizeof (bbe)); + object.handle =batch_create (fd,4096 , region);memset (&execbuf,0 ,sizeof (execbuf)); execbuf.buffers_ptr =to_user_pointer (&object);@@ -497,7 +500,7 @@ active_wakeup_ring(int fd, const intel_ctx_t *ctx, unsigned ring,static void store_ring (int fd,const intel_ctx_t *ctx,unsigned ring, -int num_children,int timeout) +int num_children,int timeout,uint32_t region) {const unsigned int gen =intel_gen (intel_get_drm_devid (fd));struct intel_engine_data ied;@@ -508,7 +511,6 @@ store_ring(int fd, const intel_ctx_t *ctx, unsigned ring,intel_detect_and_clear_missed_interrupts (fd); igt_fork(child, num_children) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object[2 ];struct drm_i915_gem_relocation_entry reloc[1024 ];struct drm_i915_gem_execbuffer2 execbuf;@@ -526,8 +528,7 @@ store_ring(int fd, const intel_ctx_t *ctx, unsigned ring, execbuf.rsvd1 = ctx->id;memset (object,0 ,sizeof (object)); - object[0 ].handle =gem_create (fd,4096 ); -gem_write (fd, object[0 ].handle,0 , &bbe,sizeof (bbe)); + object[0 ].handle =batch_create (fd,4096 , region); execbuf.buffer_count =1 ;gem_execbuf (fd, &execbuf);@@ -595,7 +596,7 @@ store_ring(int fd, const intel_ctx_t *ctx, unsigned ring,static void switch_ring (int fd,const intel_ctx_t *ctx,unsigned ring, -int num_children,int timeout) +int num_children,int timeout,uint32_t region) {const unsigned int gen =intel_gen (intel_get_drm_devid (fd));struct intel_engine_data ied;@@ -618,7 +619,6 @@ switch_ring(int fd, const intel_ctx_t *ctx, unsigned ring,unsigned long cycles;for (int i =0 ; i <ARRAY_SIZE (contexts); i++) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;const uint32_t sz =32 <<10 ;struct context *c = &contexts[i];uint32_t *batch, *b;@@ -635,8 +635,7 @@ switch_ring(int fd, const intel_ctx_t *ctx, unsigned ring, c->execbuf.rsvd1 = c->ctx->id;memset (c->object,0 ,sizeof (c->object)); - c->object[0 ].handle =gem_create (fd,4096 ); -gem_write (fd, c->object[0 ].handle,0 , &bbe,sizeof (bbe)); + c->object[0 ].handle =batch_create (fd,4096 , region); c->execbuf.buffer_count =1 ;gem_execbuf (fd, &c->execbuf);@@ -778,10 +777,9 @@ static void *waiter(void *arg)static void __store_many (int fd,const intel_ctx_t *ctx,unsigned ring, -int timeout,unsigned long *cycles) +int timeout,unsigned long *cycles,uint32_t region) {const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object[2 ];struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_relocation_entry reloc[1024 ];@@ -800,8 +798,7 @@ __store_many(int fd, const intel_ctx_t *ctx, unsigned ring, execbuf.rsvd1 = ctx->id;memset (object,0 ,sizeof (object)); - object[0 ].handle =gem_create (fd,4096 ); -gem_write (fd, object[0 ].handle,0 , &bbe,sizeof (bbe)); + object[0 ].handle =batch_create (fd,4096 , region); execbuf.buffer_count =1 ;gem_execbuf (fd, &execbuf); object[0 ].flags |=EXEC_OBJECT_WRITE ;@@ -908,7 +905,7 @@ __store_many(int fd, const intel_ctx_t *ctx, unsigned ring,static void store_many (int fd,const intel_ctx_t *ctx,unsigned int ring, -int num_children,int timeout) +int num_children,int timeout,uint32_t region) {struct intel_engine_data ied;unsigned long *shared;@@ -926,7 +923,8 @@ store_many(int fd, const intel_ctx_t *ctx, unsigned int ring,__store_many (fd, ctx,ied_flags (&ied, n), timeout, - &shared[n]); + &shared[n], + region); }igt_waitchildren ();@@ -939,7 +937,7 @@ store_many(int fd, const intel_ctx_t *ctx, unsigned int ring, }static void -sync_all (int fd,const intel_ctx_t *ctx,int num_children,int timeout) +sync_all (int fd,const intel_ctx_t *ctx,int num_children,int timeout,uint32_t region) {struct intel_engine_data ied;@@ -948,15 +946,13 @@ sync_all(int fd, const intel_ctx_t *ctx, int num_children, int timeout)intel_detect_and_clear_missed_interrupts (fd); igt_fork(child, num_children) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object;struct drm_i915_gem_execbuffer2 execbuf;double start, elapsed;unsigned long cycles;memset (&object,0 ,sizeof (object)); - object.handle =gem_create (fd,4096 ); -gem_write (fd, object.handle,0 , &bbe,sizeof (bbe)); + object.handle =batch_create (fd,4096 , region);memset (&execbuf,0 ,sizeof (execbuf)); execbuf.buffers_ptr =to_user_pointer (&object);@@ -986,7 +982,7 @@ sync_all(int fd, const intel_ctx_t *ctx, int num_children, int timeout) }static void -store_all (int fd,const intel_ctx_t *ctx,int num_children,int timeout) +store_all (int fd,const intel_ctx_t *ctx,int num_children,int timeout,uint32_t region) {const unsigned int gen =intel_gen (intel_get_drm_devid (fd));struct intel_engine_data ied;@@ -996,7 +992,6 @@ store_all(int fd, const intel_ctx_t *ctx, int num_children, int timeout)intel_detect_and_clear_missed_interrupts (fd); igt_fork(child, num_children) { -const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object[2 ];struct drm_i915_gem_relocation_entry reloc[1024 ];struct drm_i915_gem_execbuffer2 execbuf;@@ -1013,8 +1008,7 @@ store_all(int fd, const intel_ctx_t *ctx, int num_children, int timeout) execbuf.rsvd1 = ctx->id;memset (object,0 ,sizeof (object)); - object[0 ].handle =gem_create (fd,4096 ); -gem_write (fd, object[0 ].handle,0 , &bbe,sizeof (bbe)); + object[0 ].handle =batch_create (fd,4096 , region); execbuf.buffer_count =1 ;gem_execbuf (fd, &execbuf);@@ -1156,7 +1150,7 @@ igt_mainconst struct {const char *name;void (*func)(int fd,const intel_ctx_t *ctx,unsigned int engine, -int num_children,int timeout); +int num_children,int timeout,uint32_t memregion);int num_children;int timeout; } all[] = {@@ -1192,6 +1186,10 @@ igt_mainconst struct intel_execution_engine2 *e;const intel_ctx_t *ctx;int fd =-1 ; +struct drm_i915_query_memory_regions *query_info; +struct igt_collection *regions, *set; +char *sub_name; +uint32_t region; igt_fixture { fd =drm_open_driver (DRIVER_INTEL );@@ -1201,47 +1199,121 @@ igt_main ctx =intel_ctx_create_all_physical (fd);igt_fork_hang_detector (fd); + query_info =gem_get_query_memory_regions (fd); +igt_assert (query_info); + set =get_memory_region_set (query_info, +I915_SYSTEM_MEMORY , +I915_DEVICE_MEMORY ); + }/* Legacy for selecting rings. */
tests/i915/gem_sync.c igt_main · line 1217
Quoted 10 lines
tests/i915/gem_sync.c +4
-3for_each_test (t, individual) { igt_subtest_with_dynamic_f("%s", t->name) {for (const struct intel_execution_ring *l = intel_execution_rings; l->name; l++) { - igt_dynamic_f("%s", l->name) { - t->func (fd,intel_ctx_0 (fd),eb_ring (l), - t->num_children, t->timeout); +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); + igt_dynamic_f("%s", l->name) {
Did you mean to use sub_name here somewhere?
Quoted 10 lines
tests/i915/gem_sync.c +6
-0+ t->func (fd,intel_ctx_0 (fd),eb_ring (l), + t->num_children, + t->timeout, + region); + } +free (sub_name); } } } }
tests/i915/gem_sync.c igt_main · line 1233
Quoted 10 lines
tests/i915/gem_sync.c +5
-4- igt_subtest("basic-all") -sync_all (fd, ctx,1 ,2 ); - igt_subtest("basic-store-all") -store_all (fd, ctx,1 ,2 ); + igt_subtest_with_dynamic("basic-all") { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); +igt_dynamic_f ("basic-all-%s" , sub_name)
Don't repeat "basic-all".
tests/i915/gem_sync.c igt_main · line 1243
Quoted 10 lines
tests/i915/gem_sync.c +10
-0+sync_all (fd, ctx,1 ,2 , region); +free (sub_name); + } + } + + igt_subtest_with_dynamic("basic-store-all") { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); +igt_dynamic_f ("basic-store-all-%s" , sub_name)
Same here.
tests/i915/gem_sync.c igt_main · line 1253
Quoted 10 lines
tests/i915/gem_sync.c +10
-0+store_all (fd, ctx,1 ,2 , region); +free (sub_name); + } + } + + igt_subtest_with_dynamic("all") { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); +igt_dynamic_f ("all-%s" , sub_name)
And here.
tests/i915/gem_sync.c igt_main · line 1263
Quoted 10 lines
tests/i915/gem_sync.c +10
-0+sync_all (fd, ctx,1 ,20 , region); +free (sub_name); + } + } + + igt_subtest_with_dynamic("store-all") { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); +igt_dynamic_f ("store-all-%s" , sub_name)
Likewise.
Quoted 8 lines
tests/i915/gem_sync.c +4
-3+store_all (fd, ctx,1 ,20 , region); +free (sub_name); + } + } - igt_subtest("all") -sync_all (fd, ctx,1 ,20 ); -igt_subtest ("store-all" )
tests/i915/gem_sync.c igt_main · line 1273
Quoted 10 lines
tests/i915/gem_sync.c +5
-5-store_all (fd, ctx,1 ,20 ); - igt_subtest("forked-all") -sync_all (fd, ctx, ncpus,20 ); - igt_subtest("forked-store-all") -store_all (fd, ctx, ncpus,20 ); + igt_subtest_with_dynamic("forked-all") { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); +igt_dynamic_f ("forked-all-%s" , sub_name)
Same.
tests/i915/gem_sync.c igt_main · line 1283
Quoted 10 lines
tests/i915/gem_sync.c +10
-0+sync_all (fd, ctx, ncpus,20 , region); +free (sub_name); + } + } + + igt_subtest_with_dynamic("forked-store-all") { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); +igt_dynamic_f ("forked-store-all-%s" , sub_name)
Same.
Signature · 1 line
Petri Latvala
Quoted 55 lines
tests/i915/gem_sync.c +28
-7+store_all (fd, ctx, ncpus,20 , region); +free (sub_name); + } + }for_each_test (t, all) { -igt_subtest_f ("%s" , t->name) - t->func(fd, ctx, ALL_ENGINES, t->num_children, t->timeout); + igt_subtest_with_dynamic_f("%s", t->name) { +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); +igt_dynamic_f ("%s" , sub_name) + t->func(fd, ctx, ALL_ENGINES, t->num_children, + t->timeout, + region); +free (sub_name); + } + } }/* New way of selecting engines. */ for_each_test (t, individual) { igt_subtest_with_dynamic_f("%s", t->name) { -for_each_ctx_engine (fd, ctx, e) { - igt_dynamic_f("%s", e->name) { - t->func (fd, ctx, e->flags, - t->num_children, t->timeout); - } +for_each_combination (regions,1 , set) { + sub_name =memregion_dynamic_subtest_name (regions); + region =igt_collection_get_value (regions,0 ); +for_each_ctx_engine (fd, ctx, e) +igt_dynamic_f ("%s-%s" , e->name, sub_name) + t->func(fd, ctx, e->flags, + t->num_children, + t->timeout, + region); +free (sub_name); + } } }@@ -1264,6 +1336,8 @@ igt_main } igt_fixture { +free (query_info); +igt_collection_destroy (set);igt_stop_hang_detector ();intel_ctx_destroy (fd, ctx);close (fd);Signature · 1 line
2.32.0