drm/i915/selftests: Delay spinner before waiting for an interrupt
Subsystems (2)
PATCH 1/1 drm/i915/selftests: Delay spinner before waiting for an interrupt
It seems that although (perhaps because of the memory stall?) the spinner has signaled that it has started, it still takes some time to spin up to 100% utilisation of the HW. Since the test depends on the full utilisation of the HW to trigger the RPS interrupt, wait a little bit and flush the interrupt status to be sure that the event we see if from the spinner.
--- drivers/gpu/drm/i915/gt/selftest_rps.c | 28 +++++++++++++++----------- 1 file changed, 16 insertions(+), 12 deletions(-)
drivers/gpu/drm/i915/gt/selftest_rps.c +16 -12
@@ -14,6 +14,20 @@ static void dummy_rps_work(struct work_struct *wrk) { } +static void sleep_for_ei (struct intel_rps *rps,int timeout_us) +{ +/* Flush any previous EI */ +usleep_range (timeout_us,2 * timeout_us); + +/* Reset the interrupt status */ +rps_disable_interrupts (rps); +GEM_BUG_ON (rps->pm_iir); +rps_enable_interrupts (rps); + +/* And then wait for the timeout, for real this time */ +usleep_range (2 * timeout_us,3 * timeout_us); +} +static int __rps_up_interrupt (struct intel_rps *rps,struct intel_engine_cs *engine,struct igt_spinner *spin)
@@ -28,7 +42,6 @@ static int __rps_up_interrupt(struct intel_rps *rps,intel_gt_pm_wait_for_idle (engine->gt);GEM_BUG_ON (rps->active); - rps->pm_iir =0 ; rps->cur_freq = rps->min_freq; rq =igt_spinner_create_request (spin, engine->kernel_context,MI_NOOP );
@@ -71,7 +84,7 @@ static int __rps_up_interrupt(struct intel_rps *rps, timeout =intel_uncore_read (uncore,GEN6_RP_UP_EI ); timeout =GT_PM_INTERVAL_TO_US (engine->i915, timeout); -usleep_range (2 * timeout,3 * timeout); +sleep_for_ei (rps, timeout);GEM_BUG_ON (i915_request_completed (rq));igt_spinner_end (spin);
@@ -122,16 +135,7 @@ static int __rps_down_interrupt(struct intel_rps *rps, timeout =intel_uncore_read (uncore,GEN6_RP_DOWN_EI ); timeout =GT_PM_INTERVAL_TO_US (engine->i915, timeout); -/* Flush any previous EI */ -usleep_range (timeout,2 * timeout); - -/* Reset the interrupt status */ -rps_disable_interrupts (rps); -GEM_BUG_ON (rps->pm_iir); -rps_enable_interrupts (rps); - -/* And then wait for the timeout, for real this time */ -usleep_range (2 * timeout,3 * timeout); +sleep_for_ei (rps, timeout);if (rps->cur_freq != rps->max_freq) { pr_err("%s: Frequency unexpectedly changed [down], now %d!\n",
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.DOCS: warning for drm/i915/selftests: Delay spinner before waiting for an interrupt
== Series Details ==
== Series Details ==
Series: drm/i915/selftests: Delay spinner before waiting for an interrupt
URL : https://patchwork.freedesktop.org/series/76049/
State : warning
== Summary ==
$ make htmldocs 2>&1 > /dev/null | grep i915 /home/cidrm/kernel/Documentation/gpu/i915.rst:610: WARNING: duplicate label gpu/i915:layout, other instance in /home/cidrm/kernel/Documentation/gpu/i915.rst
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/selftests: Delay spinner before waiting for an interrupt
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: drm/i915/selftests: Delay spinner before waiting for an interrupt
URL : https://patchwork.freedesktop.org/series/76049/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_8311 -> Patchwork_17336
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_17336 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_17336, 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/Patchwork_17336/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_17336:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live@gt_pm:
- fi-icl-dsi: [PASS][1] -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8311/fi-icl-dsi/igt@i915_selftest@live@gt_pm.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17336/fi-icl-dsi/igt@i915_selftest@live@gt_pm.html
Known issues
------------
Here are the changes found in Patchwork_17336 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live@gt_lrc:
- fi-bwr-2160: [PASS][3] -> [INCOMPLETE][4] ([i915#489])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8311/fi-bwr-2160/igt@i915_selftest@live@gt_lrc.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17336/fi-bwr-2160/igt@i915_selftest@live@gt_lrc.html
[i915#489]: https://gitlab.freedesktop.org/drm/intel/issues/489
Participating hosts (51 -> 45)
------------------------------
Missing (6): fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_8311 -> Patchwork_17336
CI-20190529: 20190529
CI_DRM_8311: 19367bb5e65eaf0719597b3ff244fd1c2ea12bda @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5593: 1c658f5e46598ae93345177d4981ef54704daec6 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_17336: d722040ae4012aacab0abd580d631b410ffee6f7 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
d722040ae401 drm/i915/selftests: Delay spinner before waiting for an interrupt
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17336/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx