[PATCH 5/6] add debug messages

José Roberto de Souza jose.souza at intel.com
Wed Mar 16 20:48:25 UTC 2022


---
 drivers/gpu/drm/i915/display/intel_psr.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
index f7b7b374374b1..b5b86aaee06f2 100644
--- a/drivers/gpu/drm/i915/display/intel_psr.c
+++ b/drivers/gpu/drm/i915/display/intel_psr.c
@@ -2149,6 +2149,8 @@ static void _psr_invalidate_handle(struct intel_dp *intel_dp,
 {
 	struct drm_i915_private *dev_priv = dp_to_i915(intel_dp);
 
+	drm_info(&dev_priv->drm, "psr invalidate\n");
+
 	if (intel_dp->psr.psr2_sel_fetch_enabled) {
 		u32 val = man_trk_ctl_continuos_full_frame(dev_priv) |
 			  man_trk_ctl_partial_frame_bit_get(dev_priv);
@@ -2157,6 +2159,7 @@ static void _psr_invalidate_handle(struct intel_dp *intel_dp,
 		if (prev_busy_frontbuffer_bits)
 			return;
 
+		drm_info(&dev_priv->drm, "\tenabling cff\n");
 		intel_de_rmw(dev_priv, PSR2_MAN_TRK_CTL(intel_dp->psr.transcoder), 0, val);
 		intel_de_write(dev_priv, CURSURFLIVE(intel_dp->psr.pipe), 0);
 	} else {
@@ -2239,6 +2242,8 @@ static void _psr_flush_handle(struct intel_dp *intel_dp,
 {
 	struct drm_i915_private *dev_priv = dp_to_i915(intel_dp);
 
+	drm_info(&dev_priv->drm, "psr flush\n");
+
 	if (intel_dp->psr.psr2_sel_fetch_enabled) {
 		/* is continuos full frame enabled? */
 		if (prev_busy_frontbuffer_bits) {
@@ -2252,6 +2257,7 @@ static void _psr_flush_handle(struct intel_dp *intel_dp,
 				 * turn continuos full frame off and do a single
 				 * full frame
 				 */
+				drm_info(&dev_priv->drm, "\tdisabling ccf\n");
 				intel_de_rmw(dev_priv,
 					     PSR2_MAN_TRK_CTL(intel_dp->psr.transcoder),
 					     clear, set);
@@ -2262,6 +2268,7 @@ static void _psr_flush_handle(struct intel_dp *intel_dp,
 			 * continuos full frame is disabled, only a single full
 			 * frame is required
 			 */
+			drm_info(&dev_priv->drm, "\tdoing a sff\n");
 			psr_force_hw_tracking_exit(intel_dp);
 		}
 	} else {
-- 
2.35.1



More information about the Intel-gfx-trybot mailing list