drm/i915/gt: Ignore incomplete engines after init failure
Subsystems (2)
PATCH 1/1 drm/i915/gt: Ignore incomplete engines after init failure
Do not expose incomplete engines to the user after we fail to setup the GT.
--- drivers/gpu/drm/i915/gt/intel_engine_user.c | 4 ++++ drivers/gpu/drm/i915/gt/intel_gt.h | 7 ++++++- drivers/gpu/drm/i915/gt/intel_reset.c | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gt/intel_engine_user.c +4 -0
@@ -11,6 +11,7 @@#include "i915_drv.h" #include "intel_engine.h" #include "intel_engine_user.h" +#include "intel_gt.h" struct intel_engine_cs *intel_engine_lookup_user (struct drm_i915_private *i915,u8 class,u8 instance)
@@ -200,6 +201,9 @@ void intel_engines_driver_register(struct drm_i915_private *i915) uabi_node);char old[sizeof (engine->name)]; +if (intel_gt_has_init_error (engine->gt)) +continue ;/* ignore incomplete engines */ +GEM_BUG_ON (engine->class >=ARRAY_SIZE (uabi_classes)); engine->uabi_class = uabi_classes[engine->class];
drivers/gpu/drm/i915/gt/intel_gt.h +6 -1
@@ -58,9 +58,14 @@ static inline u32 intel_gt_scratch_offset(const struct intel_gt *gt, return i915_ggtt_offset(gt->scratch) + field; } -static inline bool intel_gt_is_wedged (struct intel_gt *gt) +static inline bool intel_gt_is_wedged (const struct intel_gt *gt) {return __intel_reset_failed (>->reset); } +static inline bool intel_gt_has_init_error (const struct intel_gt *gt) +{ +return test_bit (I915_WEDGED_ON_INIT , >->reset.flags); +} +#endif /* __INTEL_GT_H__ */
drivers/gpu/drm/i915/gt/intel_reset.c +2 -2
@@ -1329,10 +1329,10 @@ int intel_gt_terminally_wedged(struct intel_gt *gt)if (!intel_gt_is_wedged (gt))return 0 ; -/* Reset still in progress? Maybe we will recover? */ -if (!test_bit (I915_RESET_BACKOFF , >->reset.flags)) +if (intel_gt_has_init_error (gt))return -EIO ; +/* Reset still in progress? Maybe we will recover? */ if (wait_event_interruptible (gt->reset.queue, !test_bit (I915_RESET_BACKOFF , >->reset.flags)))
Signature · 6 lines
2.24.1 _______________________________________________ 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/gt: Ignore incomplete engines after init failure
== Series Details ==
== Series Details ==
Series: drm/i915/gt: Ignore incomplete engines after init failure
URL : https://patchwork.freedesktop.org/series/71404/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_7637 -> Patchwork_15930
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_15930 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_15930, 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_15930/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_15930:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live_vma:
- fi-bwr-2160: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7637/fi-bwr-2160/igt@i915_selftest@live_vma.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15930/fi-bwr-2160/igt@i915_selftest@live_vma.html
Known issues
------------
Here are the changes found in Patchwork_15930 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_suspend@basic-s3:
- fi-cml-s: [PASS][3] -> [DMESG-WARN][4] ([fdo#111764])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7637/fi-cml-s/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15930/fi-cml-s/igt@[email protected]
* igt@i915_selftest@live_hugepages:
- fi-byt-j1900: [PASS][5] -> [DMESG-FAIL][6] ([i915#845])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7637/fi-byt-j1900/igt@i915_selftest@live_hugepages.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15930/fi-byt-j1900/igt@i915_selftest@live_hugepages.html
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-icl-u2: [PASS][7] -> [FAIL][8] ([i915#217])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7637/fi-icl-u2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15930/fi-icl-u2/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_create@basic:
- {fi-tgl-u}: [INCOMPLETE][9] ([fdo#111736]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7637/fi-tgl-u/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15930/fi-tgl-u/igt@[email protected]
* igt@gem_exec_parallel@basic:
- fi-byt-j1900: [TIMEOUT][11] -> [PASS][12] +2 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7637/fi-byt-j1900/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15930/fi-byt-j1900/igt@[email protected]
* igt@gem_exec_store@basic-all:
- fi-byt-j1900: [FAIL][13] -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7637/fi-byt-j1900/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15930/fi-byt-j1900/igt@[email protected]
#### Warnings ####
* igt@kms_flip@basic-flip-vs-modeset:
- fi-kbl-x1275: [DMESG-WARN][15] ([i915#62] / [i915#92] / [i915#95]) -> [DMESG-WARN][16] ([i915#62] / [i915#92]) +6 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7637/fi-kbl-x1275/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15930/fi-kbl-x1275/igt@[email protected]
* igt@prime_vgem@basic-fence-flip:
- fi-kbl-x1275: [DMESG-WARN][17] ([i915#62] / [i915#92]) -> [DMESG-WARN][18] ([i915#62] / [i915#92] / [i915#95]) +7 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7637/fi-kbl-x1275/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15930/fi-kbl-x1275/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#111736]: https://bugs.freedesktop.org/show_bug.cgi?id=111736
[fdo#111764]: https://bugs.freedesktop.org/show_bug.cgi?id=111764
[i915#217]: https://gitlab.freedesktop.org/drm/intel/issues/217
[i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
[i915#845]: https://gitlab.freedesktop.org/drm/intel/issues/845
[i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
Participating hosts (47 -> 41)
------------------------------
Additional (5): fi-skl-6770hq fi-bsw-kefka fi-skl-lmem fi-tgl-y fi-skl-6700k2
Missing (11): fi-hsw-4770r fi-ilk-m540 fi-hsw-4200u fi-hsw-peppy fi-byt-squawks fi-bsw-cyan fi-kbl-7500u fi-ctg-p8600 fi-whl-u fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_7637 -> Patchwork_15930
CI-20190529: 20190529
CI_DRM_7637: 0fc0908e6c01a7ebed3baff96bb4a50675431e82 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5352: 0586d205f651674e575351c2d5a7d0760716c9f1 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_15930: c02a07f5fa71c01465bfa4a1581b9282da8fb717 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
c02a07f5fa71 drm/i915/gt: Ignore incomplete engines after init failure
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15930/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx