diff mbox series

[11/11] drm/i915: Pimp the Y plane selection debugs

Message ID 20250127172156.21928-12-ville.syrjala@linux.intel.com (mailing list archive)
State New
Headers show
Series drm/i915: joiner and Y plane fixes and reorganization | expand

Commit Message

Ville Syrjälä Jan. 27, 2025, 5:21 p.m. UTC
From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Use the standard [PLANE:%d:%s] stuff for the Y plane debugs,
and more clearly spell out which plane is UV plane and which
is Y plane when linking them.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/i915/display/intel_atomic_plane.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_atomic_plane.c b/drivers/gpu/drm/i915/display/intel_atomic_plane.c
index 1fb35f4a7cf4..9c2e8aaba8cd 100644
--- a/drivers/gpu/drm/i915/display/intel_atomic_plane.c
+++ b/drivers/gpu/drm/i915/display/intel_atomic_plane.c
@@ -1236,8 +1236,9 @@  static void link_nv12_planes(struct intel_crtc_state *crtc_state,
 	crtc_state->data_rate[y_plane->id] = crtc_state->data_rate_y[uv_plane->id];
 	crtc_state->rel_data_rate[y_plane->id] = crtc_state->rel_data_rate_y[uv_plane->id];
 
-	drm_dbg_kms(&dev_priv->drm, "Using %s as Y plane for %s\n",
-		    y_plane->base.name, uv_plane->base.name);
+	drm_dbg_kms(&dev_priv->drm, "UV plane [PLANE:%d:%s] using Y plane [PLANE:%d:%s]\n",
+		    uv_plane->base.base.id, uv_plane->base.name,
+		    y_plane->base.base.id, y_plane->base.name);
 
 	/* Copy parameters to Y plane */
 	intel_plane_copy_hw_state(y_plane_state, uv_plane_state);
@@ -1328,7 +1329,8 @@  static int icl_check_nv12_planes(struct intel_atomic_state *state,
 
 		if (!y_plane_state) {
 			drm_dbg_kms(&dev_priv->drm,
-				    "Need %d free Y planes for planar YUV\n",
+				    "[CRTC:%d:%s] need %d free Y planes for planar YUV\n",
+				    crtc->base.base.id, crtc->base.name,
 				    hweight8(crtc_state->nv12_planes));
 
 			return -EINVAL;