Skip to contentSkip to conversation

tests/i915/gem_exec_params: check available memory earlier

PATCH In review Matthew Auld 3 participants 4 messages Mar 1, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/i915/gem_exec_params: check available memory earlier

The shmem mmap and pwrite interfaces conveniently let us probe just a few pages, without needing to populate the entire object. On discrete and newer platforms the kernel has dropped support for both, leaving us with MMAP_OFFSET, which will always populate the entire object, for now at least. Luckily we can just move the batch creation to after checking the available memory to ensure we don't hit -ENOMEM on such platforms.

Also it seems that doing a massive allocation(filling much of system memory) and then calling intel_purge_vm_caches() seems to take 40+ seconds, like when calling intel_require_memory(). Hence switching the ordering here should also help with that.

For reference the larger-than-life test is just a simple regression test to ensure that some very large batch buffer(greater than ~4G) can't overflow the batch_len, causing all kinds of issues. See 57b2d834bf23 ("drm/i915/gem: Support parsing of oversize batches").

Cc Ashutosh Dixit <[email protected]>
Cc Matt Roper <[email protected]>
---
 tests/i915/gem_exec_params.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tests/i915/gem_exec_params.c +3 -3
index d247b8a6..da36af74 100644
@@ -332,9 +332,7 @@ static void test_larger_than_life_batch(int fd)
 	const struct intel_execution_engine2 *e;
 	uint64_t size = 1ULL << 32; /* batch_len is __u32 as per the ABI */
 	const intel_ctx_t *ctx = intel_ctx_create_all_physical(fd);
