aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-10-15 13:55:38 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-10-16 07:32:15 -0400
commit7cd6ccff85a13a8e5755cffa50129032d83c7c72 (patch)
tree2dbeb0581521b92b56ba793044ea06be48dd7987 /drivers/gpu/drm
parent0c912c79eede0ba3dcc717a6e13de8766404c736 (diff)
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>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/i915/i915_debugfs.c6
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,
1822 1822
1823 /* none -> real source transition */ 1823 /* none -> real source transition */
1824 if (source) { 1824 if (source) {
1825 DRM_DEBUG_DRIVER("collecting CRCs for pipe %c, %s\n",
1826 pipe_name(pipe), pipe_crc_source_name(source));
1827
1825 pipe_crc->entries = kzalloc(sizeof(*pipe_crc->entries) * 1828 pipe_crc->entries = kzalloc(sizeof(*pipe_crc->entries) *
1826 INTEL_PIPE_CRC_ENTRIES_NR, 1829 INTEL_PIPE_CRC_ENTRIES_NR,
1827 GFP_KERNEL); 1830 GFP_KERNEL);
@@ -1855,6 +1858,9 @@ static int pipe_crc_set_source(struct drm_device *dev, enum pipe pipe,
1855 1858
1856 /* real source -> none transition */ 1859 /* real source -> none transition */
1857 if (source == INTEL_PIPE_CRC_SOURCE_NONE) { 1860 if (source == INTEL_PIPE_CRC_SOURCE_NONE) {
1861 DRM_DEBUG_DRIVER("stopping CRCs for pipe %c\n",
1862 pipe_name(pipe));
1863
1858 kfree(pipe_crc->entries); 1864 kfree(pipe_crc->entries);
1859 pipe_crc->entries = NULL; 1865 pipe_crc->entries = NULL;
1860 } 1866 }