]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/msm/dpu: include SSPP allocation state into the dumped state
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 15 Dec 2024 12:40:18 +0000 (14:40 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 15 Dec 2024 12:43:05 +0000 (14:43 +0200)
Make dpu_rm_print_state() also output the SSPP allocation state.

Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/629025/
Link: https://lore.kernel.org/r/20241215-dpu-virtual-wide-v8-3-65221f213ce1@linaro.org
drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c

index 2c325bcd328aa475cba9b9a2146ee3e009816551..17b5d53297f23169aba3537f85f02f04421ac9e7 100644 (file)
@@ -941,4 +941,11 @@ void dpu_rm_print_state(struct drm_printer *p,
        dpu_rm_print_state_helper(p, rm->cdm_blk,
                                  global_state->cdm_to_enc_id);
        drm_puts(p, "\n");
+
+       drm_puts(p, "\tsspp=");
+       /* skip SSPP_NONE and start from the next index */
+       for (i = SSPP_NONE + 1; i < ARRAY_SIZE(global_state->sspp_to_crtc_id); i++)
+               dpu_rm_print_state_helper(p, rm->hw_sspp[i] ? &rm->hw_sspp[i]->base : NULL,
+                                         global_state->sspp_to_crtc_id[i]);
+       drm_puts(p, "\n");
 }