drm/i915: Fix i915_driver_init_mmio error path
Subsystems (2)
PATCH 1/2 drm/i915: Fix i915_driver_init_mmio error path
In case of the error we missed to call i915_mmio_cleanup that matches earlier call to i915_mmio_setup.
--- drivers/gpu/drm/i915/i915_drv.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/i915_drv.c +1 -0
@@ -1030,6 +1030,7 @@ static int i915_driver_init_mmio(struct drm_i915_private *dev_priv) err_uncore:intel_uncore_fini (dev_priv); +i915_mmio_cleanup (dev_priv); err_bridge:pci_dev_put (dev_priv->bridge_dev);
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/2 drm/i915: Inject load failure inside intel_engines_init_mmio
We need extra load failure point to better test error path in i915_driver_init_mmio.
--- drivers/gpu/drm/i915/intel_engine_cs.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/i915/intel_engine_cs.c +3 -0
@@ -337,6 +337,9 @@ int intel_engines_init_mmio(struct drm_i915_private *dev_priv)WARN_ON (ring_mask &GENMASK (BITS_PER_TYPE (mask) -1 ,I915_NUM_ENGINES )); +if (i915_inject_load_failure ()) +return -ENODEV ; +for (i =0 ; i <ARRAY_SIZE (intel_engines); i++) {if (!HAS_ENGINE (dev_priv, i))continue ;
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915: Inject load failure inside intel_engines_init_mmio
Quoting Michal Wajdeczko (2018-10-11 14:00:08)
Quoted 6 lines
We need extra load failure point to better test error path in
i915_driver_init_mmio.Suggested-by Chris Wilson <[email protected]>Signed-off-by Michal Wajdeczko <[email protected]>Cc Chris Wilson <[email protected]>
And pushed, thanks for the bug fix and testcase.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for series starting with [1/2] drm/i915: Fix i915_driver_init_mmio error path
In reply to Michal Wajdeczko== Series Details ==
== Series Details ==
Series: series starting with [1/2] drm/i915: Fix i915_driver_init_mmio error path
URL : https://patchwork.freedesktop.org/series/50868/
State : failure
== Summary ==
= CI Bug Log - changes from CI_DRM_4969 -> Patchwork_10430 =
== Summary - FAILURE ==
Serious unknown changes coming with Patchwork_10430 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_10430, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://patchwork.freedesktop.org/api/1.0/series/50868/revisions/1/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in Patchwork_10430:
=== IGT changes ===
==== Possible regressions ====
igt@drv_selftest@live_requests:
fi-cnl-u: PASS -> INCOMPLETE== Known issues ==
Here are the changes found in Patchwork_10430 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@gem_exec_suspend@basic-s4-devices:
fi-blb-e6850: PASS -> INCOMPLETE (fdo#107718)
igt@kms_frontbuffer_tracking@basic:
fi-byt-clapper: PASS -> FAIL (fdo#103167)
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
fi-byt-clapper: PASS -> FAIL (fdo#107362, fdo#103191)
==== Possible fixes ====
igt@gem_exec_suspend@basic-s3:
fi-cfl-8109u: INCOMPLETE (fdo#108126, fdo#107187) -> PASS
igt@kms_chamelium@dp-edid-read:
fi-kbl-7500u: WARN (fdo#102672) -> PASS
igt@kms_pipe_crc_basic@nonblocking-crc-pipe-a-frame-sequence:
fi-byt-clapper: FAIL (fdo#107362, fdo#103191) -> PASS fdo#102672 https://bugs.freedesktop.org/show_bug.cgi?id=102672
fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
fdo#107187 https://bugs.freedesktop.org/show_bug.cgi?id=107187
fdo#107362 https://bugs.freedesktop.org/show_bug.cgi?id=107362
fdo#107718 https://bugs.freedesktop.org/show_bug.cgi?id=107718
fdo#108126 https://bugs.freedesktop.org/show_bug.cgi?id=108126
== Participating hosts (44 -> 41) ==
Missing (3): fi-ilk-m540 fi-byt-squawks fi-bsw-cyan
== Build changes ==
* Linux: CI_DRM_4969 -> Patchwork_10430
CI_DRM_4969: 1121d2889e57dedacc0885deaaa9de614832e62f @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4673: 54cb1aeb4e50dea9f3abae632e317875d147c4ab @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_10430: 4c8f2e1cce02cc4dfe052b971ed37dc8e3114040 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
4c8f2e1cce02 drm/i915: Inject load failure inside intel_engines_init_mmio bcd2f973c9b3 drm/i915: Fix i915_driver_init_mmio error path
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_10430/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx