Skip to content

Important MST fixes for 4.6

Lyude dri-devel intel-gfx lkml stable 1 version Applied

Status from this message: This is a note to let you know that I've just added the patch titled

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4drm/i915/fbdev: Fix num_connector references in intel_fb_initial_config()drivers/gpu/drm/i915/intel_fbdev.c+3 -30 replies
1/4drm/i915/fbdev: Fix num_connector references in intel_fb_initial_config()drivers/gpu/drm/i915/intel_fbdev.c+3 -30 replies
2/4drm/fb_helper: Fix references to dev->mode_config.num_connectordrivers/gpu/drm/drm_fb_helper.c+2 -30 replies
3/4drm/i915: Discard previous atomic state on resume if connectors changedrivers/gpu/drm/i915/intel_display.c+12 -02 replies
3/4drm/i915: Discard previous atomic state on resume if connectors changedrivers/gpu/drm/i915/intel_display.c+12 -00 replies
4/4drm/atomic: Verify connector->funcs != NULL when clearing statesdrivers/gpu/drm/drm_atomic.c+1 -13 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchDaniel Vetter
1/4R-b R-b
1/4R-b R-b
2/4R-b
3/4R-b R-b R-b
3/4R-b R-b R-b
4/4R-b R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] Important MST fixes for 4.6

Unfortunately we've never really made use of creating/destroying connectors on the fly like we have with MST, so 4.6 ended up showing a lot of various bugs with hotplugging MST displays, booting with MST displays, etc. Most of these bugs are very likely to panic the kernel, and a couple of them end up even doing out of bounds memory accesses causing all sorts of other issues.

The proper fix for these issues is Dave's connector lifetime patch series in 4.7-rc1[1], however backporting those patches would be too big of a fix to submit for stable. This patch series is a much smaller set of changes to workaround this issue.

As another note: the first two patches in this series are already upstream for 4.7-rc1, however since we have the connector ref lifetime patches in 4.7-rc1 they don't fix any kernel panics there, only a few inconsistencies in i915/drm's code. They do however, fix kernel panics for 4.6 since connectors getting destroyed can make dev->mode_config.num_connector have a different value from fb_helper->connector_count.

[1]: 0552f7651bc233e5407ab06ba97a9d7c25e19580 in master

Lyude (4):
drm/i915/fbdev: Fix num_connector references in
intel_fb_initial_config()
drm/fb_helper: Fix references to dev->mode_config.num_connector drm/i915: Discard previous atomic state on resume if connectors change drm/atomic: Verify connector->funcs != NULL when clearing states

 drivers/gpu/drm/drm_atomic.c         |  2 +-
 drivers/gpu/drm/drm_fb_helper.c      |  5 ++---
 drivers/gpu/drm/i915/intel_display.c | 12 ++++++++++++
 drivers/gpu/drm/i915/intel_fbdev.c   |  6 +++---
 4 files changed, 18 insertions(+), 7 deletions(-)
Signature · 6 lines
2.5.5

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