diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-10-15 18:55:38 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-10-16 13:32:15 +0200 |
commit | 7cd6ccff85a13a8e5755cffa50129032d83c7c72 (patch) | |
tree | 2dbeb0581521b92b56ba793044ea06be48dd7987 | |
parent | 0c912c79eede0ba3dcc717a6e13de8766404c736 (diff) | |
download | linux-7cd6ccff85a13a8e5755cffa50129032d83c7c72.tar.gz |
drm/i915: Add log messages when CRCs collection is started/stopped
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 471c2585e5bc..dee85d7ab52f 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -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; } |