Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7cd6ccff authored by Damien Lespiau's avatar Damien Lespiau Committed by Daniel Vetter
Browse files

drm/i915: Add log messages when CRCs collection is started/stopped

parent 0c912c79
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -1822,6 +1822,9 @@ static int pipe_crc_set_source(struct drm_device *dev, enum pipe pipe,


	/* none -> real source transition */
	/* none -> real source transition */
	if (source) {
	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) *
		pipe_crc->entries = kzalloc(sizeof(*pipe_crc->entries) *
					    INTEL_PIPE_CRC_ENTRIES_NR,
					    INTEL_PIPE_CRC_ENTRIES_NR,
					    GFP_KERNEL);
					    GFP_KERNEL);
@@ -1855,6 +1858,9 @@ static int pipe_crc_set_source(struct drm_device *dev, enum pipe pipe,


	/* real source -> none transition */
	/* real source -> none transition */
	if (source == INTEL_PIPE_CRC_SOURCE_NONE) {
	if (source == INTEL_PIPE_CRC_SOURCE_NONE) {
		DRM_DEBUG_DRIVER("stopping CRCs for pipe %c\n",
				 pipe_name(pipe));

		kfree(pipe_crc->entries);
		kfree(pipe_crc->entries);
		pipe_crc->entries = NULL;
		pipe_crc->entries = NULL;
	}
	}