Skip to contentSkip to conversation

drm/i915/selftests: Constrain mock_gtt tests to fit within RAM

PATCH In review Chris Wilson 3 participants 6 messages Jul 10, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915/selftests: Constrain mock_gtt tests to fit within RAM

Be pessimistic and presume that we actually allocate every page we exercise via the mock_gtt (e.g. for gvt). In which case we have to keep our working case under the available physical memory to prevent oom.

---
 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +2 -1
index 600a3bcbd3d6..8e2e269db97e 100644
@@ -1244,6 +1244,7 @@ static int exercise_mock(struct drm_i915_private *i915,
 				     u64 hole_start, u64 hole_end,
 				     unsigned long end_time))
 {
+	const u64 limit = totalram_pages << PAGE_SHIFT;
 	struct i915_gem_context *ctx;
 	struct i915_hw_ppgtt *ppgtt;
 	IGT_TIMEOUT(end_time);
@@ -1256,7 +1257,7 @@ static int exercise_mock(struct drm_i915_private *i915,
 	ppgtt = ctx->ppgtt;
 	GEM_BUG_ON(!ppgtt);
 
-	err = func(i915, &ppgtt->vm, 0, ppgtt->vm.total, end_time);
+	err = func(i915, &ppgtt->vm, 0, min(ppgtt->vm.total, limit), end_time);
 
 	mock_context_close(ctx);
 	return err;
Signature · 6 lines
2.18.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

✗ Fi.CI.SPARSE: warning for drm/i915/selftests: Constrain mock_gtt tests to fit within RAM

== Series Details ==

== Series Details ==

Series: drm/i915/selftests: Constrain mock_gtt tests to fit within RAM
URL : https://patchwork.freedesktop.org/series/46247/
State : warning

== Summary ==

$ dim sparse origin/drm-tip
Commit: drm/i915/selftests: Constrain mock_gtt tests to fit within RAM
+drivers/gpu/drm/i915/selftests/i915_gem_gtt.c:1260:41: warning: expression using sizeof(void)
+drivers/gpu/drm/i915/selftests/i915_gem_gtt.c:1260:41: warning: expression using sizeof(void)

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reviewed-by on v1 1/1
#2 lore raw
In reply to Chris Wilson
Quoted 6 lines · Chris Wilson

Be pessimistic and presume that we actually allocate every page we exercise via the mock_gtt (e.g. for gvt). In which case we have to keep our working case under the available physical memory to prevent oom.

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw

Quoting Matthew Auld (2018-07-10 09:27:10)

Quoted 8 lines · Chris Wilson
Quoted 6 lines

Be pessimistic and presume that we actually allocate every page we exercise via the mock_gtt (e.g. for gvt). In which case we have to keep our working case under the available physical memory to prevent oom.

Ta, fingers crossed this stops the gvt flip-flops on mock_gtt. -Chris
_______________________________________________
Intel-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#4 lore raw

✓ Fi.CI.BAT: success for drm/i915/selftests: Constrain mock_gtt tests to fit within RAM

In reply to Chris Wilson
== Series Details ==

== Series Details ==

Series: drm/i915/selftests: Constrain mock_gtt tests to fit within RAM
URL : https://patchwork.freedesktop.org/series/46247/
State : success

== Summary ==

= CI Bug Log - changes from CI_DRM_4460 -> Patchwork_9601 =

== Summary - SUCCESS ==

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/46247/revisions/1/mbox/

== Known issues ==

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

=== IGT changes ===

    ==== Issues hit ====

    igt@gem_exec_suspend@basic-s4-devices:
      {fi-kbl-8809g}:     NOTRUN -> INCOMPLETE (fdo#107139)

    igt@prime_vgem@basic-fence-flip:
      fi-ilk-650:         PASS -> FAIL (fdo#104008)

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

fdo#104008 https://bugs.freedesktop.org/show_bug.cgi?id=104008
fdo#107139 https://bugs.freedesktop.org/show_bug.cgi?id=107139

== Participating hosts (45 -> 42) ==

Additional (2): fi-skl-guc fi-kbl-8809g
Missing (5): fi-ctg-p8600 fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-hsw-4200u

== Build changes ==

* Linux: CI_DRM_4460 -> Patchwork_9601

CI_DRM_4460: 23203a4c2a0e96b19cfb35bed4ad7dcf1ff854fc @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4544: 764160f214cd916ddb79408b9f28ac0ad2df40e0 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_9601: 3d30c324a9ba8b7065775a949bd92c29034b2b2c @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

3d30c324a9ba drm/i915/selftests: Constrain mock_gtt tests to fit within RAM

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_9601/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#5 lore raw

✓ Fi.CI.IGT: success for drm/i915/selftests: Constrain mock_gtt tests to fit within RAM

In reply to Chris Wilson
== Series Details ==

== Series Details ==

Series: drm/i915/selftests: Constrain mock_gtt tests to fit within RAM
URL : https://patchwork.freedesktop.org/series/46247/
State : success

== Summary ==

= CI Bug Log - changes from CI_DRM_4460_full -> Patchwork_9601_full =

== Summary - WARNING ==

Minor unknown changes coming with Patchwork_9601_full need to be verified manually.

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

== Possible new issues ==

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

=== IGT changes ===

    ==== Warnings ====

    igt@gem_exec_schedule@deep-vebox:
      shard-kbl:          SKIP -> PASS +1

    igt@pm_rc6_residency@rc6-accuracy:
      shard-kbl:          PASS -> SKIP +1

== Known issues ==

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

=== IGT changes ===

    ==== Issues hit ====

    igt@drv_selftest@live_hangcheck:
      shard-kbl:          PASS -> DMESG-FAIL (fdo#107174, fdo#106560, fdo#106947)

    igt@kms_flip@plain-flip-fb-recreate:
      shard-glk:          PASS -> FAIL (fdo#100368)

    
    ==== Possible fixes ====

    igt@kms_flip@flip-vs-expired-vblank:
      shard-glk:          FAIL (fdo#102887) -> PASS

    igt@kms_flip_tiling@flip-x-tiled:
      shard-glk:          FAIL (fdo#107161) -> PASS +1

    igt@kms_setmode@basic:
      shard-kbl:          FAIL (fdo#99912) -> PASS

    igt@perf@blocking:
      shard-hsw:          FAIL (fdo#102252) -> PASS

fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#102252 https://bugs.freedesktop.org/show_bug.cgi?id=102252
fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887
fdo#106560 https://bugs.freedesktop.org/show_bug.cgi?id=106560
fdo#106947 https://bugs.freedesktop.org/show_bug.cgi?id=106947
fdo#107161 https://bugs.freedesktop.org/show_bug.cgi?id=107161
fdo#107174 https://bugs.freedesktop.org/show_bug.cgi?id=107174
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912

== Participating hosts (5 -> 5) ==

No changes in participating hosts

== Build changes ==

* Linux: CI_DRM_4460 -> Patchwork_9601

CI_DRM_4460: 23203a4c2a0e96b19cfb35bed4ad7dcf1ff854fc @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4544: 764160f214cd916ddb79408b9f28ac0ad2df40e0 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_9601: 3d30c324a9ba8b7065775a949bd92c29034b2b2c @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_9601/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx