Skip to content

Instantly share code, notes, and snippets.

@jannau
Created January 26, 2022 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jannau/1f401adf372ccec6f305764785637b0b to your computer and use it in GitHub Desktop.
Save jannau/1f401adf372ccec6f305764785637b0b to your computer and use it in GitHub Desktop.
dcp hdmi hotplug crash
diff --git a/drivers/gpu/drm/apple/dcp.c b/drivers/gpu/drm/apple/dcp.c
index 0dd0cd28a976..ae4d9ae1dd6f 100644
--- a/drivers/gpu/drm/apple/dcp.c
+++ b/drivers/gpu/drm/apple/dcp.c
@@ -1160,7 +1160,7 @@ void dcp_flush(struct drm_crtc *crtc, struct drm_atomic_state *state)
dcp_set_display_device(dcp, false, &handle, dcp_modeset, NULL);
}
else if (!has_surface) {
- dev_warn(dcp->dev, "can't flush without surfaces, vsync:%d", dcp->crtc->vsync_disabled);
+ dev_warn(dcp->dev, "can't flush without surfaces");
/* HACK: issue a delayed vblank event to avoid timeouts in
* drm_atomic_helper_wait_for_vblanks(). It's currently unkown
* if and how DCP supports swaps without attached surfaces.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment