drm/i915: Add debug messages for pipe enable/disable
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 24 Jun 2015 18:59:35 +0000 (21:59 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 25 Jun 2015 12:12:14 +0000 (14:12 +0200)
Currently we don't have any real indication when a pipe gets
enabled/disabled. Add some.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index 4882e43fd8a284854afdce111a7f93263c973202..01eaab8b6d40a71710d59efc52aeddc61c8f8a98 100644 (file)
@@ -2110,6 +2110,8 @@ static void intel_enable_pipe(struct intel_crtc *crtc)
        int reg;
        u32 val;
 
+       DRM_DEBUG_KMS("enabling pipe %c\n", pipe_name(pipe));
+
        assert_planes_disabled(dev_priv, pipe);
        assert_cursor_disabled(dev_priv, pipe);
        assert_sprites_disabled(dev_priv, pipe);
@@ -2169,6 +2171,8 @@ static void intel_disable_pipe(struct intel_crtc *crtc)
        int reg;
        u32 val;
 
+       DRM_DEBUG_KMS("disabling pipe %c\n", pipe_name(pipe));
+
        /*
         * Make sure planes won't keep trying to pump pixels to us,
         * or we might hang the display.