]> Pileus Git - ~andy/linux/commitdiff
drm/i915: Add log messages when CRCs collection is started/stopped
authorDamien Lespiau <damien.lespiau@intel.com>
Tue, 15 Oct 2013 17:55:38 +0000 (18:55 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 16 Oct 2013 11:32:15 +0000 (13:32 +0200)
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c

index 471c2585e5bcc6cb09c4f7d84811dd7a6b2686ea..dee85d7ab52f04d45347ed4cbfa6204f6b907852 100644 (file)
@@ -1822,6 +1822,9 @@ static int pipe_crc_set_source(struct drm_device *dev, enum pipe pipe,
 
        /* none -> real source transition */
        if (source) {
+               DRM_DEBUG_DRIVER("collecting CRCs for pipe %c, %s\n",
+                                pipe_name(pipe), pipe_crc_source_name(source));
+
                pipe_crc->entries = kzalloc(sizeof(*pipe_crc->entries) *
                                            INTEL_PIPE_CRC_ENTRIES_NR,
                                            GFP_KERNEL);
@@ -1855,6 +1858,9 @@ static int pipe_crc_set_source(struct drm_device *dev, enum pipe pipe,
 
        /* real source -> none transition */
        if (source == INTEL_PIPE_CRC_SOURCE_NONE) {
+               DRM_DEBUG_DRIVER("stopping CRCs for pipe %c\n",
+                                pipe_name(pipe));
+
                kfree(pipe_crc->entries);
                pipe_crc->entries = NULL;
        }