drm/i915/selftests: fixup igt_shrink_thp
Subsystems (2)
PATCH 1/1 drm/i915/selftests: fixup igt_shrink_thp
Since the object might still be active here, the shrink_all will simply ignore it, which blows up in the test, since the pages will still be there. Currently THP is disabled which should result in the test being skipped, but if we ever re-enable THP we might start seeing the failure. Fix this by forcing I915_SHRINK_ACTIVE.
v2: Some machine in the shard runs doesn't seem to have any available swap when running this test. Try to handle this.
--- .../gpu/drm/i915/gem/selftests/huge_pages.c | 31 ++++++++++++++----- 1 file changed, 24 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/gem/selftests/huge_pages.c +24 -7
@@ -1519,6 +1519,7 @@ static int igt_shrink_thp(void *arg)struct i915_vma *vma;unsigned int flags =PIN_USER ;unsigned int n; +bool should_swap;int err =0 ;/*
@@ -1567,23 +1568,39 @@ static int igt_shrink_thp(void *arg)break ; }i915_gem_context_unlock_engines (ctx); +/* +* Nuke everything *before* we unpin the pages so we can be reasonably +* sure that when later checking get_nr_swap_pages() that some random +* leftover object doesn't steal the remaining swap space. +*/ +i915_gem_shrink (NULL , i915,-1UL ,NULL , +I915_SHRINK_BOUND | +I915_SHRINK_UNBOUND | +I915_SHRINK_ACTIVE );i915_vma_unpin (vma);if (err) goto out_put; +/* -* Now that the pages are *unpinned* shrink-all should invoke -* shmem to truncate our pages. +* Now that the pages are *unpinned* shrinking should invoke +* shmem to truncate our pages, if we have available swap. */ -i915_gem_shrink_all (i915); -if (i915_gem_object_has_pages (obj)) { -pr_err ("shrink-all didn't truncate the pages\n" ); + should_swap =get_nr_swap_pages () >0 ; +i915_gem_shrink (NULL , i915,-1UL ,NULL , +I915_SHRINK_BOUND | +I915_SHRINK_UNBOUND | +I915_SHRINK_ACTIVE ); +if (should_swap ==i915_gem_object_has_pages (obj)) { +pr_err ("unexpected pages mismatch, should_swap=%s\n" , +yesno (should_swap)); err = -EINVAL ; goto out_put; } -if (obj->mm.page_sizes.sg || obj->mm.page_sizes.phys) { -pr_err ("residual page-size bits left\n" ); +if (should_swap == (obj->mm.page_sizes.sg || obj->mm.page_sizes.phys)) { +pr_err ("unexpected residual page-size bits, should_swap=%s\n" , +yesno (should_swap)); err = -EINVAL ; goto out_put; }
Signature · 1 line
2.26.3
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/selftests: fixup igt_shrink_thp (rev2)
== Series Details ==
== Series Details ==
Series: drm/i915/selftests: fixup igt_shrink_thp (rev2)
URL : https://patchwork.freedesktop.org/series/93128/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip c703d855f95d drm/i915/selftests: fixup igt_shrink_thp -:52: CHECK:LINE_SPACING: Please don't use multiple blank lines #52: FILE: drivers/gpu/drm/i915/gem/selftests/huge_pages.c:1584:
+
total: 0 errors, 0 warnings, 1 checks, 53 lines checked
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/selftests: fixup igt_shrink_thp (rev2)
In reply to Matthew Auld== Series Details ==
== Series Details ==
Series: drm/i915/selftests: fixup igt_shrink_thp (rev2)
URL : https://patchwork.freedesktop.org/series/93128/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10552 -> Patchwork_20966
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/index.html
Known issues
------------
Here are the changes found in Patchwork_20966 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_basic@query-info:
- fi-tgl-y: NOTRUN -> [SKIP][1] ([fdo#109315])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/fi-tgl-y/igt@amdgpu/[email protected]
* igt@amdgpu/amd_cs_nop@nop-compute0:
- fi-tgl-y: NOTRUN -> [SKIP][2] ([fdo#109315] / [i915#2575]) +9 similar issues
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/fi-tgl-y/igt@amdgpu/[email protected]
* igt@i915_selftest@live@hangcheck:
- fi-snb-2600: [PASS][3] -> [INCOMPLETE][4] ([i915#3921])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/fi-snb-2600/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/fi-snb-2600/igt@i915_selftest@[email protected]
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s0:
- fi-tgl-1115g4: [FAIL][5] ([i915#1888]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/fi-tgl-1115g4/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/fi-tgl-1115g4/igt@[email protected]
* igt@i915_selftest@live@execlists:
- fi-icl-y: [DMESG-FAIL][7] ([i915#1993]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/fi-icl-y/igt@i915_selftest@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/fi-icl-y/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@gt_lrc:
- fi-rkl-guc: [DMESG-WARN][9] ([i915#3958]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/fi-rkl-guc/igt@i915_selftest@live@gt_lrc.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/fi-rkl-guc/igt@i915_selftest@live@gt_lrc.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
[i915#1993]: https://gitlab.freedesktop.org/drm/intel/issues/1993
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#3303]: https://gitlab.freedesktop.org/drm/intel/issues/3303
[i915#3921]: https://gitlab.freedesktop.org/drm/intel/issues/3921
[i915#3958]: https://gitlab.freedesktop.org/drm/intel/issues/3958
Participating hosts (46 -> 38)
------------------------------
Missing (8): bat-adls-5 bat-dg1-6 fi-bsw-n3050 bat-dg1-5 fi-bsw-cyan bat-adlp-4 fi-bdw-samus bat-jsl-1
Build changes
-------------
* Linux: CI_DRM_10552 -> Patchwork_20966
CI-20190529: 20190529
CI_DRM_10552: 931230aae7f70bb270bb3a50b160a765699f87c2 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6197: 40888f97a6ad219f4ed48a1830d0ef3c9617d006 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_20966: c703d855f95d0bfc6c328cb7ae88c480e1ee2a98 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
c703d855f95d drm/i915/selftests: fixup igt_shrink_thp
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/index.html
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/selftests: fixup igt_shrink_thp (rev2)
In reply to Matthew Auld== Series Details ==
== Series Details ==
Series: drm/i915/selftests: fixup igt_shrink_thp (rev2)
URL : https://patchwork.freedesktop.org/series/93128/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10552_full -> Patchwork_20966_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_20966_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_create@create-massive:
- shard-apl: NOTRUN -> [DMESG-WARN][1] ([i915#3002])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl8/igt@[email protected]
* igt@gem_ctx_persistence@legacy-engines-mixed-process:
- shard-snb: NOTRUN -> [SKIP][2] ([fdo#109271] / [i915#1099]) +5 similar issues
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-snb2/igt@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-glk: [PASS][3] -> [FAIL][4] ([i915#2846])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-glk9/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-glk8/igt@[email protected]
* igt@gem_exec_fair@basic-flow@rcs0:
- shard-skl: NOTRUN -> [SKIP][5] ([fdo#109271]) +155 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl10/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none-share@rcs0:
- shard-apl: [PASS][6] -> [SKIP][7] ([fdo#109271])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-apl8/igt@gem_exec_fair@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vcs0:
- shard-kbl: [PASS][8] -> [FAIL][9] ([i915#2842]) +2 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-kbl6/igt@gem_exec_fair@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-kbl7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-solo@rcs0:
- shard-glk: [PASS][10] -> [FAIL][11] ([i915#2842])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-glk4/igt@gem_exec_fair@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-glk2/igt@gem_exec_fair@[email protected]
* igt@gem_huc_copy@huc-copy:
- shard-apl: NOTRUN -> [SKIP][12] ([fdo#109271] / [i915#2190])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl3/igt@[email protected]
* igt@gem_mmap_gtt@cpuset-medium-copy:
- shard-glk: [PASS][13] -> [FAIL][14] ([i915#1888] / [i915#307])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-glk1/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-glk3/igt@[email protected]
* igt@gem_pread@exhaustion:
- shard-snb: NOTRUN -> [WARN][15] ([i915#2658])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-snb2/igt@[email protected]
* igt@gem_userptr_blits@dmabuf-sync:
- shard-apl: NOTRUN -> [SKIP][16] ([fdo#109271] / [i915#3323])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl1/igt@[email protected]
- shard-skl: NOTRUN -> [SKIP][17] ([fdo#109271] / [i915#3323])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl10/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][18] ([fdo#109271] / [i915#3323])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-glk1/igt@[email protected]
* igt@gem_userptr_blits@input-checking:
- shard-snb: NOTRUN -> [DMESG-WARN][19] ([i915#3002])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-snb6/igt@[email protected]
* igt@gem_userptr_blits@vma-merge:
- shard-snb: NOTRUN -> [FAIL][20] ([i915#2724])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-snb2/igt@[email protected]
- shard-apl: NOTRUN -> [FAIL][21] ([i915#3318])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl1/igt@[email protected]
- shard-glk: NOTRUN -> [FAIL][22] ([i915#3318])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-glk1/igt@[email protected]
- shard-skl: NOTRUN -> [FAIL][23] ([i915#3318])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl10/igt@[email protected]
* igt@gem_workarounds@suspend-resume-fd:
- shard-skl: [PASS][24] -> [INCOMPLETE][25] ([i915#198])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-skl5/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl1/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-fence:
- shard-iclb: NOTRUN -> [WARN][26] ([i915#2684])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-iclb8/igt@[email protected]
* igt@i915_pm_rpm@modeset-lpsp-stress:
- shard-apl: NOTRUN -> [SKIP][27] ([fdo#109271]) +307 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl3/igt@[email protected]
* igt@i915_suspend@sysfs-reader:
- shard-apl: NOTRUN -> [DMESG-WARN][28] ([i915#180]) +1 similar issue
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl3/igt@[email protected]
* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180-hflip:
- shard-skl: NOTRUN -> [SKIP][29] ([fdo#109271] / [i915#3777])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl10/igt@[email protected]
* igt@kms_ccs@pipe-a-missing-ccs-buffer-y_tiled_gen12_rc_ccs_cc:
- shard-apl: NOTRUN -> [SKIP][30] ([fdo#109271] / [i915#3886]) +12 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl3/igt@kms_ccs@pipe-a-missing-ccs-buffer-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc:
- shard-skl: NOTRUN -> [SKIP][31] ([fdo#109271] / [i915#3886]) +6 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl10/igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-c-crc-primary-rotation-180-y_tiled_gen12_mc_ccs:
- shard-glk: NOTRUN -> [SKIP][32] ([fdo#109271] / [i915#3886]) +1 similar issue
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-glk1/igt@kms_ccs@pipe-c-crc-primary-rotation-180-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-d-bad-pixel-format-y_tiled_ccs:
- shard-snb: NOTRUN -> [SKIP][33] ([fdo#109271]) +513 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-snb5/igt@kms_ccs@pipe-d-bad-pixel-format-y_tiled_ccs.html
* igt@kms_chamelium@hdmi-aspect-ratio:
- shard-skl: NOTRUN -> [SKIP][34] ([fdo#109271] / [fdo#111827]) +11 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl6/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- shard-snb: NOTRUN -> [SKIP][35] ([fdo#109271] / [fdo#111827]) +28 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-snb5/igt@[email protected]
* igt@kms_chamelium@vga-hpd:
- shard-apl: NOTRUN -> [SKIP][36] ([fdo#109271] / [fdo#111827]) +24 similar issues
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl3/igt@[email protected]
* igt@kms_color@pipe-c-ctm-green-to-red:
- shard-skl: [PASS][37] -> [DMESG-WARN][38] ([i915#1982]) +1 similar issue
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-skl1/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl8/igt@[email protected]
* igt@kms_color_chamelium@pipe-b-ctm-limited-range:
- shard-glk: NOTRUN -> [SKIP][39] ([fdo#109271] / [fdo#111827]) +2 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-glk1/igt@[email protected]
* igt@kms_content_protection@lic:
- shard-apl: NOTRUN -> [TIMEOUT][40] ([i915#1319]) +2 similar issues
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl1/igt@[email protected]
* igt@kms_content_protection@uevent:
- shard-apl: NOTRUN -> [FAIL][41] ([i915#2105])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl6/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-alpha-opaque:
- shard-snb: NOTRUN -> [FAIL][42] ([i915#4024])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-snb5/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-max-size-sliding:
- shard-iclb: NOTRUN -> [SKIP][43] ([fdo#109278]) +2 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-iclb8/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-kbl: [PASS][44] -> [DMESG-WARN][45] ([i915#180]) +1 similar issue
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-kbl1/igt@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-kbl4/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-256x256-rapid-movement:
- shard-kbl: NOTRUN -> [SKIP][46] ([fdo#109271]) +9 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-kbl1/igt@[email protected]
* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy:
- shard-glk: [PASS][47] -> [FAIL][48] ([i915#72])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-glk4/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-glk2/igt@[email protected]
* igt@kms_cursor_legacy@cursora-vs-flipb-varying-size:
- shard-iclb: NOTRUN -> [SKIP][49] ([fdo#109274] / [fdo#109278])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-iclb6/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-skl: [PASS][50] -> [FAIL][51] ([i915#2346] / [i915#533])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-skl3/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl4/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
* igt@kms_cursor_legacy@pipe-d-torture-bo:
- shard-glk: NOTRUN -> [SKIP][52] ([fdo#109271] / [i915#533])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-glk1/igt@[email protected]
- shard-skl: NOTRUN -> [SKIP][53] ([fdo#109271] / [i915#533]) +1 similar issue
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl10/igt@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@c-dp1:
- shard-apl: [PASS][54] -> [DMESG-WARN][55] ([i915#180]) +2 similar issues
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-apl3/igt@kms_flip@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl2/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs:
- shard-skl: NOTRUN -> [SKIP][56] ([fdo#109271] / [i915#2672])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl6/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html
- shard-iclb: NOTRUN -> [SKIP][57] ([i915#2587])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-iclb6/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilercccs:
- shard-apl: NOTRUN -> [SKIP][58] ([fdo#109271] / [i915#2672])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl3/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-indfb-pgflip-blt:
- shard-glk: NOTRUN -> [SKIP][59] ([fdo#109271]) +37 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-glk1/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-indfb-pgflip-blt.html
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-spr-indfb-fullscreen:
- shard-iclb: NOTRUN -> [SKIP][60] ([fdo#109280])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-iclb6/igt@kms_frontbuffer_tracking@psr-2p-scndscrn-spr-indfb-fullscreen.html
* igt@kms_hdr@bpc-switch-dpms:
- shard-skl: [PASS][61] -> [FAIL][62] ([i915#1188])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-skl4/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl2/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-7efc:
- shard-skl: NOTRUN -> [FAIL][63] ([fdo#108145] / [i915#265]) +1 similar issue
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl6/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-max:
- shard-glk: NOTRUN -> [FAIL][64] ([fdo#108145] / [i915#265])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-glk1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-basic:
- shard-apl: NOTRUN -> [FAIL][65] ([fdo#108145] / [i915#265]) +3 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl7/igt@[email protected]
* igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping:
- shard-skl: NOTRUN -> [SKIP][66] ([fdo#109271] / [i915#2733])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl10/igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping.html
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-4:
- shard-apl: NOTRUN -> [SKIP][67] ([fdo#109271] / [i915#658]) +6 similar issues
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl8/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-1:
- shard-skl: NOTRUN -> [SKIP][68] ([fdo#109271] / [i915#658]) +3 similar issues
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl6/igt@[email protected]
* igt@kms_psr2_su@page_flip:
- shard-glk: NOTRUN -> [SKIP][69] ([fdo#109271] / [i915#658]) +1 similar issue
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-glk1/igt@kms_psr2_su@page_flip.html
* igt@kms_psr@psr2_sprite_mmap_gtt:
- shard-iclb: [PASS][70] -> [SKIP][71] ([fdo#109441])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-iclb2/igt@kms_psr@psr2_sprite_mmap_gtt.html
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-iclb8/igt@kms_psr@psr2_sprite_mmap_gtt.html
* igt@kms_setmode@basic:
- shard-snb: NOTRUN -> [FAIL][72] ([i915#31])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-snb5/igt@[email protected]
* igt@kms_vblank@pipe-d-ts-continuation-suspend:
- shard-tglb: [PASS][73] -> [TIMEOUT][74] ([i915#2411])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-tglb8/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-tglb5/igt@[email protected]
* igt@kms_vblank@pipe-d-wait-idle:
- shard-apl: NOTRUN -> [SKIP][75] ([fdo#109271] / [i915#533]) +4 similar issues
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl6/igt@[email protected]
* igt@prime_udl:
- shard-iclb: NOTRUN -> [SKIP][76] ([fdo#109291])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-iclb8/igt@prime_udl.html
* igt@sysfs_clients@create:
- shard-apl: NOTRUN -> [SKIP][77] ([fdo#109271] / [i915#2994]) +6 similar issues
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl8/igt@[email protected]
* igt@sysfs_clients@recycle-many:
- shard-glk: NOTRUN -> [SKIP][78] ([fdo#109271] / [i915#2994]) +1 similar issue
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-glk1/igt@[email protected]
- shard-skl: NOTRUN -> [SKIP][79] ([fdo#109271] / [i915#2994]) +1 similar issue
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl10/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_isolation@preservation-s3@vecs0:
- shard-kbl: [DMESG-WARN][80] ([i915#180]) -> [PASS][81]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-kbl4/igt@gem_ctx_isolation@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-kbl1/igt@gem_ctx_isolation@[email protected]
* igt@gem_exec_fair@basic-flow@rcs0:
- shard-tglb: [FAIL][82] ([i915#2842]) -> [PASS][83]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-tglb7/igt@gem_exec_fair@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-tglb1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none-share@rcs0:
- shard-iclb: [FAIL][84] ([i915#2842]) -> [PASS][85]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-iclb3/igt@gem_exec_fair@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-iclb4/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-glk: [FAIL][86] ([i915#2842]) -> [PASS][87]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-glk3/igt@gem_exec_fair@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-glk3/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vcs1:
- shard-kbl: [FAIL][88] ([i915#2842]) -> [PASS][89] +1 similar issue
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-kbl7/igt@gem_exec_fair@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-kbl3/igt@gem_exec_fair@[email protected]
* igt@gem_mmap_gtt@cpuset-big-copy-odd:
- shard-glk: [FAIL][90] ([i915#1888] / [i915#307]) -> [PASS][91]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-glk1/igt@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-glk5/igt@[email protected]
* igt@gen9_exec_parse@allowed-all:
- shard-glk: [DMESG-WARN][92] ([i915#1436] / [i915#716]) -> [PASS][93]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-glk3/igt@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-glk1/igt@[email protected]
* igt@i915_pm_backlight@fade_with_suspend:
- shard-skl: [INCOMPLETE][94] ([i915#198]) -> [PASS][95] +1 similar issue
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-skl8/igt@i915_pm_backlight@fade_with_suspend.html
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl10/igt@i915_pm_backlight@fade_with_suspend.html
* igt@kms_big_fb@x-tiled-32bpp-rotate-180:
- shard-glk: [DMESG-WARN][96] ([i915#118] / [i915#95]) -> [PASS][97]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-glk2/igt@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-glk8/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip:
- shard-iclb: [DMESG-WARN][98] ([i915#3621]) -> [PASS][99]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-iclb1/igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip.html
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-iclb6/igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip.html
* igt@kms_flip@2x-flip-vs-expired-vblank@ac-hdmi-a1-hdmi-a2:
- shard-glk: [FAIL][100] ([i915#79]) -> [PASS][101]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-glk8/igt@kms_flip@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-glk9/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@c-edp1:
- shard-skl: [FAIL][102] ([i915#79]) -> [PASS][103]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-skl6/igt@kms_flip@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl6/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate-interruptible@a-edp1:
- shard-skl: [FAIL][104] ([i915#2122]) -> [PASS][105]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-skl8/igt@kms_flip@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl5/igt@kms_flip@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend@pipe-a-planes:
- shard-apl: [DMESG-WARN][106] ([i915#180]) -> [PASS][107]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-apl2/igt@kms_plane@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl1/igt@kms_plane@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [FAIL][108] ([fdo#108145] / [i915#265]) -> [PASS][109] +1 similar issue
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-skl9/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl3/igt@[email protected]
* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: [SKIP][110] ([fdo#109441]) -> [PASS][111] +1 similar issue
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-iclb1/igt@kms_psr@psr2_primary_mmap_cpu.html
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-iclb2/igt@kms_psr@psr2_primary_mmap_cpu.html
#### Warnings ####
* igt@i915_pm_rc6_residency@rc6-idle:
- shard-tglb: [WARN][112] ([i915#2681] / [i915#2684]) -> [FAIL][113] ([i915#2681] / [i915#3591])
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-tglb5/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-tglb3/igt@[email protected]
- shard-iclb: [WARN][114] ([i915#1804] / [i915#2684]) -> [WARN][115] ([i915#2684])
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-iclb6/igt@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-iclb1/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-4:
- shard-iclb: [SKIP][116] ([i915#2920]) -> [SKIP][117] ([i915#658])
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-iclb2/igt@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-iclb8/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-5:
- shard-iclb: [SKIP][118] ([i915#658]) -> [SKIP][119] ([i915#2920])
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-iclb1/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-iclb2/igt@[email protected]
* igt@runner@aborted:
- shard-kbl: ([FAIL][120], [FAIL][121], [FAIL][122], [FAIL][123]) ([i915#1436] / [i915#180] / [i915#3002] / [i915#3363]) -> ([FAIL][124], [FAIL][125], [FAIL][126], [FAIL][127]) ([i915#1436] / [i915#180] / [i915#1814] / [i915#3002] / [i915#3363])
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-kbl4/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-kbl4/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-kbl3/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-kbl3/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-kbl4/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-kbl4/igt@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-kbl4/igt@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-kbl3/igt@[email protected]
- shard-iclb: ([FAIL][128], [FAIL][129], [FAIL][130]) ([i915#1814] / [i915#3002]) -> ([FAIL][131], [FAIL][132]) ([i915#3002])
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-iclb1/igt@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-iclb5/igt@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-iclb4/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-iclb5/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-iclb1/igt@[email protected]
- shard-apl: ([FAIL][133], [FAIL][134], [FAIL][135], [FAIL][136]) ([i915#180] / [i915#1814] / [i915#3002] / [i915#3363]) -> ([FAIL][137], [FAIL][138], [FAIL][139], [FAIL][140], [FAIL][141], [FAIL][142], [FAIL][143]) ([fdo#109271] / [i915#180] / [i915#1814] / [i915#3002] / [i915#3363])
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-apl6/igt@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-apl2/igt@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-apl3/igt@[email protected]
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-apl6/igt@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl6/igt@[email protected]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl2/igt@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl3/igt@[email protected]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl2/igt@[email protected]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl8/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl2/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-apl8/igt@[email protected]
- shard-skl: ([FAIL][144], [FAIL][145], [FAIL][146], [FAIL][147]) ([i915#1436] / [i915#1814] / [i915#2029] / [i915#3002] / [i915#3363]) -> ([FAIL][148], [FAIL][149], [FAIL][150]) ([i915#1436] / [i915#3002] / [i915#3363])
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-skl3/igt@[email protected]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-skl8/igt@[email protected]
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-skl5/igt@[email protected]
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10552/shard-skl7/igt@[email protected]
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl9/igt@[email protected]
[149]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl4/igt@[email protected]
[150]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/shard-skl7/igt@[email protected]
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109280]: https://bugs.freedesktop.org/show_bu
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20966/index.html
Quoted 52 lines · Matthew Auld
Since the object might still be active here, the
shrink_allwill simply ignore it, which blows up in the test, since the pages will still be there. Currently THP is disabled which should result in the test being skipped, but if we ever re-enable THP we might start seeing the failure. Fix this by forcingI915_SHRINK_ACTIVE.v2: Some machine in the shard runs doesn't seem to have any available swap when running this test. Try to handle this.
Signed-off-by Matthew Auld <[email protected]>Cc Tvrtko Ursulin <[email protected]>Cc Thomas Hellström <[email protected]>Reviewed-by Tvrtko Ursulin <[email protected]> #v1--- .../gpu/drm/i915/gem/selftests/huge_pages.c | 31 ++++++++++++++----- 1 file changed, 24 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/gem/selftests/huge_pages.c +13
-2@@ -1519,6 +1519,7 @@ static int igt_shrink_thp(void *arg)struct i915_vma *vma;unsigned int flags =PIN_USER ;unsigned int n; +bool should_swap;int err =0 ;/* @@ -1567,23 +1568,39 @@ static int igt_shrink_thp(void *arg)break ; }i915_gem_context_unlock_engines (ctx); +/* +* Nuke everything *before* we unpin the pages so we can be reasonably +* sure that when later checking get_nr_swap_pages() that some random +* leftover object doesn't steal the remaining swap space. +*/ +i915_gem_shrink (NULL , i915,-1UL ,NULL , +I915_SHRINK_BOUND | +I915_SHRINK_UNBOUND | +I915_SHRINK_ACTIVE );i915_vma_unpin (vma);if (err) goto out_put; +/* -* Now that the pages are *unpinned* shrink-all should invoke -* shmem to truncate our pages. +* Now that the pages are *unpinned* shrinking should invoke +* shmem to truncate our pages, if we have available swap.
drivers/gpu/drm/i915/gem/selftests/huge_pages.c static int igt_shrink_thp(void *arg) · line 1594
Quoted 10 lines
drivers/gpu/drm/i915/gem/selftests/huge_pages.c +6
-3*/ -i915_gem_shrink_all (i915); -if (i915_gem_object_has_pages (obj)) { -pr_err ("shrink-all didn't truncate the pages\n" ); + should_swap =get_nr_swap_pages () >0 ; +i915_gem_shrink (NULL , i915,-1UL ,NULL , +I915_SHRINK_BOUND | +I915_SHRINK_UNBOUND | +I915_SHRINK_ACTIVE ); +if (should_swap ==i915_gem_object_has_pages (obj)) {
Hmm is there any value running the test if no swap (given objects used by the test are "willneed"), or you could simplify and just do early skip?
Regards,
Tvrtko
Quoted 15 lines
drivers/gpu/drm/i915/gem/selftests/huge_pages.c +5
-2+pr_err ("unexpected pages mismatch, should_swap=%s\n" , +yesno (should_swap)); err = -EINVAL ; goto out_put; } -if (obj->mm.page_sizes.sg || obj->mm.page_sizes.phys) { -pr_err ("residual page-size bits left\n" ); +if (should_swap == (obj->mm.page_sizes.sg || obj->mm.page_sizes.phys)) { +pr_err ("unexpected residual page-size bits, should_swap=%s\n" , +yesno (should_swap)); err = -EINVAL ; goto out_put; }
Quoted 58 lines · Tvrtko Ursulin
Quoted 56 lines · Matthew Auld
Since the object might still be active here, the
shrink_allwill simply ignore it, which blows up in the test, since the pages will still be there. Currently THP is disabled which should result in the test being skipped, but if we ever re-enable THP we might start seeing the failure. Fix this by forcingI915_SHRINK_ACTIVE.v2: Some machine in the shard runs doesn't seem to have any available swap when running this test. Try to handle this.
Signed-off-by Matthew Auld <[email protected]>Cc Tvrtko Ursulin <[email protected]>Cc Thomas Hellström <[email protected]>Reviewed-by Tvrtko Ursulin <[email protected]> #v1---
.../gpu/drm/i915/gem/selftests/huge_pages.c | 31 ++++++++++++++-----1 file changed, 24 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/gem/selftests/huge_pages.c +3
-0@@ -1519,6 +1519,7 @@ static int igt_shrink_thp(void *arg) struct i915_vma *vma; unsigned int flags = PIN_USER; unsigned int n; + bool should_swap; int err = 0; /*@@ -1567,23 +1568,39 @@ static int igt_shrink_thp(void *arg) break; } i915_gem_context_unlock_engines(ctx); + /* +* Nuke everything *before* we unpin the pages so we can be reasonably
+ * sure that when later checkingget_nr_swap_pages()that some random
+ * leftover object doesn't steal the remaining swap space. + */
+ i915_gem_shrink(NULL, i915, -1UL, NULL,
+I915_SHRINK_BOUND|
+I915_SHRINK_UNBOUND|
+I915_SHRINK_ACTIVE);
i915_vma_unpin(vma);
if (err)
gotoout_put;
+
/*
- * Now that the pages are *unpinned* shrink-all should invoke - * shmem to truncate our pages.
+ * Now that the pages are *unpinned* shrinking should invoke + * shmem to truncate our pages, if we have available swap. */
-i915_gem_shrink_all(i915);
- if (i915_gem_object_has_pages(obj)) {
-pr_err("shrink-all didn't truncate the pages\n");
Quoted 8 lines
Quoted 6 lines
+
should_swap=get_nr_swap_pages()> 0;
+ i915_gem_shrink(NULL, i915, -1UL, NULL,
+I915_SHRINK_BOUND|
+I915_SHRINK_UNBOUND|
+I915_SHRINK_ACTIVE);
+ if (should_swap==i915_gem_object_has_pages(obj)) {Hmm is there any value running the test if no swap (given objects used by the test are "willneed"), or you could simplify and just do early skip?
Maybe. My thinking was that this adds some coverage if say the device is not configured with swap. i.e assert that the pages don't magically disappear, and that their contents still persist etc.
Happy to make it skip instead though?
Quoted 20 lines
Regards,
Tvrtko
Quoted 15 lines
+
pr_err("unexpected pages mismatch, should_swap=%s\n", + yesno(should_swap));
err =-EINVAL;
gotoout_put;
}
- if (obj->mm.page_sizes.sg||obj->mm.page_sizes.phys) { -pr_err("residual page-size bits left\n");
+ if (should_swap== (obj->mm.page_sizes.sg||obj->mm.page_sizes.phys)) {
+ pr_err("unexpected residual page-size bits, should_swap=%s\n", +yesno(should_swap));
err =-EINVAL;
gotoout_put;
}
Quoted 68 lines · Matthew Auld
Quoted 58 lines · Tvrtko Ursulin
Quoted 56 lines · Matthew Auld
Since the object might still be active here, the
shrink_allwill simply ignore it, which blows up in the test, since the pages will still be there. Currently THP is disabled which should result in the test being skipped, but if we ever re-enable THP we might start seeing the failure. Fix this by forcingI915_SHRINK_ACTIVE.v2: Some machine in the shard runs doesn't seem to have any available swap when running this test. Try to handle this.
Signed-off-by Matthew Auld <[email protected]>Cc Tvrtko Ursulin <[email protected]>Cc Thomas Hellström <[email protected]>Reviewed-by Tvrtko Ursulin <[email protected]> #v1---
.../gpu/drm/i915/gem/selftests/huge_pages.c | 31 ++++++++++++++-----1 file changed, 24 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/gem/selftests/huge_pages.c +3
-0@@ -1519,6 +1519,7 @@ static int igt_shrink_thp(void *arg) struct i915_vma *vma; unsigned int flags = PIN_USER; unsigned int n; + bool should_swap; int err = 0; /*@@ -1567,23 +1568,39 @@ static int igt_shrink_thp(void *arg) break; } i915_gem_context_unlock_engines(ctx); + /* +* Nuke everything *before* we unpin the pages so we can be reasonably
+ * sure that when later checkingget_nr_swap_pages()that some random
+ * leftover object doesn't steal the remaining swap space. + */
+ i915_gem_shrink(NULL, i915, -1UL, NULL,
+I915_SHRINK_BOUND|
+I915_SHRINK_UNBOUND|
+I915_SHRINK_ACTIVE);
i915_vma_unpin(vma);
if (err)
gotoout_put;
+
/*
- * Now that the pages are *unpinned* shrink-all should invoke - * shmem to truncate our pages.
+ * Now that the pages are *unpinned* shrinking should invoke + * shmem to truncate our pages, if we have available swap. */
-i915_gem_shrink_all(i915);
- if (i915_gem_object_has_pages(obj)) {
-pr_err("shrink-all didn't truncate the pages\n");Quoted 8 lines
Quoted 6 lines
+
should_swap=get_nr_swap_pages()> 0;
+ i915_gem_shrink(NULL, i915, -1UL, NULL,
+I915_SHRINK_BOUND|
+I915_SHRINK_UNBOUND|
+I915_SHRINK_ACTIVE);
+ if (should_swap==i915_gem_object_has_pages(obj)) {Hmm is there any value running the test if no swap (given objects used by the test are "willneed"), or you could simplify and just do early skip?
Quoted 3 lines
Maybe. My thinking was that this adds some coverage if say the device is not configured with swap. i.e assert that the pages don't magically disappear, and that their contents still persist etc.
Happy to make it skip instead though?
So reducing it to a basic shrinker test in that case. Hm.. do you know if we have a non THP specific tests for that already somewhere in selftests (I can't spot any), or just in IGT?
If we indeed don't have it in selftests, then I guess question is whether it is warranted to "hide" such a basic test in the THP "drawer", or instead adding a generic shrinker test should be considered. (And one could then follow with a question should a basic generic test have a THP sub-test.)
It's hard to say where the boundary for selftests-vs-IGT coverage should be in this case. I mean would it be warranted to add such a generic shrinker selftest. It is mostly testable from userspace, but kernel can do a few more introspections and sanity checks at cost of growing kernel code.
Regards,
Tvrtko
Quoted 21 lines
Quoted 21 lines
Regards,
Tvrtko
Quoted 15 lines
+
pr_err("unexpected pages mismatch, should_swap=%s\n", + yesno(should_swap));
err =-EINVAL;
gotoout_put;
}
- if (obj->mm.page_sizes.sg||obj->mm.page_sizes.phys) { -pr_err("residual page-size bits left\n");
+ if (should_swap== (obj->mm.page_sizes.sg||obj->mm.page_sizes.phys)) {
+ pr_err("unexpected residual page-size bits, should_swap=%s\n", +yesno(should_swap));
err =-EINVAL;
gotoout_put;
}
Quoted 71 lines · Tvrtko Ursulin
Quoted 69 lines · Matthew Auld
Quoted 67 lines · Tvrtko Ursulin
Quoted 55 lines · Matthew Auld
Since the object might still be active here, the
shrink_allwill simply ignore it, which blows up in the test, since the pages will still be there. Currently THP is disabled which should result in the test being skipped, but if we ever re-enable THP we might start seeing the failure. Fix this by forcingI915_SHRINK_ACTIVE.v2: Some machine in the shard runs doesn't seem to have any available swap when running this test. Try to handle this.
Signed-off-by Matthew Auld <[email protected]>Cc Tvrtko Ursulin <[email protected]>Cc Thomas Hellström <[email protected]>Reviewed-by Tvrtko Ursulin <[email protected]> #v1---
.../gpu/drm/i915/gem/selftests/huge_pages.c | 31
++++++++++++++-----1 file changed, 24 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/gem/selftests/huge_pages.c +3
-0@@ -1519,6 +1519,7 @@ static int igt_shrink_thp(void *arg) struct i915_vma *vma; unsigned int flags = PIN_USER; unsigned int n; + bool should_swap; int err = 0; /*@@ -1567,23 +1568,39 @@ static int igt_shrink_thp(void *arg) break; } i915_gem_context_unlock_engines(ctx); + /* +* Nuke everything *before* we unpin the pages so we can be reasonably
+ * sure that when later checkingget_nr_swap_pages()that some random
+ * leftover object doesn't steal the remaining swap space. + */
+ i915_gem_shrink(NULL, i915, -1UL, NULL,
+I915_SHRINK_BOUND|
+I915_SHRINK_UNBOUND|
+I915_SHRINK_ACTIVE);
i915_vma_unpin(vma);
if (err)
gotoout_put;
+
/*
- * Now that the pages are *unpinned* shrink-all should invoke - * shmem to truncate our pages.
+ * Now that the pages are *unpinned* shrinking should invoke + * shmem to truncate our pages, if we have available swap. */
-i915_gem_shrink_all(i915);Quoted 8 lines
- if (
i915_gem_object_has_pages(obj)) {
-pr_err("shrink-all didn't truncate the pages\n"); +should_swap=get_nr_swap_pages()> 0;
+ i915_gem_shrink(NULL, i915, -1UL, NULL,
+I915_SHRINK_BOUND|
+I915_SHRINK_UNBOUND|
+I915_SHRINK_ACTIVE);
+ if (should_swap==i915_gem_object_has_pages(obj)) {Hmm is there any value running the test if no swap (given objects used by the test are "willneed"), or you could simplify and just do early skip?
Quoted 5 lines
Quoted 3 lines
Maybe. My thinking was that this adds some coverage if say the device is not configured with swap. i.e assert that the pages don't magically disappear, and that their contents still persist etc.
Happy to make it skip instead though?
So reducing it to a basic shrinker test in that case. Hm.. do you know if we have a non THP specific tests for that already somewhere in selftests (I can't spot any), or just in IGT?
Just IGT I think, outside of some cases where we call gem_shrink in very specific places, which would be hard to do from an IGT.
Quoted 2 lines
If we indeed don't have it in selftests, then I guess question is whether it is warranted to "hide" such a basic test in the THP "drawer", or instead adding a generic shrinker test should be considered. (And one could then follow with a question should a basic generic test have a THP sub-test.)
The reason for the selftest vs IGT is mostly because userspace doesn't have any knowledge of the underlying pages, or whether THP is used. IIRC there was some issue with THP + our shmem backend in the past, so also adding some basic coverage for THP + i915-gem shrinker seemed reasonable. Even if we don't have swap space, I think it still makes some sense to call into gem_shrink with our target THP object.
Quoted 28 lines
It's hard to say where the boundary for selftests-vs-IGT coverage should be in this case. I mean would it be warranted to add such a generic shrinker selftest. It is mostly testable from userspace, but kernel can do a few more introspections and sanity checks at cost of growing kernel code.
Regards,
Tvrtko
Quoted 21 lines
Quoted 21 lines
Regards,
Tvrtko
Quoted 15 lines
+
pr_err("unexpected pages mismatch, should_swap=%s\n", + yesno(should_swap));
err =-EINVAL;
gotoout_put;
}
- if (obj->mm.page_sizes.sg||obj->mm.page_sizes.phys) { -pr_err("residual page-size bits left\n");
+ if (should_swap== (obj->mm.page_sizes.sg||obj->mm.page_sizes.phys)) {
+ pr_err("unexpected residual page-size bits, should_swap=%s\n", +yesno(should_swap));
err =-EINVAL;
gotoout_put;
}
Quoted 76 lines · Matthew Auld
Quoted 75 lines · Tvrtko Ursulin
Quoted 72 lines · Matthew Auld
Quoted 59 lines · Tvrtko Ursulin
Quoted 57 lines · Matthew Auld
Since the object might still be active here, the
shrink_allwill simply ignore it, which blows up in the test, since the pages will still be there. Currently THP is disabled which should result in the test being skipped, but if we ever re-enable THP we might start seeing the failure. Fix this by forcingI915_SHRINK_ACTIVE.v2: Some machine in the shard runs doesn't seem to have any available swap when running this test. Try to handle this.
Signed-off-by Matthew Auld <[email protected]>Cc Tvrtko Ursulin <[email protected]>Cc Thomas Hellström <[email protected]>Reviewed-by Tvrtko Ursulin <[email protected]> #v1---
.../gpu/drm/i915/gem/selftests/huge_pages.c | 31
++++++++++++++-----1 file changed, 24 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/gem/selftests/huge_pages.c +3
-0@@ -1519,6 +1519,7 @@ static int igt_shrink_thp(void *arg) struct i915_vma *vma; unsigned int flags = PIN_USER; unsigned int n; + bool should_swap; int err = 0; /*@@ -1567,23 +1568,39 @@ static int igt_shrink_thp(void *arg) break; } i915_gem_context_unlock_engines(ctx); + /* +* Nuke everything *before* we unpin the pages so we can be reasonably
+ * sure that when later checkingget_nr_swap_pages()that some random
+ * leftover object doesn't steal the remaining swap space. + */
+ i915_gem_shrink(NULL, i915, -1UL, NULL,
+I915_SHRINK_BOUND|
+I915_SHRINK_UNBOUND|
+I915_SHRINK_ACTIVE);
i915_vma_unpin(vma);
if (err)
gotoout_put;
+
/*
- * Now that the pages are *unpinned* shrink-all should invoke - * shmem to truncate our pages.
+ * Now that the pages are *unpinned* shrinking should invoke + * shmem to truncate our pages, if we have available swap. */
-i915_gem_shrink_all(i915);
- if (i915_gem_object_has_pages(obj)) {
-pr_err("shrink-all didn't truncate the pages\n");Quoted 8 lines
Quoted 6 lines
+
should_swap=get_nr_swap_pages()> 0;
+ i915_gem_shrink(NULL, i915, -1UL, NULL,
+I915_SHRINK_BOUND|
+I915_SHRINK_UNBOUND|
+I915_SHRINK_ACTIVE);
+ if (should_swap==i915_gem_object_has_pages(obj)) {Hmm is there any value running the test if no swap (given objects used by the test are "willneed"), or you could simplify and just do early skip?
Maybe. My thinking was that this adds some coverage if say the device is not configured with swap. i.e assert that the pages don't magically disappear, and that their contents still persist etc.
Happy to make it skip instead though?
Quoted 8 lines
Quoted 1 line
So reducing it to a basic shrinker test in that case. Hm.. do you know if we have a non THP specific tests for that already somewhere in selftests (I can't spot any), or just in IGT?
Just IGT I think, outside of some cases where we call
gem_shrinkin very specific places, which would be hard to do from an IGT.Quoted 2 lines
If we indeed don't have it in selftests, then I guess question is whether it is warranted to "hide" such a basic test in the THP "drawer", or instead adding a generic shrinker test should be considered. (And one could then follow with a question should a basic generic test have a THP sub-test.)
The reason for the selftest vs IGT is mostly because userspace doesn't have any knowledge of the underlying pages, or whether THP is used. IIRC there was some issue with THP + our shmem backend in the past, so also adding some basic coverage for THP + i915-gem shrinker seemed reasonable. Even if we don't have swap space, I think it still makes some sense to call into
gem_shrinkwith our target THP object.
Okay, as you have probably guessed I have no strong feelings either way, so you can freely upgrade my r-b to current.
Regards,
Tvrtko
Quoted 30 lines
Quoted 30 lines
It's hard to say where the boundary for selftests-vs-IGT coverage should be in this case. I mean would it be warranted to add such a generic shrinker selftest. It is mostly testable from userspace, but kernel can do a few more introspections and sanity checks at cost of growing kernel code.
Regards,
Tvrtko
Quoted 22 lines
Quoted 22 lines
Regards,
Tvrtko
Quoted 16 lines
+
pr_err("unexpected pages mismatch, should_swap=%s\n", + yesno(should_swap));
err =-EINVAL;
gotoout_put;
}
- if (obj->mm.page_sizes.sg||obj->mm.page_sizes.phys) { -pr_err("residual page-size bits left\n");
+ if (should_swap== (obj->mm.page_sizes.sg||obj->mm.page_sizes.phys)) {
+ pr_err("unexpected residual page-size bits, should_swap=%s\n",
+yesno(should_swap));
err =-EINVAL;
gotoout_put;
}