From 880f3ca12e9db41d76d5eba4ca92fb39c877fde7 Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Thu, 5 Sep 2013 14:58:11 +0300 Subject: [PATCH 2/2] debug ironlake_disable_crtc Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/intel_display.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 8c829c1..aafaefd 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -3454,30 +3454,40 @@ static void ironlake_crtc_disable(struct drm_crtc *crtc) if (!intel_crtc->active) return; + printk("%s:%d\n", __func__, __LINE__); intel_crtc_wait_for_pending_flips(crtc); drm_vblank_off(dev, pipe); + printk("%s:%d\n", __func__, __LINE__); if (dev_priv->fbc.plane == plane) intel_disable_fbc(dev); + printk("%s:%d\n", __func__, __LINE__); intel_crtc_update_cursor(crtc, false); intel_disable_planes(crtc); + printk("%s:%d\n", __func__, __LINE__); intel_disable_plane(dev_priv, plane, pipe); + printk("%s:%d\n", __func__, __LINE__); if (intel_crtc->config.has_pch_encoder) intel_set_pch_fifo_underrun_reporting(dev, pipe, false); + printk("%s:%d\n", __func__, __LINE__); for_each_encoder_on_crtc(dev, crtc, encoder) encoder->disable(encoder); + printk("%s:%d\n", __func__, __LINE__); intel_disable_pipe(dev_priv, pipe); + printk("%s:%d\n", __func__, __LINE__); ironlake_pfit_disable(intel_crtc); + printk("%s:%d\n", __func__, __LINE__); for_each_encoder_on_crtc(dev, crtc, encoder) if (encoder->post_disable) encoder->post_disable(encoder); + printk("%s:%d\n", __func__, __LINE__); if (intel_crtc->config.has_pch_encoder) { ironlake_fdi_disable(crtc); @@ -3505,12 +3515,15 @@ static void ironlake_crtc_disable(struct drm_crtc *crtc) ironlake_fdi_pll_disable(intel_crtc); } + printk("%s:%d\n", __func__, __LINE__); intel_crtc->active = false; intel_update_watermarks(dev); + printk("%s:%d\n", __func__, __LINE__); mutex_lock(&dev->struct_mutex); intel_update_fbc(dev); mutex_unlock(&dev->struct_mutex); + printk("%s:%d\n", __func__, __LINE__); } static void haswell_crtc_disable(struct drm_crtc *crtc) -- 1.8.3.2