tests/xe/xe_noexec_ping_pong: Add a test to expose unnecessary rebinds
PATCH v2 1/1 tests/xe/xe_noexec_ping_pong: Add a test to expose unnecessary rebinds
This test creates compute vms, binds a couple of bos and an engine each, thus redying it for execution. However, VRAM memory is over- committed and while there is still nothing to execute, an eviction will trigger the VM's rebind worker to rebind the evicted bo, which will in turn trigger another eviction and so on.
Since we don't have eviction stats yet we need to watch "top" for the rebind kworkers using a lot of CPU while the test idles.
The correct driver behaviour should be not to rebind anything unless there is work queued on one of the VM's compute engines.
v2:
- Use the ALIGN macro for aligning
- Reduce the idle pause duration to 10s. (Matthew Brost)
- Add an IGT_TEST_DESCRIPTION()
- Explicity use gt0 for testing.
- Skip if no VRAM available.
--- tests/meson.build | 1 + tests/xe/xe_noexec_ping_pong.c | 106 +++++++++++++++++++++++++++++++++ 2 files changed, 107 insertions(+) create mode 100644 tests/xe/xe_noexec_ping_pong.c
tests/meson.build +1 -0
@@ -256,6 +256,7 @@ xe_progs = [ 'xe_huc_copy', 'xe_mmap', 'xe_mmio', + 'xe_noexec_ping_pong', 'xe_pm', 'xe_prime_self_import', 'xe_query',
tests/xe/xe_noexec_ping_pong.c new file +106 -0
106 lines not on this page · raw message
Signature · 1 line
2.39.2
Patchwork
CI[Intel-xe] ✗ CI.Patch_applied: failure for tests/xe/xe_noexec_ping_pong: Add a test to expose unnecessary rebinds
== Series Details ==
== Series Details ==
Series: tests/xe/xe_noexec_ping_pong: Add a test to expose unnecessary rebinds
URL : https://patchwork.freedesktop.org/series/115251/
State : failure
== Summary ==
=== Applying kernel patches on branch 'drm-xe-next' with base: === commit 8f6c3eaf3f9daab25b31e80c8ba277877fd10547
Author: Mauro Carvalho Chehab <[email protected]> AuthorDate: Fri Mar 10 09:13:39 2023 +0100 Commit: Lucas De Marchi <[email protected]> CommitDate: Wed Mar 15 10:28:56 2023 -0700
drm/xe/xe_uc_fw: Use firmware files from standard locations
The GuC/HuC firmware files used by Xe drivers are the same as used by i915. Use the already-known location to find those firmware files, for a couple of reasons:
1. Avoid having the same firmware placed on two different places on MODULE_FIRMWARE(), if both 915 and xe drivers are compiled;
2. Having firmware files located on different locations may end creating bigger initramfs, as the same files will be copied twice my mkinitrd/dracut/...;
3. this is the place where those firmware files are located at
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
Upstream doesn't expect them to have on other places;
4. When built with display support, DMC firmware will be loaded from i915/ directory. It is very confusing to have some firmware files on a different place for the same driver.
[ Mostly agree with the direction of "use the firmware blobs from
upstream at their current location for these platforms". Previous directory was not wrong as the plan was to have it handled in the upstream firmware repo. For future platforms the location can be changed if the support is only in xe ]
=== git am output follows ===
error: tests/meson.build: does not exist in index
hint: Use 'git am --show-current-patch' to see the failed patch
Applying: tests/xe/xe_noexec_ping_pong: Add a test to expose unnecessary rebinds Patch failed at 0001 tests/xe/xe_noexec_ping_pong: Add a test to expose unnecessary rebinds When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for tests/xe/xe_noexec_ping_pong: Add a test to expose unnecessary rebinds (rev2)
In reply to Thomas Hellström== Series Details ==
== Series Details ==
Series: tests/xe/xe_noexec_ping_pong: Add a test to expose unnecessary rebinds (rev2)
URL : https://patchwork.freedesktop.org/series/115206/
State : success
== Summary ==
CI Bug Log - changes from IGT_7198 -> IGTPW_8620
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/index.html
Participating hosts (38 -> 36)
------------------------------
Additional (1): fi-kbl-soraka
Missing (3): bat-atsm-1 fi-snb-2520m fi-pnv-d510
Known issues
------------
Here are the changes found in IGTPW_8620 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_huc_copy@huc-copy:
- fi-kbl-soraka: NOTRUN -> [SKIP][1] ([fdo#109271] / [i915#2190])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/fi-kbl-soraka/igt@[email protected]
* igt@gem_lmem_swapping@basic:
- fi-kbl-soraka: NOTRUN -> [SKIP][2] ([fdo#109271] / [i915#4613]) +3 similar issues
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/fi-kbl-soraka/igt@[email protected]
- bat-adln-1: NOTRUN -> [SKIP][3] ([i915#4613]) +3 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/bat-adln-1/igt@[email protected]
* igt@i915_pm_rps@basic-api:
- bat-adln-1: NOTRUN -> [SKIP][4] ([i915#6621])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/bat-adln-1/igt@[email protected]
* igt@i915_selftest@live@execlists:
- fi-bsw-nick: [PASS][5] -> [ABORT][6] ([i915#7911] / [i915#7913])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/fi-bsw-nick/igt@i915_selftest@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/fi-bsw-nick/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@gem_contexts:
- fi-kbl-soraka: NOTRUN -> [INCOMPLETE][7] ([i915#7913])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/fi-kbl-soraka/igt@i915_selftest@live@gem_contexts.html
* igt@i915_selftest@live@gt_pm:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][8] ([i915#1886])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html
* igt@i915_selftest@live@reset:
- bat-rpls-1: [PASS][9] -> [ABORT][10] ([i915#4983])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/bat-rpls-1/igt@i915_selftest@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/bat-rpls-1/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@slpc:
- bat-adln-1: NOTRUN -> [DMESG-FAIL][11] ([i915#6997])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/bat-adln-1/igt@i915_selftest@[email protected]
* igt@kms_chamelium_frames@hdmi-crc-fast:
- fi-kbl-soraka: NOTRUN -> [SKIP][12] ([fdo#109271]) +16 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/fi-kbl-soraka/igt@[email protected]
* igt@kms_chamelium_hpd@common-hpd-after-suspend:
- bat-adln-1: NOTRUN -> [SKIP][13] ([i915#7828])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/bat-adln-1/igt@[email protected]
- fi-bsw-n3050: NOTRUN -> [SKIP][14] ([fdo#109271])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/fi-bsw-n3050/igt@[email protected]
* igt@prime_vgem@basic-userptr:
- bat-adln-1: NOTRUN -> [SKIP][15] ([fdo#109295] / [i915#3301])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/bat-adln-1/igt@[email protected]
* igt@prime_vgem@basic-write:
- bat-adln-1: NOTRUN -> [SKIP][16] ([fdo#109295] / [i915#3291]) +2 similar issues
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/bat-adln-1/igt@[email protected]
#### Possible fixes ####
* igt@i915_pm_rpm@basic-rte:
- bat-adln-1: [ABORT][17] ([i915#7977]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/bat-adln-1/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/bat-adln-1/igt@[email protected]
* igt@i915_selftest@live@execlists:
- fi-bsw-n3050: [ABORT][19] -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/fi-bsw-n3050/igt@i915_selftest@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/fi-bsw-n3050/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@migrate:
- bat-dg2-11: [DMESG-WARN][21] ([i915#7699]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/bat-dg2-11/igt@i915_selftest@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/bat-dg2-11/igt@i915_selftest@[email protected]
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6997]: https://gitlab.freedesktop.org/drm/intel/issues/6997
[i915#7699]: https://gitlab.freedesktop.org/drm/intel/issues/7699
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#7911]: https://gitlab.freedesktop.org/drm/intel/issues/7911
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
[i915#7977]: https://gitlab.freedesktop.org/drm/intel/issues/7977
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7198 -> IGTPW_8620
CI-20190529: 20190529
CI_DRM_12867: 67d4276f8342780b8eaa6e9f5c15d979254a5675 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8620: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/index.html
IGT_7198: 17eeb3995c74f32ce6338b9e7dcd118c1104aebb @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Testlist changes
----------------
+igt@xe_noexec_ping_pong
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/index.html
Patchwork
CI[igt-dev] ✓ Fi.CI.IGT: success for tests/xe/xe_noexec_ping_pong: Add a test to expose unnecessary rebinds (rev2)
In reply to Thomas Hellström== Series Details ==
== Series Details ==
Series: tests/xe/xe_noexec_ping_pong: Add a test to expose unnecessary rebinds (rev2)
URL : https://patchwork.freedesktop.org/series/115206/
State : success
== Summary ==
CI Bug Log - changes from IGT_7198_full -> IGTPW_8620_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/index.html
Participating hosts (7 -> 8)
------------------------------
Additional (1): shard-rkl0
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_8620_full:
### IGT changes ###
#### Possible regressions ####
* {igt@xe_noexec_ping_pong} (NEW):
- {shard-dg1}: NOTRUN -> [SKIP][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-dg1-17/igt@xe_noexec_ping_pong.html
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@i915_pm_rps@reset:
- {shard-tglu}: [PASS][2] -> [INCOMPLETE][3]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-tglu-4/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-tglu-9/igt@[email protected]
New tests
---------
New tests have been introduced between IGT_7198_full and IGTPW_8620_full:
### New IGT tests (1) ###
* igt@xe_noexec_ping_pong:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
Known issues
------------
Here are the changes found in IGTPW_8620_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-glk: [PASS][4] -> [FAIL][5] ([i915#2842]) +1 similar issue
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-glk5/igt@gem_exec_fair@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-glk7/igt@gem_exec_fair@[email protected]
* igt@gem_lmem_swapping@parallel-random:
- shard-apl: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#4613]) +1 similar issue
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-apl2/igt@[email protected]
* igt@kms_ccs@pipe-b-random-ccs-data-y_tiled_gen12_rc_ccs_cc:
- shard-apl: NOTRUN -> [SKIP][7] ([fdo#109271] / [i915#3886]) +3 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-apl2/igt@kms_ccs@pipe-b-random-ccs-data-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_ccs:
- shard-apl: NOTRUN -> [SKIP][8] ([fdo#109271]) +49 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-apl4/igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_ccs.html
* igt@kms_content_protection@legacy@pipe-a-dp-1:
- shard-apl: NOTRUN -> [TIMEOUT][9] ([i915#7173])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-apl7/igt@kms_content_protection@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions:
- shard-glk: [PASS][10] -> [FAIL][11] ([i915#2346])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-glk2/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-glk5/igt@[email protected]
* igt@kms_flip@flip-vs-suspend@b-dp1:
- shard-apl: [PASS][12] -> [ABORT][13] ([i915#180]) +1 similar issue
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-apl1/igt@kms_flip@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-apl3/igt@kms_flip@[email protected]
* igt@kms_psr2_sf@overlay-plane-move-continuous-exceed-sf:
- shard-apl: NOTRUN -> [SKIP][14] ([fdo#109271] / [i915#658])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-apl7/igt@[email protected]
* {igt@xe_noexec_ping_pong} (NEW):
- {shard-rkl}: NOTRUN -> [SKIP][15] ([fdo#109315])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-rkl-1/igt@xe_noexec_ping_pong.html
- shard-snb: NOTRUN -> [SKIP][16] ([fdo#109271])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-snb4/igt@xe_noexec_ping_pong.html
- {shard-tglu}: NOTRUN -> [SKIP][17] ([fdo#109315] / [i915#2575])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-tglu-9/igt@xe_noexec_ping_pong.html
- shard-glk: NOTRUN -> [SKIP][18] ([fdo#109271])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-glk1/igt@xe_noexec_ping_pong.html
#### Possible fixes ####
* igt@core_hotunplug@unbind-rebind:
- {shard-dg1}: [DMESG-WARN][19] -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-dg1-14/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-dg1-13/igt@[email protected]
* igt@gem_ctx_persistence@legacy-engines-hang@blt:
- {shard-rkl}: [SKIP][21] ([i915#6252]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-rkl-5/igt@gem_ctx_persistence@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-rkl-4/igt@gem_ctx_persistence@[email protected]
* igt@gem_exec_capture@pi@vecs0:
- {shard-tglu}: [ABORT][23] ([i915#3371]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-tglu-9/igt@gem_exec_capture@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-tglu-5/igt@gem_exec_capture@[email protected]
* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-apl: [FAIL][25] ([i915#2842]) -> [PASS][26] +1 similar issue
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-apl1/igt@gem_exec_fair@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-apl7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vcs0:
- {shard-rkl}: [FAIL][27] ([i915#2842]) -> [PASS][28] +3 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-rkl-3/igt@gem_exec_fair@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-rkl-5/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- {shard-tglu}: [FAIL][29] ([i915#2842]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-tglu-7/igt@gem_exec_fair@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-tglu-3/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vcs0:
- shard-glk: [FAIL][31] ([i915#2842]) -> [PASS][32] +2 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-glk7/igt@gem_exec_fair@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-glk5/igt@gem_exec_fair@[email protected]
* igt@gem_exec_reloc@basic-wc-read-noreloc:
- {shard-rkl}: [SKIP][33] ([i915#3281]) -> [PASS][34] +5 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-rkl-1/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-rkl-5/igt@[email protected]
* igt@gem_partial_pwrite_pread@reads-uncached:
- {shard-rkl}: [SKIP][35] ([i915#3282]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-rkl-2/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-rkl-5/igt@[email protected]
* igt@gen9_exec_parse@allowed-all:
- {shard-rkl}: [ABORT][37] ([i915#5566]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-rkl-5/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-rkl-5/igt@[email protected]
* igt@gen9_exec_parse@unaligned-access:
- {shard-rkl}: [SKIP][39] ([i915#2527]) -> [PASS][40] +1 similar issue
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-rkl-1/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-rkl-5/igt@[email protected]
* igt@i915_pm_dc@dc9-dpms:
- {shard-rkl}: [SKIP][41] ([i915#3361]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-rkl-5/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-rkl-1/igt@[email protected]
- {shard-tglu}: [SKIP][43] ([i915#4281]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-tglu-5/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-tglu-9/igt@[email protected]
* igt@i915_pm_rpm@cursor-dpms:
- {shard-tglu}: [SKIP][45] ([i915#1849]) -> [PASS][46] +14 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-tglu-10/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-tglu-3/igt@[email protected]
* igt@i915_pm_rpm@modeset-lpsp-stress:
- {shard-tglu}: [SKIP][47] ([i915#1397]) -> [PASS][48] +1 similar issue
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-tglu-10/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-tglu-3/igt@[email protected]
* {igt@i915_power@sanity}:
- {shard-rkl}: [SKIP][49] ([i915#7984]) -> [PASS][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-rkl-3/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-rkl-5/igt@[email protected]
* igt@kms_addfb_basic@bad-pitch-999:
- shard-apl: [DMESG-WARN][51] ([i915#62]) -> [PASS][52] +21 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-apl6/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-apl1/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180:
- shard-apl: [DMESG-WARN][53] ([i915#1982] / [i915#62]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-apl6/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-apl7/igt@[email protected]
* igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc:
- {shard-rkl}: [SKIP][55] ([i915#1845] / [i915#4098]) -> [PASS][56] +19 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-rkl-3/igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc.html
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-rkl-6/igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-d-bad-pixel-format-y_tiled_gen12_rc_ccs:
- {shard-tglu}: [SKIP][57] ([i915#1845] / [i915#7651]) -> [PASS][58] +3 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-tglu-9/igt@kms_ccs@pipe-d-bad-pixel-format-y_tiled_gen12_rc_ccs.html
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-tglu-1/igt@kms_ccs@pipe-d-bad-pixel-format-y_tiled_gen12_rc_ccs.html
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-glk: [FAIL][59] ([i915#2346]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-glk5/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-glk1/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
* igt@kms_frontbuffer_tracking@fbc-1p-pri-indfb-multidraw:
- {shard-rkl}: [SKIP][61] ([i915#1849] / [i915#4098]) -> [PASS][62] +14 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-rkl-4/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-rkl-6/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend@pipe-b-planes:
- shard-apl: [ABORT][63] ([i915#180]) -> [PASS][64] +1 similar issue
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-apl3/igt@kms_plane@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-apl3/igt@kms_plane@[email protected]
* igt@kms_properties@plane-properties-atomic:
- {shard-rkl}: [SKIP][65] ([i915#1849]) -> [PASS][66]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-rkl-5/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-rkl-6/igt@[email protected]
* igt@kms_psr@dpms:
- {shard-rkl}: [SKIP][67] ([i915#1072]) -> [PASS][68] +1 similar issue
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-rkl-3/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-rkl-6/igt@[email protected]
* igt@kms_psr_stress_test@flip-primary-invalidate-overlay:
- {shard-rkl}: [SKIP][69] ([i915#5461]) -> [PASS][70]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-rkl-4/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-rkl-6/igt@[email protected]
* igt@kms_universal_plane@disable-primary-vs-flip-pipe-a:
- {shard-tglu}: [SKIP][71] ([fdo#109274]) -> [PASS][72] +2 similar issues
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-tglu-10/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-tglu-7/igt@[email protected]
* igt@kms_vblank@pipe-d-wait-forked-busy:
- {shard-tglu}: [SKIP][73] ([i915#1845]) -> [PASS][74] +35 similar issues
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-tglu-10/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-tglu-5/igt@[email protected]
* igt@perf_pmu@rc6-suspend:
- shard-snb: [DMESG-WARN][75] ([i915#5090]) -> [PASS][76]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-snb7/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-snb5/igt@[email protected]
* igt@sysfs_heartbeat_interval@precise@bcs0:
- {shard-dg1}: [FAIL][77] ([i915#1755]) -> [PASS][78]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-dg1-14/igt@sysfs_heartbeat_interval@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-dg1-12/igt@sysfs_heartbeat_interval@[email protected]
* igt@testdisplay:
- {shard-rkl}: [SKIP][79] ([i915#4098]) -> [PASS][80] +1 similar issue
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7198/shard-rkl-1/[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/shard-rkl-6/[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[IGT#2]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/2
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109279]: https://bugs.freedesktop.org/show_bug.cgi?id=109279
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109291]: https://bugs.freedesktop.org/show_bug.cgi?id=109291
[fdo#109302]: https://bugs.freedesktop.org/show_bug.cgi?id=109302
[fdo#109307]: https://bugs.freedesktop.org/show_bug.cgi?id=109307
[fdo#109312]: https://bugs.freedesktop.org/show_bug.cgi?id=109312
[fdo#109313]: https://bugs.freedesktop.org/show_bug.cgi?id=109313
[fdo#109314]: https://bugs.freedesktop.org/show_bug.cgi?id=109314
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#109506]: https://bugs.freedesktop.org/show_bug.cgi?id=109506
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#110723]: https://bugs.freedesktop.org/show_bug.cgi?id=110723
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
[fdo#111656]: https://bugs.freedesktop.org/show_bug.cgi?id=111656
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[fdo#112054]: https://bugs.freedesktop.org/show_bug.cgi?id=112054
[fdo#112283]: https://bugs.freedesktop.org/show_bug.cgi?id=112283
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1257]: https://gitlab.freedesktop.org/drm/intel/issues/1257
[i915#132]: https://gitlab.freedesktop.org/drm/intel/issues/132
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1722]: https://gitlab.freedesktop.org/drm/intel/issues/1722
[i915#1755]: https://gitlab.freedesktop.org/drm/intel/issues/1755
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#1937]: https://gitlab.freedesktop.org/drm/intel/issues/1937
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2434]: https://gitlab.freedesktop.org/drm/intel/issues/2434
[i915#2436]: https://gitlab.freedesktop.org/drm/intel/issues/2436
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705
[i915#280]: https://gitlab.freedesktop.org/drm/intel/issues/280
[i915#284]: https://gitlab.freedesktop.org/drm/intel/issues/284
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2920]: https://gitlab.freedesktop.org/drm/intel/issues/2920
[i915#3116]: https://gitlab.freedesktop.org/drm/intel/issues/3116
[i915#315]: https://gitlab.freedesktop.org/drm/intel/issues/315
[i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3299]: https://gitlab.freedesktop.org/drm/intel/issues/3299
[i915#3318]: https://gitlab.freedesktop.org/drm/intel/issues/3318
[i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359
[i915#3361]: https://gitlab.freedesktop.org/drm/intel/issues/3361
[i915#3371]: https://gitlab.freedesktop.org/drm/intel/issues/3371
[i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458
[i915#3469]: https://gitlab.freedesktop.org/drm/intel/issues/3469
[i915#3539]: https://gitlab.freedesktop.org/drm/intel/issues/3539
[i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
[i915#3547]: https://gitlab.freedesktop.org/drm/intel/issues/3547
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3638]: https://gitlab.freedesktop.org/drm/intel/issues/3638
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3734]: https://gitlab.freedesktop.org/drm/intel/issues/3734
[i915#3742]: https://gitlab.freedesktop.org/drm/intel/issues/3742
[i915#3804]: https://gitlab.freedesktop.org/drm/intel/issues/3804
[i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#3938]: https://gitlab.freedesktop.org/drm/intel/issues/3938
[i915#3952]: https://gitlab.freedesktop.org/drm/intel/issues/3952
[i915#3955]: https://gitlab.freedesktop.org/drm/intel/issues/3955
[i915#3989]: https://gitlab.freedesktop.org/drm/intel/issues/3989
[i915#4036]: https://gitlab.freedesktop.org/drm/intel/issues/4036
[i915#404]: https://gitlab.freedesktop.org/drm/intel/issues/404
[i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4215]: https://gitlab.freedesktop.org/drm/intel/issues/4215
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4281]: https://gitlab.freedesktop.org/drm/intel/issues/4281
[i915#4349]: https://gitlab.freedesktop.org/drm/intel/issues/4349
[i915#4387]: https://gitlab.freedesktop.org/drm/intel/issues/4387
[i915#4538]: https://gitlab.freedesktop.org/drm/intel/issues/4538
[i915#4565]: https://gitlab.freedesktop.org/drm/intel/issues/4565
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4771]: https://gitlab.freedesktop.org/drm/intel/issues/4771
[i915#4812]: https://gitlab.freedesktop.org/drm/intel/issues/4812
[i915#4818]: https://gitlab.freedesktop.org/drm/intel/issues/4818
[i915#4833]: https://gitlab.freedesktop.org/drm/intel/issues/4833
[i915#4852]: https://gitlab.freedesktop.org/drm/intel/issues/4852
[i915#4859]: https://gitlab.freedesktop.org/drm/intel/issues/4859
[i915#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860
[i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
[i915#4880]: https://gitlab.freedesktop.org/drm/intel/issues/4880
[i915#5090]: https://gitlab.freedesktop.org/drm/intel/issues/5090
[i915#5115]: https://gitlab.freedesktop.org/drm/intel/issues/5115
[i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176
[i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
[i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
[i915#5288]: https://gitlab.freedesktop.org/drm/intel/issues/5288
[i915#5289]: https://gitlab.freedesktop.org/drm/intel/issues/5289
[i915#5325]: https://gitlab.freedesktop.org/drm/intel/issues/5325
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
[i915#5439]: https://gitlab.freedesktop.org/drm/intel/issues/5439
[i915#5461]: https://gitlab.freedesktop.org/drm/intel/issues/5461
[i915#5563]: https://gitlab.freedesktop.org/drm/intel/issues/5563
[i915#5566]: https://gitlab.freedesktop.org/drm/intel/issues/5566
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
[i915#6247]: https://gitlab.freedesktop.org/drm/intel/issues/6247
[i915#6248]: https://gitlab.freedesktop.org/drm/intel/issues/6248
[i915#6252]: https://gitlab.freedesktop.org/drm/intel/issues/6252
[i915#6268]: https://gitlab.freedesktop.org/drm/intel/issues/6268
[i915#6301]: https://gitlab.freedesktop.org/drm/intel/issues/6301
[i915#6335]: https://gitlab.freedesktop.org/drm/intel/issues/6335
[i915#6433]: https://gitlab.freedesktop.org/drm/intel/issues/6433
[i915#6493]: https://gitlab.freedesktop.org/drm/intel/issues/6493
[i915#6497]: https://gitlab.freedesktop.org/drm/intel/issues/6497
[i915#6524]: https://gitlab.freedesktop.org/drm/intel/issues/6524
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#6590]: https://gitlab.freedesktop.org/drm/intel/issues/6590
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6768]: https://gitlab.freedesktop.org/drm/intel/issues/6768
[i915#6944]: https://gitlab.freedesktop.org/drm/intel/issues/6944
[i915#6946]: https://gitlab.freedesktop.org/drm/intel/issues/6946
[i915#6953]: https://gitlab.freedesktop.org/drm/intel/issues/6953
[i915#7037]: https://gitlab.freedesktop.org/drm/intel/issues/7037
[i915#7052]: https://gitlab.freedesktop.org/drm/intel/issues/7052
[i915#7116]: https://gitlab.freedesktop.org/drm/intel/issues/7116
[i915#7118]: https://gitlab.freedesktop.org/drm/intel/issues/7118
[i915#7128]: https://gitlab.freedesktop.org/drm/intel/issues/7128
[i915#7173]: https://gitlab.freedesktop.org/drm/intel/issues/7173
[i915#7294]: https://gitlab.freedesktop.org/drm/intel/issues/7294
[i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561
[i915#7651]: https://gitlab.freedesktop.org/drm/intel/issues/7651
[i915#7697]: https://gitlab.freedesktop.org/drm/intel/issues/7697
[i915#7701]: https://gitlab.freedesktop.org/drm/intel/issues/7701
[i915#7711]: https://gitlab.freedesktop.org/drm/intel/issues/7711
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#7949]: https://gitlab.freedesktop.org/drm/intel/issues/7949
[i915#7957]: https://gitlab.freedesktop.org/drm/intel/issues/7957
[i915#7975]: https://gitlab.freedesktop.org/drm/intel/issues/7975
[i915#7984]: https://gitlab.freedesktop.org/drm/intel/issues/7984
[i915#8152]: https://gitlab.freedesktop.org/drm/intel/issues/8152
[i915#8154]: https://gitlab.freedesktop.org/drm/intel/issues/8154
[i915#8228]: https://gitlab.freedesktop.org/drm/intel/issues/8228
[i915#8273]: https://gitlab.freedesktop.org/drm/intel/issues/8273
[i915#8282]: https://gitlab.freedesktop.org/drm/intel/issues/8282
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7198 -> IGTPW_8620
CI-20190529: 20190529
CI_DRM_12867: 67d4276f8342780b8eaa6e9f5c15d979254a5675 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8620: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/index.html
IGT_7198: 17eeb3995c74f32ce6338b9e7dcd118c1104aebb @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8620/index.html
Quoted 12 lines · Thomas Hellström
This test creates compute vms, binds a couple of bos and an engine each, thus redying it for execution. However, VRAM memory is over- committed and while there is still nothing to execute, an eviction will trigger the VM's rebind worker to rebind the evicted bo, which will in turn trigger another eviction and so on.
Since we don't have eviction stats yet we need to watch "top" for the rebind kworkers using a lot of CPU while the test idles.
The correct driver behaviour should be not to rebind anything unless there is work queued on one of the VM's compute engines.
Quoted 8 lines
v2:
- Use the ALIGN macro for aligning
- Reduce the idle pause duration to 10s. (Matthew Brost)
- Add anIGT_TEST_DESCRIPTION()
- Explicity use gt0 for testing.
- Skip if no VRAM available.Signed-off-by Thomas Hellström <[email protected]>
Quoted 133 lines
--- tests/meson.build | 1 + tests/xe/xe_noexec_ping_pong.c | 106 +++++++++++++++++++++++++++++++++ 2 files changed, 107 insertions(+) create mode 100644 tests/xe/xe_noexec_ping_pong.ctests/meson.build +1
-0@@ -256,6 +256,7 @@ xe_progs = [ 'xe_huc_copy', 'xe_mmap', 'xe_mmio', + 'xe_noexec_ping_pong', 'xe_pm', 'xe_prime_self_import', 'xe_query',tests/xe/xe_noexec_ping_pong.c new file +106
-0@@ -0,0 +1,106 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2023 Intel Corporation +*/ + +#include <unistd.h> + +#include "drmtest.h" +#include "igt.h" + +#include "xe/xe_ioctl.h" +#include "xe/xe_query.h" + +#define NUM_VMS 10 +#define NUM_BOS 1 +#define SECONDS_TO_WAIT 10 + +/** +* TEST: Expose compute VM's unnecessary rebinds +* Category: Software building block +* Sub-category: compute +* Test category: functionality test +*/ + +/* +* This test creates compute vms, binds a couple of bos and an engine each, +* thus redying it for execution. However, VRAM memory is over- +* committed and while there is still nothing to execute, an eviction +* will trigger the VM's rebind worker to rebind the evicted bo, which +* will in turn trigger another eviction and so on. +* +* Since we don't have eviction stats yet we need to watch "top" for +* the rebind kworkers using a lot of CPU while the test idles. +* +* The correct driver behaviour should be not to rebind anything unless +* there is worked queued on one of the VM's compute engines. +*/ +static void test_ping_pong (int fd,struct drm_xe_engine_class_instance *eci) +{ +size_t vram_size =xe_vram_size (fd,0 ); +size_t align =xe_get_default_alignment (fd); +size_t bo_size = vram_size /NUM_VMS /NUM_BOS ; +uint32_t vm[NUM_VMS ]; +uint32_t bo[NUM_VMS ][NUM_BOS ]; +uint32_t engines[NUM_VMS ]; +unsigned int i, j; + +igt_skip_on (!bo_size); + +/* Align and make sure we overcommit vram with at least 10% */ + bo_size =ALIGN (bo_size + bo_size /10 , align); + +/* +* This should not start ping-ponging memory between system and +* VRAM. For now look at top to determine. TODO: Look at eviction +* stats. +*/ +for (i =0 ; i <NUM_VMS ; ++i) { +struct drm_xe_ext_engine_set_property ext = { + .base.next_extension =0 , + .base.name =XE_ENGINE_EXTENSION_SET_PROPERTY , + .property =XE_ENGINE_SET_PROPERTY_COMPUTE_MODE , + .value =1 , + }; + + vm[i] =xe_vm_create (fd,DRM_XE_VM_CREATE_COMPUTE_MODE ,0 ); +for (j =0 ; j <NUM_BOS ; ++j) { +igt_debug ("Creating bo size %lu for vm %u\n" , + (unsigned long ) bo_size, + (unsigned int ) vm[i]); + + bo[i][j] =xe_bo_create_flags (fd, vm[i], bo_size, +vram_memory (fd,0 )); +xe_vm_bind (fd, vm[i], bo[i][j],0 ,0x40000 + j*bo_size, + bo_size,NULL ,0 ); + } + engines[i] =xe_engine_create (fd, vm[i], eci, +to_user_pointer (&ext)); + } + +igt_info ("Now sleeping for %ds.\n" ,SECONDS_TO_WAIT ); +igt_info ("Watch \"top\" for high-cpu kworkers!\n" ); +sleep (SECONDS_TO_WAIT ); + +for (i =0 ; i <NUM_VMS ; ++i) { +xe_engine_destroy (fd, engines[i]); +for (j =0 ; j <NUM_BOS ; ++j) +gem_close (fd, bo[i][j]); +xe_vm_destroy (fd, vm[i]); + } +} + +static int fd; + +IGT_TEST_DESCRIPTION ("Expose compute VM's unnecessary rebinds" ); +igt_simple_main +{ + + fd =drm_open_driver (DRIVER_XE ); +xe_device_get (fd); + +test_ping_pong (fd,xe_hw_engine (fd,0 )); + +xe_device_put (fd); +close (fd); +}Signature · 1 line
2.39.2