Commit 39f4b29d authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

drm/i915/wm: Include .min_ddb_alloc_uv in the wm dumps



We include the Y/RGB .min_ddb_alloc in the wm state change dumps.
Do the same for .min_ddb_alloc_uv, on the platforms where it is
used.

Also adjust the whitespace in the other debug prints to keep
the values for each wm level lined up across all the lines.

Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260319114034.7093-10-ville.syrjala@linux.intel.com


Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
parent e4ab44d8
Loading
Loading
Loading
Loading
+26 −4
Original line number Diff line number Diff line
@@ -2706,6 +2706,28 @@ skl_print_plane_wm_changes(struct intel_plane *plane,
		    new_wm->trans_wm.min_ddb_alloc,
		    new_wm->sagv.wm0.min_ddb_alloc,
		    new_wm->sagv.trans_wm.min_ddb_alloc);

	if (DISPLAY_VER(display) >= 11)
		return;

	drm_dbg_kms(display->drm,
		    "[PLANE:%d:%s] min_ddb_uv %4d,%4d,%4d,%4d,%4d,%4d,%4d,%4d,%4d,%4d,%5d"
		    " -> %4d,%4d,%4d,%4d,%4d,%4d,%4d,%4d,%4d,%4d,%5d\n",
		    plane->base.base.id, plane->base.name,
		    old_wm->wm[0].min_ddb_alloc_uv, old_wm->wm[1].min_ddb_alloc_uv,
		    old_wm->wm[2].min_ddb_alloc_uv, old_wm->wm[3].min_ddb_alloc_uv,
		    old_wm->wm[4].min_ddb_alloc_uv, old_wm->wm[5].min_ddb_alloc_uv,
		    old_wm->wm[6].min_ddb_alloc_uv, old_wm->wm[7].min_ddb_alloc_uv,
		    old_wm->trans_wm.min_ddb_alloc_uv,
		    old_wm->sagv.wm0.min_ddb_alloc_uv,
		    old_wm->sagv.trans_wm.min_ddb_alloc_uv,
		    new_wm->wm[0].min_ddb_alloc_uv, new_wm->wm[1].min_ddb_alloc_uv,
		    new_wm->wm[2].min_ddb_alloc_uv, new_wm->wm[3].min_ddb_alloc_uv,
		    new_wm->wm[4].min_ddb_alloc_uv, new_wm->wm[5].min_ddb_alloc_uv,
		    new_wm->wm[6].min_ddb_alloc_uv, new_wm->wm[7].min_ddb_alloc_uv,
		    new_wm->trans_wm.min_ddb_alloc_uv,
		    new_wm->sagv.wm0.min_ddb_alloc_uv,
		    new_wm->sagv.trans_wm.min_ddb_alloc_uv);
}

static void