@@ -1020,6 +1020,8 @@ intel_dp_dpms(struct drm_encoder *encoder, int mode)
struct drm_i915_private *dev_priv = dev->dev_private;
uint32_t dp_reg = I915_READ(intel_dp->output_reg);
+ DRM_DEBUG_KMS("start dpms -> %d\n", mode);
+
if (mode != DRM_MODE_DPMS_ON) {
if (is_edp(intel_dp))
ironlake_edp_backlight_off(dev);
@@ -1044,6 +1046,8 @@ intel_dp_dpms(struct drm_encoder *encoder, int mode)
if (is_edp(intel_dp))
ironlake_edp_backlight_on(dev);
}
+
+ DRM_DEBUG_KMS("finish dpms -> %d\n", mode);
}
/*
@@ -1577,6 +1581,7 @@ intel_dp_check_link_status(struct intel_dp *intel_dp)
if (!intel_dp_get_link_status(intel_dp)) {
intel_dp_link_down(intel_dp);
+ DRM_DEBUG_KMS("link is down");
return;
}
@@ -1586,12 +1591,18 @@ intel_dp_check_link_status(struct intel_dp *intel_dp)
sizeof (intel_dp->dpcd));
if (ret != sizeof(intel_dp->dpcd)) {
intel_dp_link_down(intel_dp);
+ DRM_DEBUG_KMS("failed to read DPCD");
return;
}
if (!intel_channel_eq_ok(intel_dp)) {
+ DRM_DEBUG_KMS("eq okay");
intel_dp_start_link_train(intel_dp);
+ DRM_DEBUG_KMS("start_link_train done");
intel_dp_complete_link_train(intel_dp);
+ DRM_DEBUG_KMS("complete_link_train done");
+ } else {
+ DRM_DEBUG_KMS("eq not okay");
}
}
@@ -1855,7 +1866,10 @@ intel_dp_hot_plug(struct intel_encoder *intel_encoder)
{
struct intel_dp *intel_dp = container_of(intel_encoder, struct intel_dp, base);
+ DRM_DEBUG_KMS("about to check status");
intel_dp_check_link_status(intel_dp);
+ DRM_DEBUG_KMS("done checking status");
+
}
/* Return which DP Port should be selected for Transcoder DP control */