-	struct drm_i915_gem_exec_object2 exec = {
-		.handle = batch_create_size(fd, size),
-	};
+	struct drm_i915_gem_exec_object2 exec = {};
 	struct drm_i915_gem_execbuffer2 execbuf = {
 		.buffers_ptr = to_user_pointer(&exec),
 		.buffer_count = 1,
@@ -350,6 +348,8 @@ static void test_larger_than_life_batch(int fd)
 	igt_require(size < gem_aperture_size(fd));
 	intel_require_memory(2, size, CHECK_RAM); /* batch + shadow */
 
+	exec.handle = batch_create_size(fd, size);
+
 	for_each_ctx_engine(fd, ctx, e) {
 		/* Keep the batch_len implicit [0] */
 		execbuf.flags = e->flags;
Signature · 1 line
2.34.1
#1 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for tests/i915/gem_exec_params: check available memory earlier

== Series Details ==

== Series Details ==

Series: tests/i915/gem_exec_params: check available memory earlier
URL : https://patchwork.freedesktop.org/series/100879/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_11302 -> IGTPW_6722
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/index.html

Participating hosts (48 -> 44)
------------------------------

Missing (4): fi-bsw-cyan shard-rkl shard-tglu fi-bdw-samus

Known issues
------------

Here are the changes found in IGTPW_6722 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_exec_suspend@basic-s3:
- fi-skl-6600u: NOTRUN -> [FAIL][1] ([i915#4547])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/fi-skl-6600u/igt@[email protected]

* igt@gem_exec_suspend@basic-s3@smem:
- fi-bdw-5557u: [PASS][2] -> [INCOMPLETE][3] ([i915#146])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11302/fi-bdw-5557u/igt@gem_exec_suspend@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/fi-bdw-5557u/igt@gem_exec_suspend@[email protected]

* igt@i915_pm_rpm@module-reload:
- bat-adlp-4: [PASS][4] -> [DMESG-WARN][5] ([i915#3576])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11302/bat-adlp-4/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/bat-adlp-4/igt@[email protected]

* igt@i915_selftest@live@late_gt_pm:
- fi-bsw-n3050: [PASS][6] -> [DMESG-FAIL][7] ([i915#2927] / [i915#3428])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11302/fi-bsw-n3050/igt@i915_selftest@live@late_gt_pm.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/fi-bsw-n3050/igt@i915_selftest@live@late_gt_pm.html

* igt@kms_busy@basic@flip:
- bat-adlp-4: [PASS][8] -> [DMESG-WARN][9] ([i915#1982] / [i915#3576])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11302/bat-adlp-4/igt@kms_busy@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/bat-adlp-4/igt@kms_busy@[email protected]

* igt@runner@aborted:
- fi-bsw-n3050: NOTRUN -> [FAIL][10] ([fdo#109271] / [i915#1436] / [i915#3428] / [i915#4312])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/fi-bsw-n3050/igt@[email protected]

#### Possible fixes ####

* igt@kms_flip@basic-flip-vs-modeset@a-edp1:
- bat-adlp-4: [DMESG-WARN][11] ([i915#3576]) -> [PASS][12] +1 similar issue
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11302/bat-adlp-4/igt@kms_flip@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/bat-adlp-4/igt@kms_flip@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#146]: https://gitlab.freedesktop.org/drm/intel/issues/146
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2927]: https://gitlab.freedesktop.org/drm/intel/issues/2927
[i915#3428]: https://gitlab.freedesktop.org/drm/intel/issues/3428
[i915#3576]: https://gitlab.freedesktop.org/drm/intel/issues/3576
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4547]: https://gitlab.freedesktop.org/drm/intel/issues/4547
[i915#5127]: https://gitlab.freedesktop.org/drm/intel/issues/5127

Build changes
-------------

* CI: CI-20190529 -> None
* IGT: IGT_6361 -> IGTPW_6722

CI-20190529: 20190529
CI_DRM_11302: 680d0d26eca3df6dc7c9cac1c7cbe7404a255c7e @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_6722: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/index.html
IGT_6361: 2372a4beb6a33c5f0799a4a8ccbb93794f52dbca @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/index.html

#2 lore raw

[igt-dev] ✗ Fi.CI.IGT: failure for tests/i915/gem_exec_params: check available memory earlier

In reply to Matthew Auld
== Series Details ==

== Series Details ==

Series: tests/i915/gem_exec_params: check available memory earlier
URL : https://patchwork.freedesktop.org/series/100879/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_11302_full -> IGTPW_6722_full
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with IGTPW_6722_full absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in IGTPW_6722_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/index.html

Participating hosts (13 -> 8)
------------------------------

Missing (5): pig-kbl-iris pig-glk-j5005 pig-skl-6260u shard-rkl shard-dg1

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in IGTPW_6722_full:

### IGT changes ###

#### Possible regressions ####

* igt@i915_pm_rpm@fences-dpms (NEW):
- shard-iclb: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11302/shard-iclb4/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-iclb7/igt@[email protected]

* igt@kms_flip@flip-vs-suspend-interruptible@b-edp1:
- shard-iclb: [PASS][3] -> [SKIP][4] +2 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11302/shard-iclb6/igt@kms_flip@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-iclb5/igt@kms_flip@[email protected]

* {igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-d-edp-1-downscale-with-pixel-format} (NEW):
- shard-tglb: NOTRUN -> [SKIP][5]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-tglb6/igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-d-edp-1-downscale-with-pixel-format.html

* {igt@kms_plane_scaling@downscale-with-rotation-factor-0-25@pipe-d-hdmi-a-1-downscale-with-rotation} (NEW):
- {shard-tglu}: NOTRUN -> [SKIP][6] +1 similar issue
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-tglu-6/igt@kms_plane_scaling@downscale-with-rotation-factor-0-25@pipe-d-hdmi-a-1-downscale-with-rotation.html

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* {igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-b-edp-1-downscale-with-pixel-format}:
- shard-tglb: NOTRUN -> [SKIP][7] +2 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-tglb6/igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-b-edp-1-downscale-with-pixel-format.html

* {igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-5@pipe-a-edp-1-planes-upscale-downscale}:
- shard-iclb: [PASS][8] -> [SKIP][9] +2 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11302/shard-iclb6/igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-5@pipe-a-edp-1-planes-upscale-downscale.html
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-iclb2/igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-5@pipe-a-edp-1-planes-upscale-downscale.html

* {igt@kms_plane_scaling@scaler-with-pixel-format-unity-scaling@pipe-b-edp-1-scaler-with-pixel-format}:
- shard-iclb: [PASS][10] -> [INCOMPLETE][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11302/shard-iclb8/igt@kms_plane_scaling@scaler-with-pixel-format-unity-scaling@pipe-b-edp-1-scaler-with-pixel-format.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-iclb2/igt@kms_plane_scaling@scaler-with-pixel-format-unity-scaling@pipe-b-edp-1-scaler-with-pixel-format.html

* {igt@kms_plane_scaling@upscale-with-rotation-20x20@pipe-c-hdmi-a-1-upscale-with-rotation}:
- {shard-tglu}: NOTRUN -> [SKIP][12] +9 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-tglu-3/igt@kms_plane_scaling@upscale-with-rotation-20x20@pipe-c-hdmi-a-1-upscale-with-rotation.html

New tests
---------

New tests have been introduced between CI_DRM_11302_full and IGTPW_6722_full:

### New IGT tests (203) ###

* igt@gem_create@create-clear:
- Statuses : 5 pass(s)
- Exec time: [32.59, 36.75] s

* igt@gem_ctx_engines@none:
- Statuses : 3 pass(s)
- Exec time: [0.00] s

* igt@gem_ctx_exec@basic-norecovery:
- Statuses : 6 pass(s)
- Exec time: [0.01, 0.04] s

* igt@gem_ctx_persistence@legacy-engines-queued@blt:
- Statuses : 3 pass(s)
- Exec time: [0.03, 0.14] s

* igt@gem_ctx_persistence@legacy-engines-queued@bsd:
- Statuses : 2 pass(s)
- Exec time: [0.03, 0.04] s

* igt@gem_ctx_persistence@legacy-engines-queued@bsd1:
- Statuses : 1 pass(s)
- Exec time: [0.02] s

* igt@gem_ctx_persistence@legacy-engines-queued@bsd2:
- Statuses : 1 pass(s)
- Exec time: [0.03] s

* igt@gem_ctx_persistence@legacy-engines-queued@render:
- Statuses : 3 pass(s)
- Exec time: [0.03] s

* igt@gem_ctx_persistence@legacy-engines-queued@vebox:
- Statuses : 3 pass(s)
- Exec time: [0.03, 0.04] s

* igt@gem_ctx_sseu@mmap-args:
- Statuses : 6 skip(s)
- Exec time: [0.0] s

* igt@gem_ctx_sseu@mmap-args@gtt:
- Statuses : 1 pass(s)
- Exec time: [0.00] s

* igt@gem_ctx_sseu@mmap-args@uc:
- Statuses : 1 pass(s)
- Exec time: [0.0] s

* igt@gem_ctx_sseu@mmap-args@wb:
- Statuses : 1 pass(s)
- Exec time: [0.0] s

* igt@gem_ctx_sseu@mmap-args@wc:
- Statuses : 1 pass(s)
- Exec time: [0.0] s

* igt@gem_eio@context-create:
- Statuses : 6 pass(s)
- Exec time: [0.02, 0.12] s

* igt@gem_exec_basic@basic:
- Statuses :
- Exec time: [None] s

* igt@gem_exec_create@forked:
- Statuses :
- Exec time: [None] s

* igt@gem_exec_fence@basic-await:
- Statuses : 1 skip(s)
- Exec time: [0.0] s

* igt@gem_exec_fence@basic-await@bcs0:
- Statuses : 4 pass(s)
- Exec time: [0.08, 0.11] s

* igt@gem_exec_fence@basic-await@rcs0:
- Statuses : 4 pass(s)
- Exec time: [0.07, 0.12] s

* igt@gem_exec_fence@basic-await@vcs0:
- Statuses : 4 pass(s)
- Exec time: [0.07, 0.11] s

* igt@gem_exec_fence@basic-await@vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.07] s

* igt@gem_exec_fence@basic-await@vecs0:
- Statuses : 4 pass(s)
- Exec time: [0.07, 0.12] s

* igt@gem_exec_fence@basic-busy:
- Statuses : 1 skip(s)
- Exec time: [0.0] s

* igt@gem_exec_fence@basic-busy@bcs0:
- Statuses : 3 pass(s) 2 skip(s)
- Exec time: [0.00, 0.03] s

* igt@gem_exec_fence@basic-busy@rcs0:
- Statuses : 5 pass(s)
- Exec time: [0.02, 0.04] s

* igt@gem_exec_fence@basic-busy@vcs0:
- Statuses : 5 pass(s)
- Exec time: [0.02, 0.04] s

* igt@gem_exec_fence@basic-busy@vcs1:
- Statuses : 2 pass(s)
- Exec time: [0.03, 0.04] s

* igt@gem_exec_fence@basic-busy@vecs0:
- Statuses : 5 pass(s)
- Exec time: [0.02, 0.04] s

* igt@gem_exec_fence@basic-wait:
- Statuses : 1 skip(s)
- Exec time: [0.0] s

* igt@gem_exec_fence@basic-wait@bcs0:
- Statuses : 2 pass(s) 3 skip(s)
- Exec time: [0.00, 0.04] s

* igt@gem_exec_fence@basic-wait@rcs0:
- Statuses : 5 pass(s)
- Exec time: [0.02, 0.04] s

* igt@gem_exec_fence@basic-wait@vcs0:
- Statuses : 5 pass(s)
- Exec time: [0.02, 0.04] s

* igt@gem_exec_fence@basic-wait@vcs1:
- Statuses : 3 pass(s)
- Exec time: [0.03, 0.04] s

* igt@gem_exec_fence@basic-wait@vecs0:
- Statuses : 5 pass(s)
- Exec time: [0.02, 0.03] s

* igt@gem_exec_fence@nb-await:
- Statuses : 1 skip(s)
- Exec time: [0.0] s

* igt@gem_exec_fence@nb-await@bcs0:
- Statuses : 2 pass(s)
- Exec time: [0.06, 0.07] s

* igt@gem_exec_fence@nb-await@rcs0:
- Statuses : 2 pass(s)
- Exec time: [0.06, 0.07] s

* igt@gem_exec_fence@nb-await@vcs0:
- Statuses : 2 pass(s)
- Exec time: [0.07] s

* igt@gem_exec_fence@nb-await@vecs0:
- Statuses : 2 pass(s)
- Exec time: [0.07] s

* igt@gem_exec_reloc@basic-scanout:
- Statuses :
- Exec time: [None] s

* igt@gem_exec_reloc@basic-scanout@bcs0:
- Statuses : 7 pass(s)
- Exec time: [0.07, 0.18] s

* igt@gem_exec_reloc@basic-scanout@rcs0:
- Statuses : 7 pass(s)
- Exec time: [0.10, 0.46] s

* igt@gem_exec_reloc@basic-scanout@vcs0:
- Statuses : 7 pass(s)
- Exec time: [0.07, 0.18] s

* igt@gem_exec_reloc@basic-scanout@vcs1:
- Statuses : 3 pass(s)
- Exec time: [0.11, 0.17] s

* igt@gem_exec_reloc@basic-scanout@vecs0:
- Statuses : 6 pass(s)
- Exec time: [0.11, 0.20] s

* igt@gem_exec_suspend@basic:
- Statuses :
- Exec time: [None] s

* igt@gem_exec_whisper@basic-contexts:
- Statuses : 5 pass(s)
- Exec time: [1.40, 9.14] s

* igt@gem_exec_whisper@basic-contexts-all:
- Statuses : 7 pass(s)
- Exec time: [1.64, 16.89] s

* igt@gem_exec_whisper@basic-contexts-forked:
- Statuses : 2 pass(s)
- Exec time: [10.04, 10.84] s

* igt@gem_exec_whisper@basic-contexts-forked-all:
- Statuses : 7 pass(s)
- Exec time: [19.07, 25.18] s

* igt@gem_exec_whisper@basic-contexts-priority:
- Statuses : 5 pass(s) 1 skip(s)
- Exec time: [0.00, 16.66] s

* igt@gem_exec_whisper@basic-contexts-priority-all:
- Statuses : 6 pass(s) 1 skip(s)
- Exec time: [0.0, 24.67] s

* igt@gem_exec_whisper@basic-fds:
- Statuses :
- Exec time: [None] s

* igt@gem_exec_whisper@basic-fds-all:
- Statuses : 6 pass(s)
- Exec time: [2.53, 22.18] s

* igt@gem_exec_whisper@basic-fds-forked:
- Statuses : 2 pass(s)
- Exec time: [7.08, 11.16] s

* igt@gem_exec_whisper@basic-fds-forked-all:
- Statuses : 6 pass(s)
- Exec time: [21.49, 24.41] s

* igt@gem_exec_whisper@basic-fds-priority:
- Statuses : 3 pass(s) 1 skip(s)
- Exec time: [0.00, 19.24] s

* igt@gem_exec_whisper@basic-fds-priority-all:
- Statuses : 5 pass(s) 1 skip(s)
- Exec time: [0.00, 24.18] s

* igt@gem_exec_whisper@basic-forked:
- Statuses :
- Exec time: [None] s

* igt@gem_exec_whisper@basic-forked-all:
- Statuses : 6 pass(s)
- Exec time: [13.59, 22.10] s

* igt@gem_exec_whisper@basic-normal:
- Statuses : 3 pass(s)
- Exec time: [1.16, 5.65] s

* igt@gem_exec_whisper@basic-normal-all:
- Statuses : 7 pass(s)
- Exec time: [1.31, 11.06] s

* igt@gem_exec_whisper@basic-queues:
- Statuses : 4 pass(s) 1 skip(s)
- Exec time: [0.00, 6.82] s

* igt@gem_exec_whisper@basic-queues-all:
- Statuses : 6 pass(s) 1 skip(s)
- Exec time: [0.00, 14.93] s

* igt@gem_exec_whisper@basic-queues-forked:
- Statuses : 6 pass(s) 1 skip(s)
- Exec time: [0.00, 11.17] s

* igt@gem_exec_whisper@basic-queues-forked-all:
- Statuses : 1 dmesg-warn(s) 4 pass(s) 1 skip(s)
- Exec time: [0.00, 23.25] s

* igt@gem_exec_whisper@basic-queues-priority:
- Statuses : 3 pass(s) 1 skip(s)
- Exec time: [0.00, 9.30] s

* igt@gem_exec_whisper@basic-queues-priority-all:
- Statuses : 2 pass(s) 1 skip(s)
- Exec time: [0.00, 22.94] s

* igt@gem_exec_whisper@basic-sync:
- Statuses : 6 pass(s)
- Exec time: [1.17, 8.73] s

* igt@gem_exec_whisper@basic-sync-all:
- Statuses : 5 pass(s)
- Exec time: [1.38, 15.11] s

* igt@gem_render_copy@linear:
- Statuses :
- Exec time: [None] s

* igt@gem_render_copy@mixed-tiled-to-y-tiled-ccs:
- Statuses :
- Exec time: [None] s

* igt@gem_render_copy@mixed-tiled-to-yf-tiled-ccs:
- Statuses :
- Exec time: [None] s

* igt@gem_render_copy@y-tiled-ccs-to-x-tiled:
- Statuses :
- Exec time: [None] s

* igt@gem_userptr_blits@map-fixed-invalidate-overlap-busy:
- Statuses :
- Exec time: [None] s

* igt@i915_pm_backlight@bad-brightness:
- Statuses : 2 pass(s) 4 skip(s)
- Exec time: [0.0, 0.00] s

* igt@i915_pm_backlight@basic-brightness:
- Statuses : 2 pass(s) 3 skip(s)
- Exec time: [0.0, 0.22] s

* igt@i915_pm_backlight@fade:
- Statuses : 2 pass(s) 5 skip(s)
- Exec time: [0.0, 2.36] s

* igt@i915_pm_backlight@fade_with_dpms:
- Statuses : 2 skip(s)
- Exec time: [0.0] s

* igt@i915_pm_backlight@fade_with_suspend:
- Statuses : 2 pass(s) 5 skip(s)
- Exec time: [0.0, 4.47] s

* igt@i915_pm_lpsp@screens-disabled:
- Statuses : 6 skip(s)
- Exec time: [0.0, 0.06] s

* igt@i915_pm_rc6_residency@media-rc6-accuracy:
- Statuses : 7 skip(s)
- Exec time: [0.0] s

* igt@i915_pm_rc6_residency@rc6-accuracy:
- Statuses : 1 pass(s) 1 skip(s)
- Exec time: [0.0, 3.00] s

* igt@i915_pm_rpm@basic-pci-d3-state:
- Statuses : 5 pass(s) 1 skip(s)
- Exec time: [0.0, 4.42] s

* igt@i915_pm_rpm@basic-rte:
- Statuses : 6 pass(s) 1 skip(s)
- Exec time: [1.41, 6.14] s

* igt@i915_pm_rpm@cursor:
- Statuses : 2 pass(s) 1 skip(s)
- Exec time: [0.0, 2.16] s

* igt@i915_pm_rpm@cursor-dpms:
- Statuses : 6 pass(s) 1 skip(s)
- Exec time: [0.0, 36.43] s

* igt@i915_pm_rpm@debugfs-forcewake-user:
- Statuses : 6 pass(s) 1 skip(s)
- Exec time: [0.0, 13.89] s

* igt@i915_pm_rpm@debugfs-read:
- Statuses :
- Exec time: [None] s

* igt@i915_pm_rpm@dpms-lpsp:
- Statuses : 2 pass(s) 4 skip(s)
- Exec time: [0.0, 0.55] s

* igt@i915_pm_rpm@dpms-mode-unset-lpsp:
- Statuses : 1 pass(s) 3 skip(s)
- Exec time: [0.0, 9.18] s

* igt@i915_pm_rpm@dpms-mode-unset-non-lpsp:
- Statuses : 2 pass(s) 2 skip(s)
- Exec time: [0.0, 3.63] s

* igt@i915_pm_rpm@dpms-non-lpsp:
- Statuses : 2 pass(s) 3 skip(s)
- Exec time: [0.0, 0.21] s

* igt@i915_pm_rpm@drm-resources-equal:
- Statuses : 5 pass(s) 1 skip(s)
- Exec time: [0.0, 5.86] s

* igt@i915_pm_rpm@fences:
- Statuses : 5 pass(s) 1 skip(s)
- Exec time: [0.0, 11.36] s

* igt@i915_pm_rpm@fences-dpms:
- Statuses : 1 incomplete(s) 4 pass(s) 1 skip(s)
- Exec time: [0.0, 10.83] s

* igt@i915_pm_rpm@gem-evict-pwrite:
- Statuses : 4 pass(s) 1 skip(s)
- Exec time: [0.0, 3.65] s

* igt@i915_pm_rpm@gem-execbuf:
- Statuses : 5 pass(s) 1 skip(s)
- Exec time: [0.0, 7.74] s

* igt@i915_pm_rpm@gem-execbuf-stress:
- Statuses : 6 pass(s) 1 skip(s)
- Exec time: [0.0, 42.10] s

* igt@i915_pm_rpm@gem-execbuf-stress-pc8:
- Statuses : 7 skip(s)
- Exec time: [0.0, 0.06] s

* igt@i915_pm_rpm@gem-idle:
- Statuses : 6 pass(s) 1 skip(s)
- Exec time: [0.0, 8.68] s

* igt@i915_pm_rpm@gem-mmap-type:
- Statuses : 1 skip(s)
- Exec time: [0.0] s

* igt@i915_pm_rpm@gem-mmap-type@gtt:
- Statuses : 5 pass(s)
- Exec time: [2.14, 15.07] s

* igt@i915_pm_rpm@gem-mmap-type@uc:
- Statuses : 5 pass(s)
- Exec time: [1.05, 6.72] s

* igt@i915_pm_rpm@gem-mmap-type@wb:
- Statuses : 5 pass(s)
- Exec time: [1.06, 6.39] s

* igt@i915_pm_rpm@gem-mmap-type@wc:
- Statuses : 5 pass(s)
- Exec time: [1.08, 6.72] s

* igt@i915_pm_rpm@gem-pread:
- Statuses : 2 pass(s) 1 skip(s)
- Exec time: [0.0, 5.55] s

* igt@i915_pm_rpm@i2c:
- Statuses : 4 pass(s) 1 skip(s)
- Exec time: [0.0, 6.27] s

* igt@i915_pm_rpm@legacy-planes:
- Statuses :
- Exec time: [None] s

* igt@i915_pm_rpm@legacy-planes-dpms:
- Statuses :
- Exec time: [None] s

* igt@i915_pm_rpm@modeset-lpsp:
- Statuses : 3 skip(s)
- Exec time: [0.0, 0.37] s

* igt@i915_pm_rpm@modeset-lpsp-stress:
- Statuses : 3 pass(s) 4 skip(s)
- Exec time: [0.0, 29.94] s

* igt@i915_pm_rpm@modeset-lpsp-stress-no-wait:
- Statuses : 2 pass(s) 4 skip(s)
- Exec time: [0.0, 11.26] s

* igt@i915_pm_rpm@modeset-non-lpsp:
- Statuses : 3 pass(s) 3 skip(s)
- Exec time: [0.0, 3.62] s

* igt@i915_pm_rpm@modeset-non-lpsp-stress:
- Statuses : 3 pass(s) 4 skip(s)
- Exec time: [0.0, 6.68] s

* igt@i915_pm_rpm@modeset-non-lpsp-stress-no-wait:
- Statuses : 2 pass(s) 2 skip(s)
- Exec time: [0.0, 3.75] s

* igt@i915_pm_rpm@modeset-pc8-residency-stress:
- Statuses : 6 skip(s)
- Exec time: [0.0] s

* igt@i915_pm_rpm@modeset-stress-extra-wait:
- Statuses :
- Exec time: [None] s

* igt@i915_pm_rpm@pc8-residency:
- Statuses : 7 skip(s)
- Exec time: [0.0] s

* igt@i915_pm_rpm@pm-caching:
- Statuses : 5 pass(s) 1 skip(s)
- Exec time: [0.0, 19.09] s

* igt@i915_pm_rpm@pm-tiling:
- Statuses : 6 pass(s) 1 skip(s)
- Exec time: [0.0, 7.97] s

* igt@i915_pm_rpm@reg-read-ioctl:
- Statuses : 3 pass(s) 1 skip(s)
- Exec time: [0.0, 7.46] s

* igt@i915_pm_rpm@sysfs-read:
- Statuses : 6 pass(s) 1 skip(s)
- Exec time: [0.0, 3.62] s

* igt@i915_pm_rpm@system-suspend:
- Statuses : 6 pass(s) 1 skip(s)
- Exec time: [0.0, 8.54] s

* igt@i915_pm_rpm@system-suspend-devices:
- Statuses : 2 pass(s) 1 skip(s)
- Exec time: [0.0, 6.81] s

* igt@i915_pm_rpm@system-suspend-execbuf:
- Statuses : 6 pass(s) 1 skip(s)
- Exec time: [0.0, 85.41] s

* igt@i915_pm_rpm@system-suspend-modeset:
- Statuses : 5 pass(s) 1 skip(s)
- Exec time: [0.0, 13.61] s

* igt@i915_pm_rpm@universal-planes:
- Statuses :
- Exec time: [None] s

* igt@i915_pm_rpm@universal-planes-dpms:
- Statuses :
- Exec time: [None] s

* igt@i915_pm_rps@basic-api:
- Statuses : 7 pass(s)
- Exec time: [0.00, 0.01] s

* igt@i915_pm_rps@min-max-config-idle:
- Statuses : 6 pass(s)
- Exec time: [0.15, 0.38] s

* igt@i915_pm_rps@min-max-config-loaded:
- Statuses : 3 pass(s)
- Exec time: [0.32, 0.38] s

* igt@i915_pm_rps@reset:
- Statuses : 7 pass(s)
- Exec time: [3.52, 3.63] s

* igt@i915_pm_rps@waitboost:
- Statuses : 7 pass(s)
- Exec time: [2.52, 2.57] s

* igt@i915_pm_sseu@full-enable:
- Statuses : 3 pass(s) 4 skip(s)
- Exec time: [0.0, 0.03] s

* igt@kms_atomic_interruptible@atomic-setmode:
- Statuses :
- Exec time: [None] s

* igt@kms_atomic_interruptible@legacy-dpms:
- Statuses :
- Exec time: [None] s

* igt@kms_atomic_interruptible@legacy-pageflip:
- Statuses :
- Exec time: [None] s

* igt@kms_atomic_transition@plane-use-after-nonblocking-unbind:
- Statuses :
- Exec time: [None] s

* igt@kms_busy@basic:
- Statuses :
- Exec time: [None] s

* igt@kms_busy@basic@flip:
- Statuses : 5 pass(s)
- Exec time: [0.30, 0.89] s

* igt@kms_busy@basic@modeset:
- Statuses : 5 pass(s)
- Exec time: [0.47, 3.68] s

* igt@kms_content_protection@atomic-dpms:
- Statuses : 2 skip(s)
- Exec time: [0.0, 0.01] s

* igt@kms_content_protection@dp-mst-lic-type-0:
- Statuses : 6 skip(s)
- Exec time: [0.0, 0.00] s

* igt@kms_content_protection@dp-mst-lic-type-1:
- Statuses : 7 skip(s)
- Exec time: [0.0] s

* igt@kms_content_protection@dp-mst-type-0:
- Statuses : 6 skip(s)
- Exec time: [0.0] s

* igt@kms_content_protection@dp-mst-type-1:
- Statuses : 7 skip(s)
- Exec time: [0.0, 0.00] s

* igt@kms_flip@blocking-absolute-wf_vblank:
- Statuses :
- Exec time: [None] s

* igt@kms_flip@bo-too-big:
- Statuses :
- Exec time: [None] s

* igt@kms_flip@dpms-off-confusion-interruptible:
- Statuses :
- Exec time: [None] s

* igt@kms_flip@flip-vs-dpms-off-vs-modeset:
- Statuses :
- Exec time: [None] s

* igt@kms_flip@flip-vs-modeset-vs-hang:
- Statuses :
- Exec time: [None] s

* igt@kms_flip@flip-vs-panning-vs-hang:
- Statuses :
- Exec time: [None] s

* igt@kms_flip@nonexisting-fb:
- Statuses :
- Exec time: [None] s

* igt@kms_hdr@bpc-switch:
- Statuses : 5 pass(s) 1 skip(s)
- Exec time: [0.0, 3.77] s

* igt@kms_hdr@bpc-switch-dpms:
- Statuses : 5 pass(s) 1 skip(s)
- Exec time: [0.0, 4.88] s

* igt@kms_hdr@bpc-switch-suspend:
- Statuses : 6 pass(s) 1 skip(s)
- Exec time: [0.0, 6.05] s

* igt@kms_hdr@static-swap:
- Statuses : 7 skip(s)
- Exec time: [0.0, 0.00] s

* igt@kms_hdr@static-toggle:
- Statuses : 6 skip(s)
- Exec time: [0.0] s

* igt@kms_hdr@static-toggle-dpms:
- Statuses :
- Exec time: [None] s

* igt@kms_hdr@static-toggle-suspend:
- Statuses : 5 skip(s)
- Exec time: [0.0] s

* igt@kms_lease@implicit-plane-lease:
- Statuses : 6 pass(s)
- Exec time: [0.00, 0.02] s

* igt@kms_lease@invalid-create-leases:
- Statuses : 7 pass(s)
- Exec time: [0.00, 0.01] s

* igt@kms_lease@lease-uevent:
- Statuses : 6 pass(s)
- Exec time: [1.01, 1.02] s

* igt@kms_lease@lease_invalid_plane:
- Statuses :
- Exec time: [None] s

* igt@kms_lease@master-vs-lease:
- Statuses : 7 pass(s)
- Exec time: [0.0, 0.01] s

* igt@kms_lease@multimaster-lease:
- Statuses : 4 pass(s)
- Exec time: [0.00, 0.01] s

* igt@kms_lease@possible-crtcs-filtering:
- Statuses : 7 pass(s)
- Exec time: [0.00, 0.03] s

* igt@kms_mmap_write_crc@main:
- Statuses : 7 pass(s)
- Exec time: [2.29, 14.13] s

* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-d-edp-1-downscale-with-pixel-format:
- Statuses : 1 skip(s)
- Exec time: [0.02] s

* igt@kms_plane_scaling@downscale-with-rotation-factor-0-25@pipe-b-hdmi-a-1-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [0.02] s

* igt@kms_plane_scaling@downscale-with-rotation-factor-0-25@pipe-d-hdmi-a-1-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [0.02] s

* igt@kms_plane_scaling@invalid-num-scalers@pipe-d-edp-1-invalid-num-scalers:
- Statuses : 1 pass(s)
- Exec time: [0.02] s

* igt@kms_plane_scaling@invalid-num-scalers@pipe-d-hdmi-a-1-invalid-num-scalers:
- Statuses : 1 pass(s)
- Exec time: [0.02] s

* igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-b-hdmi-a-1-planes-downscale:
- Statuses : 1 pass(s)
- Exec time: [0.13] s

* igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-d-edp-1-planes-downscale:
- Statuses : 1 pass(s)
- Exec time: [1.28] s

* igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-d-hdmi-a-1-planes-downscale:
- Statuses : 1 pass(s)
- Exec time: [0.13] s

* igt@kms_plane_scaling@planes-scaling-unity-scaling@pipe-b-hdmi-a-1-planes-unity-scaling:
- Statuses : 1 pass(s)
- Exec time: [0.12] s

* igt@kms_plane_scaling@planes-scaling-unity-scaling@pipe-d-edp-1-planes-unity-scaling:
- Statuses : 1 pass(s)
- Exec time: [1.28] s

* igt@kms_plane_scaling@planes-scaling-unity-scaling@pipe-d-hdmi-a-1-planes-unity-scaling:
- Statuses : 1 pass(s)
- Exec time: [0.12] s

* igt@kms_plane_scaling@planes-upscale-20x20@pipe-b-hdmi-a-1-planes-upscale:
- Statuses : 1 pass(s)
- Exec time: [0.10] s

* igt@kms_plane_scaling@planes-upscale-20x20@pipe-d-edp-1-planes-upscale:
- Statuses : 1 pass(s)
- Exec time: [1.22] s

* igt@kms_plane_scaling@planes-upscale-20x20@pipe-d-hdmi-a-1-planes-upscale:
- Statuses : 1 pass(s)
- Exec time: [0.10] s

* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-75@pipe-a-edp-1-planes-upscale-downscale:
- Statuses : 1 pass(s)
- Exec time: [0.20] s

* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-75@pipe-a-hdmi-a-1-planes-upscale-downscale:
- Statuses : 1 pass(s)
- Exec time: [0.36] s

* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-75@pipe-a-vga-1-planes-upscale-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.04] s

* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-75@pipe-b-edp-1-planes-upscale-downscale:
- Statuses : 1 pass(s)
- Exec time: [1.31] s

* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-75@pipe-b-hdmi-a-2-planes-upscale-downscale:
- Statuses : 1 pass(s)
- Exec time: [0.32] s

* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-75@pipe-b-vga-1-planes-upscale-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.03] s

* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-75@pipe-c-edp-1-planes-upscale-downscale:
- Statuses : 1 pass(s)
- Exec time: [1.34] s

* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-75@pipe-c-hdmi-a-1-planes-upscale-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.10] s

* igt@kms_plane_scaling@planes-upscale-factor-0-25@pipe-d-edp-1-planes-upscale:
- Statuses : 1 pass(s)
- Exec time: [1.21] s

* igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-b-hdmi-a-1-scaler-with-clipping-clamping:
- Statuses : 1 pass(s)
- Exec time: [23.04] s

* igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-d-hdmi-a-1-scaler-with-clipping-clamping:
- Statuses : 1 pass(s)
- Exec time: [0.27] s

* igt@prime_mmap@test_correct:
- Statuses :
- Exec time: [None] s

* igt@prime_mmap@test_correct_cpu_write:
- Statuses :
- Exec time: [None] s

* igt@prime_mmap@test_forked_cpu_write:
- Statuses :
- Exec time: [None] s

* igt@prime_mmap@test_invalid_sync_flags:
- Statuses :
- Exec time: [None] s

* igt@prime_mmap@test_userptr:
- Statuses :
- Exec time: [None] s

* igt@prime_vgem@basic-blt:
- Statuses : 7 pass(s)
- Exec time: [0.01, 0.07] s

* igt@prime_vgem@basic-fence-blt:
- Statuses : 5 pass(s)
- Exec time: [0.07, 0.12] s

* igt@prime_vgem@coherency-blt:
- Statuses : 7 pass(s)
- Exec time: [0.55, 5.07] s

Known issues
------------

Here are the changes found in IGTPW_6722_full that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@feature_discovery@display-2x:
- shard-tglb: NOTRUN -> [SKIP][13] ([i915#1839])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-tglb6/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][14] ([i915#1839])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-iclb4/igt@[email protected]

* igt@gem_ctx_persistence@legacy-engines-queued:
- shard-snb: NOTRUN -> [SKIP][15] ([fdo#109271] / [i915#1099]) +2 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-snb4/igt@[email protected]

* igt@gem_ctx_sseu@mmap-args (NEW):
- {shard-tglu}: NOTRUN -> [SKIP][16] ([i915#280])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-tglu-4/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][17] ([i915#280])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-tglb5/igt@[email protected]

* igt@gem_eio@in-flight-1us:
- shard-tglb: [PASS][18] -> [TIMEOUT][19] ([i915#3063])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11302/shard-tglb8/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-tglb5/igt@[email protected]

* igt@gem_eio@unwedge-stress:
- shard-tglb: [PASS][20] -> [TIMEOUT][21] ([i915#3063] / [i915#3648])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11302/shard-tglb6/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-tglb6/igt@[email protected]

* igt@gem_exec_balancer@parallel-balancer:
- shard-iclb: [PASS][22] -> [SKIP][23] ([i915#4525])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11302/shard-iclb1/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-iclb6/igt@[email protected]

* igt@gem_exec_balancer@parallel-out-fence:
- shard-kbl: NOTRUN -> [DMESG-WARN][24] ([i915#5076]) +1 similar issue
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-kbl3/igt@[email protected]

* igt@gem_exec_fair@basic-flow@rcs0:
- shard-tglb: NOTRUN -> [FAIL][25] ([i915#2842]) +6 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-tglb5/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-none@vcs0:
- shard-apl: [PASS][26] -> [FAIL][27] ([i915#2842]) +1 similar issue
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11302/shard-apl2/igt@gem_exec_fair@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-apl2/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace@rcs0:
- shard-kbl: NOTRUN -> [FAIL][28] ([i915#2842]) +4 similar issues
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-kbl3/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace@vecs0:
- shard-glk: [PASS][29] -> [FAIL][30] ([i915#2842]) +2 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11302/shard-glk3/igt@gem_exec_fair@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-glk8/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-iclb: NOTRUN -> [FAIL][31] ([i915#2849])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-iclb1/igt@gem_exec_fair@[email protected]

* igt@gem_exec_params@secure-non-root:
- shard-tglb: NOTRUN -> [SKIP][32] ([fdo#112283])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/shard-tglb7/igt@[email protected]

* igt@gem_exec_whisper@basic-queues-forked-all (NEW):
- shard-glk: [PASS][33] -> [DMESG-WARN][34] ([i915#118]) +1 similar issue
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11302/shard-glk6/igt@[email protected]
[34]: https://intel-gfx-c

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6722/index.html

Reviewed-by on v1 1/1
#3 lore raw
In reply to Matthew Auld
Quoted 13 lines · Matthew Auld

The shmem mmap and pwrite interfaces conveniently let us probe just a few pages, without needing to populate the entire object. On discrete and newer platforms the kernel has dropped support for both, leaving us with MMAP_OFFSET, which will always populate the entire object, for now at least. Luckily we can just move the batch creation to after checking the available memory to ensure we don't hit -ENOMEM on such platforms.

Also it seems that doing a massive allocation(filling much of system memory) and then calling intel_purge_vm_caches() seems to take 40+ seconds, like when calling intel_require_memory(). Hence switching the ordering here should also help with that.

Quoted 4 lines

For reference the larger-than-life test is just a simple regression test to ensure that some very large batch buffer(greater than ~4G) can't overflow the batch_len, causing all kinds of issues. See 57b2d834bf23 ("drm/i915/gem: Support parsing of oversize batches").

I believe we tried this identical patch some time but don't remember why it was never merged. Maybe it was not helping or more likely we weren't sure it wouldn't break the test somehow (considering all the shmfs/swap stuff). But if we think it's ok to merge this and may actually resolve the -ENOMEM issue, this is: