Fix softpinned version of gem-tiled-fence-blits
cover Fix softpinned version of gem-tiled-fence-blits
With HAX to run on all platforms and decrease CI execution time as it fix single test only.
Zbigniew Kempczyński (2):
i915/gem_tiled_fence_blits: Fix softpinned version of the test
HAX: exercise gem_tiled_fence_blits only
tests/i915/gem_tiled_fence_blits.c | 46 +++++-- tests/intel-ci/fast-feedback.testlist | 176 +------------------------- 2 files changed, 39 insertions(+), 183 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/2 i915/gem_tiled_fence_blits: Fix softpinned version of the test
Working with larger set on mappable apperture for softpinned version of the test we might hit situation buffers randomly taken to blit might overlap. Since reloc allocator is keeping offset per handle only thing we can do is to pick another pair of buffers until we get two non-overlapping ones.
Due to extremely long execution time on RKL I've limited number of cores used to blit and verify buffer contents to four. It seems ggtt mapping is very slow on this platform comparing to older gens (Skylake for example).
--- tests/i915/gem_tiled_fence_blits.c | 46 ++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 9 deletions(-)
tests/i915/gem_tiled_fence_blits.c +37 -9
@@ -154,22 +154,29 @@ static void run_test(int fd, int count, uint64_t end)uint32_t *src_order, *dst_order;uint32_t *bo, *bo_start_val;uint32_t start =0 ; -uint64_t ahnd =0 ; +uint64_t ahnd =0 , ahndbb =0 ; -if (!gem_has_relocations (fd)) +if (!gem_has_relocations (fd)) { ahnd =intel_allocator_open_full (fd,0 ,0 , end,INTEL_ALLOCATOR_RELOC ,ALLOC_STRATEGY_LOW_TO_HIGH ,0 ); + +/* Use separated vm range for bb */ + ahndbb =intel_allocator_open_full (fd,1 , end,0 , +INTEL_ALLOCATOR_RELOC , +ALLOC_STRATEGY_LOW_TO_HIGH ,0 ); + } +memset (reloc,0 ,sizeof (reloc));memset (obj,0 ,sizeof (obj)); obj[0 ].flags =EXEC_OBJECT_NEEDS_FENCE ; obj[1 ].flags =EXEC_OBJECT_NEEDS_FENCE ; obj[2 ].handle =gem_create (fd,4096 ); - obj[2 ].offset =get_offset (ahnd, obj[2 ].handle,4096 ,0 ); + obj[2 ].offset =get_offset (ahndbb, obj[2 ].handle,4096 ,0 );if (ahnd) { obj[0 ].flags |=EXEC_OBJECT_PINNED |EXEC_OBJECT_WRITE ; obj[1 ].flags |=EXEC_OBJECT_PINNED ; - obj[2 ].flags |=EXEC_OBJECT_PINNED ; + obj[2 ].flags |=EXEC_OBJECT_PINNED |EXEC_OBJECT_SUPPORTS_48B_ADDRESS ; } obj[2 ].relocs_ptr =to_user_pointer (reloc); obj[2 ].relocation_count = !ahnd ?ARRAY_SIZE (reloc) :0 ;
@@ -206,6 +213,7 @@ static void run_test(int fd, int count, uint64_t end)for (int i =0 ; i < count; i++) {int src = src_order[i];int dst = dst_order[i]; +int ret;if (src == dst)continue ;
@@ -218,19 +226,33 @@ static void run_test(int fd, int count, uint64_t end) sizeof(linear), 0); obj[1 ].offset =get_offset (ahnd, obj[1 ].handle,sizeof (linear),0 ); - obj[2 ].offset =get_offset (ahnd, obj[2 ].handle, + obj[2 ].offset =get_offset (ahndbb, obj[2 ].handle,4096 ,0 );update_batch (fd, obj[2 ].handle, reloc, obj[0 ].offset, obj[1 ].offset); } -gem_execbuf (fd, &eb); -if (ahnd) { + ret =__gem_execbuf (fd, &eb); + +/* +* 1. For relocations execbuf must succeed. +* 2. For softpinning we might hit situation two buffers +* would overlap (buffers picked to blit are randomized +* and we use more buffers aperture can hold). +* For such situation (ENOSPC) we just repeat pick +* and execute. +*/ +if (!ahnd) { +igt_assert_eq (ret,0 ); + }else { +igt_assert (ret ==0 || ret == -ENOSPC );gem_close (fd, obj[2 ].handle); +put_offset (ahndbb, obj[2 ].handle); obj[2 ].handle =gem_create (fd,4096 ); } - bo_start_val[dst] = bo_start_val[src]; +if (!ret) + bo_start_val[dst] = bo_start_val[src]; } }
@@ -242,13 +264,18 @@ static void run_test(int fd, int count, uint64_t end)gem_close (fd, obj[2 ].handle);put_ahnd (ahnd); +put_ahnd (ahndbb); }#define MAX_32b ((1ull << 32) - 4096) igt_main { -const int ncpus =sysconf (_SC_NPROCESSORS_ONLN); +/* +* For machines with many cpu cores buffer verification can take +* almost minute, limitation to 4 cores keeps this time in seconds. +*/ +const int ncpus =min_t (int,sysconf (_SC_NPROCESSORS_ONLN),4 );uint64_t count =0 , end;int fd;
@@ -263,6 +290,7 @@ igt_main count = MAX_32b; end = count; count =3 + count / (1024 *1024 ); +igt_require (count >1 );igt_require_memory (count,1024 *1024 ,CHECK_RAM );
Signature · 1 line
2.34.1
PATCH 2/2 HAX: exercise gem_tiled_fence_blits only
In reply to Zbigniew Kempczyński--- tests/intel-ci/fast-feedback.testlist | 176 +------------------------- 1 file changed, 2 insertions(+), 174 deletions(-)
tests/intel-ci/fast-feedback.testlist +2 -174
@@ -1,178 +1,6 @@ # Try to load the driver if it's not available yet. -igt@i915_module_load@load -# Keep alphabetically sorted by default -igt@core_auth@basic-auth -igt@debugfs_test@read_all_entries -igt@debugfs_test@basic-hwmon -igt@fbdev@eof -igt@fbdev@info -igt@fbdev@nullptr -igt@fbdev@read -igt@fbdev@write -igt@gem_basic@bad-close -igt@gem_basic@create-close -igt@gem_basic@create-fd-close -igt@gem_busy@busy@all-engines -igt@gem_close_race@basic-process -igt@gem_close_race@basic-threads -igt@gem_ctx_create@basic -igt@gem_ctx_create@basic-files -igt@gem_ctx_exec@basic -igt@gem_exec_basic@basic -igt@gem_exec_create@basic -igt@gem_exec_fence@basic-busy -igt@gem_exec_fence@basic-wait -igt@gem_exec_fence@basic-await -igt@gem_exec_fence@nb-await -igt@gem_exec_gttfill@basic -igt@gem_exec_parallel@engines -igt@gem_exec_store@basic -igt@gem_flink_basic@bad-flink -igt@gem_flink_basic@bad-open -igt@gem_flink_basic@basic -igt@gem_flink_basic@double-flink -igt@gem_flink_basic@flink-lifetime -igt@gem_huc_copy@huc-copy -igt@gem_linear_blits@basic -igt@gem_mmap@basic -igt@gem_mmap_gtt@basic -igt@gem_render_linear_blits@basic -igt@gem_render_tiled_blits@basic -igt@gem_ringfill@basic-all -igt@gem_softpin@allocator-basic -igt@gem_softpin@allocator-basic-reserve -igt@gem_softpin@safe-alignment -igt@gem_sync@basic-all -igt@gem_sync@basic-each -igt@gem_tiled_blits@basic igt@gem_tiled_fence_blits@basic -igt@gem_tiled_pread_basic -igt@gem_wait@busy@all-engines -igt@gem_wait@wait@all-engines -igt@i915_getparams_basic@basic-eu-total -igt@i915_getparams_basic@basic-subslice-total -igt@i915_hangman@error-state-basic -igt@i915_pciid -igt@kms_addfb_basic@addfb25-bad-modifier -igt@kms_addfb_basic@addfb25-framebuffer-vs-set-tiling -igt@kms_addfb_basic@addfb25-modifier-no-flag -igt@kms_addfb_basic@addfb25-x-tiled-legacy -igt@kms_addfb_basic@addfb25-x-tiled-mismatch-legacy -igt@kms_addfb_basic@addfb25-yf-tiled-legacy -igt@kms_addfb_basic@addfb25-y-tiled-legacy -igt@kms_addfb_basic@addfb25-y-tiled-small-legacy -igt@kms_addfb_basic@bad-pitch-0 -igt@kms_addfb_basic@bad-pitch-1024 -igt@kms_addfb_basic@bad-pitch-128 -igt@kms_addfb_basic@bad-pitch-256 -igt@kms_addfb_basic@bad-pitch-32 -igt@kms_addfb_basic@bad-pitch-63 -igt@kms_addfb_basic@bad-pitch-65536 -igt@kms_addfb_basic@bad-pitch-999 -igt@kms_addfb_basic@basic -igt@kms_addfb_basic@basic-x-tiled-legacy -igt@kms_addfb_basic@basic-y-tiled-legacy -igt@kms_addfb_basic@bo-too-small -igt@kms_addfb_basic@bo-too-small-due-to-tiling -igt@kms_addfb_basic@clobberred-modifier -igt@kms_addfb_basic@framebuffer-vs-set-tiling -igt@kms_addfb_basic@invalid-get-prop -igt@kms_addfb_basic@invalid-get-prop-any -igt@kms_addfb_basic@invalid-set-prop -igt@kms_addfb_basic@invalid-set-prop-any -igt@kms_addfb_basic@no-handle -igt@kms_addfb_basic@size-max -igt@kms_addfb_basic@small-bo -igt@kms_addfb_basic@tile-pitch-mismatch -igt@kms_addfb_basic@too-high -igt@kms_addfb_basic@too-wide -igt@kms_addfb_basic@unused-handle -igt@kms_addfb_basic@unused-modifier -igt@kms_addfb_basic@unused-offsets -igt@kms_addfb_basic@unused-pitches -igt@kms_busy@basic -igt@kms_chamelium_hpd@dp-hpd-fast -igt@kms_chamelium_edid@dp-edid-read -igt@kms_chamelium_frames@dp-crc-fast -igt@kms_chamelium_hpd@hdmi-hpd-fast -igt@kms_chamelium_edid@hdmi-edid-read -igt@kms_chamelium_frames@hdmi-crc-fast -igt@kms_chamelium_hpd@vga-hpd-fast -igt@kms_chamelium_edid@vga-edid-read -igt@kms_prop_blob@basic -igt@kms_cursor_legacy@basic-busy-flip-before-cursor -igt@kms_cursor_legacy@basic-flip-after-cursor -igt@kms_cursor_legacy@basic-flip-before-cursor -igt@kms_flip@basic-flip-vs-dpms -igt@kms_flip@basic-flip-vs-modeset -igt@kms_flip@basic-flip-vs-wf_vblank -igt@kms_flip@basic-plain-flip -igt@kms_force_connector_basic@force-connector-state -igt@kms_force_connector_basic@force-edid -igt@kms_force_connector_basic@force-load-detect -igt@kms_force_connector_basic@prune-stale-modes -igt@kms_frontbuffer_tracking@basic -igt@kms_pipe_crc_basic@compare-crc-sanitycheck -igt@kms_pipe_crc_basic@hang-read-crc -igt@kms_pipe_crc_basic@nonblocking-crc -igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence -igt@kms_pipe_crc_basic@read-crc -igt@kms_pipe_crc_basic@read-crc-frame-sequence -igt@kms_psr@primary_page_flip -igt@kms_psr@cursor_plane_move -igt@kms_psr@sprite_plane_onoff -igt@kms_psr@primary_mmap_gtt -igt@kms_setmode@basic-clone-single-crtc -igt@i915_pm_backlight@basic-brightness -igt@i915_pm_rpm@basic-pci-d3-state -igt@i915_pm_rpm@basic-rte -igt@i915_pm_rps@basic-api -igt@prime_self_import@basic-llseek-bad -igt@prime_self_import@basic-llseek-size -igt@prime_self_import@basic-with_fd_dup -igt@prime_self_import@basic-with_one_bo -igt@prime_self_import@basic-with_one_bo_two_files -igt@prime_self_import@basic-with_two_bos -igt@prime_vgem@basic-fence-flip -igt@prime_vgem@basic-fence-mmap -igt@prime_vgem@basic-fence-read -igt@prime_vgem@basic-gtt -igt@prime_vgem@basic-read -igt@prime_vgem@basic-write -igt@prime_vgem@basic-userptr -igt@vgem_basic@setversion -igt@vgem_basic@create -igt@vgem_basic@debugfs -igt@vgem_basic@dmabuf-export -igt@vgem_basic@dmabuf-fence -igt@vgem_basic@dmabuf-fence-before -igt@vgem_basic@dmabuf-mmap -igt@vgem_basic@mmap -igt@vgem_basic@second-client -igt@vgem_basic@sysfs +igt@gem_tiled_fence_blits@normal -# All tests that do module unloading and reloading are executed last. -# They will sometimes reveal issues of earlier tests leaving the -# driver in a broken state that is not otherwise noticed in that test. - -igt@core_hotunplug@unbind-rebind -igt@vgem_basic@unload -igt@i915_module_load@reload -igt@gem_lmem_swapping@basic -igt@gem_lmem_swapping@parallel-random-engines -igt@gem_lmem_swapping@random-engines -igt@gem_lmem_swapping@verify-random -igt@i915_pm_rpm@module-reload - -# Kernel selftests -igt@i915_selftest@live -igt@dmabuf@all-tests - -# System wide suspend tests -igt@i915_suspend@basic-s2idle-without-i915 -igt@i915_suspend@basic-s3-without-i915 -igt@gem_exec_suspend@basic-s0 -igt@gem_exec_suspend@basic-s3 -igt@kms_chamelium_hpd@common-hpd-after-suspend -igt@kms_pipe_crc_basic@suspend-read-crc +igt@meta_test@fail-result
Signature · 1 line
2.34.1
Patchwork
CI[igt-dev] ✗ Fi.CI.BAT: failure for Fix softpinned version of gem-tiled-fence-blits
In reply to Zbigniew Kempczyński== Series Details ==
== Series Details ==
Series: Fix softpinned version of gem-tiled-fence-blits
URL : https://patchwork.freedesktop.org/series/113325/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_12638 -> IGTPW_8403
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_8403 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_8403, 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_8403/index.html
Participating hosts (38 -> 38)
------------------------------
No changes in participating hosts
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_8403:
### IGT changes ###
#### Possible regressions ####
* igt@meta_test@fail-result (NEW):
- fi-ilk-650: NOTRUN -> [FAIL][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-ilk-650/igt@[email protected]
- {bat-jsl-1}: NOTRUN -> [FAIL][2]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/bat-jsl-1/igt@[email protected]
- fi-ctg-p8600: NOTRUN -> [FAIL][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-ctg-p8600/igt@[email protected]
- fi-blb-e6850: NOTRUN -> [FAIL][4]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-blb-e6850/igt@[email protected]
- fi-bsw-n3050: NOTRUN -> [FAIL][5]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-bsw-n3050/igt@[email protected]
- {bat-rpls-1}: NOTRUN -> [FAIL][6]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/bat-rpls-1/igt@[email protected]
- {bat-adlp-6}: NOTRUN -> [FAIL][7]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/bat-adlp-6/igt@[email protected]
- fi-skl-6600u: NOTRUN -> [FAIL][8]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-skl-6600u/igt@[email protected]
- fi-apl-guc: NOTRUN -> [FAIL][9]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-apl-guc/igt@[email protected]
- bat-dg1-5: NOTRUN -> [FAIL][10]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/bat-dg1-5/igt@[email protected]
- fi-pnv-d510: NOTRUN -> [FAIL][11]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-pnv-d510/igt@[email protected]
- {bat-dg1-7}: NOTRUN -> [FAIL][12]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/bat-dg1-7/igt@[email protected]
- {bat-adlp-9}: NOTRUN -> [FAIL][13]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/bat-adlp-9/igt@[email protected]
- fi-rkl-guc: NOTRUN -> [FAIL][14]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-rkl-guc/igt@[email protected]
- {bat-dg2-11}: NOTRUN -> [FAIL][15]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/bat-dg2-11/igt@[email protected]
- bat-dg1-6: NOTRUN -> [FAIL][16]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/bat-dg1-6/igt@[email protected]
- fi-cfl-8700k: NOTRUN -> [FAIL][17]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-cfl-8700k/igt@[email protected]
- fi-bsw-nick: NOTRUN -> [FAIL][18]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-bsw-nick/igt@[email protected]
- {bat-kbl-2}: NOTRUN -> [FAIL][19]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/bat-kbl-2/igt@[email protected]
- {bat-rplp-1}: NOTRUN -> [FAIL][20]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/bat-rplp-1/igt@[email protected]
- fi-rkl-11600: NOTRUN -> [FAIL][21]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-rkl-11600/igt@[email protected]
- fi-bdw-gvtdvm: NOTRUN -> [FAIL][22]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-bdw-gvtdvm/igt@[email protected]
- fi-bsw-kefka: NOTRUN -> [FAIL][23]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-bsw-kefka/igt@[email protected]
- fi-adl-ddr5: NOTRUN -> [FAIL][24]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-adl-ddr5/igt@[email protected]
- {bat-atsm-1}: NOTRUN -> [FAIL][25]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/bat-atsm-1/igt@[email protected]
- {bat-jsl-3}: NOTRUN -> [FAIL][26]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/bat-jsl-3/igt@[email protected]
- {bat-dg2-9}: NOTRUN -> [FAIL][27]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/bat-dg2-9/igt@[email protected]
- fi-hsw-4770: NOTRUN -> [FAIL][28]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-hsw-4770/igt@[email protected]
- fi-skl-6700k2: NOTRUN -> [FAIL][29]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-skl-6700k2/igt@[email protected]
- fi-cfl-8109u: NOTRUN -> [FAIL][30]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-cfl-8109u/igt@[email protected]
- {bat-adln-1}: NOTRUN -> [FAIL][31]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/bat-adln-1/igt@[email protected]
- fi-kbl-8809g: NOTRUN -> [FAIL][32]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-kbl-8809g/igt@[email protected]
- {bat-rpls-2}: NOTRUN -> [FAIL][33]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/bat-rpls-2/igt@[email protected]
- fi-ivb-3770: NOTRUN -> [FAIL][34]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-ivb-3770/igt@[email protected]
- fi-elk-e7500: NOTRUN -> [FAIL][35]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-elk-e7500/igt@[email protected]
- {bat-dg2-8}: NOTRUN -> [FAIL][36]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/bat-dg2-8/igt@[email protected]
- fi-snb-2600: NOTRUN -> [FAIL][37]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/fi-snb-2600/igt@[email protected]
- {bat-adlm-1}: NOTRUN -> [FAIL][38]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/bat-adlm-1/igt@[email protected]
New tests
---------
New tests have been introduced between CI_DRM_12638 and IGTPW_8403:
### New IGT tests (1) ###
* igt@meta_test@fail-result:
- Statuses : 38 fail(s)
- Exec time: [0.0] s
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7136 -> IGTPW_8403
CI-20190529: 20190529
CI_DRM_12638: 6a52e439bb5bfa16c32681bec4442ae7d0f1df12 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8403: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/index.html
IGT_7136: 31b6af91747ad8c705399c9006cdb81cb1864146 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8403/index.html