FAILED: patch "[PATCH] drm/i915: Fix modeset handling during gpu reset, v5." failed to apply to 4.8-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 4.8-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
Quoted 1 line
From
739748939974791b84629a8790527a16f76873a4Mon Sep 17 00:00:00 2001
From: Maarten Lankhorst <[email protected]>
Date: Fri, 5 Aug 2016 23:28:27 +0300
Subject: [PATCH] drm/i915: Fix modeset handling during gpu reset, v5.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This function would call drm_modeset_lock_all, while the suspend/resume functions already have their own locking. Fix this by factoring out __intel_display_resume, and calling the atomic helpers for duplicating atomic state and disabling all crtc's during suspend.
Changes since v1:
- Deal with -EDEADLK right after lock_all and clean up calls to hw readout.
- Always take all modeset locks so updates during gpu reset are blocked. Changes since v2:
- Fix deadlock in intel_update_primary_planes.
- Move WARN_ON(EDEADLK) to __intel_display_resume.
- pctx -> ctx
- only call __intel_display_resume on success in intel_display_resume. Changes since v3:
- Rebase on top of dev_priv -> dev change.
- Use drm_modeset_lock_all_ctx instead of drm_modeset_lock_all. Changes since v4 [by vsyrjala]:
- Deal with skip_intermediate_wm
- Update comment w.r.t. mode_config.mutex vs. ->detect()
- Rebase due to INTEL_GEN() etc.
drivers/gpu/drm/i915/i915_drv.h +1 -0
@@ -1840,6 +1840,7 @@ struct drm_i915_private {enum modeset_restore modeset_restore;struct mutex modeset_restore_lock;struct drm_atomic_state *modeset_restore_state; +struct drm_modeset_acquire_ctx reset_ctx;struct list_head vm_list;/* Global list of all address spaces */ struct i915_ggtt ggtt;/* VM representing the global address space */
drivers/gpu/drm/i915/intel_display.c +110 -60
237 lines not on this page · raw message