[PATCH v3 12/12] drm/msm/dpu: include SSPP allocation state into the dumped state
Dmitry Baryshkov
dmitry.baryshkov at linaro.org
Thu Sep 14 05:07:06 UTC 2023
Make dpu_rm_print_state() also output the SSPP allocation state.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
---
drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c
index 1b0166bc9bee..e7c142bebab1 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c
@@ -773,4 +773,12 @@ void dpu_rm_print_state(struct drm_printer *p,
else
drm_puts(p, " -,");
drm_puts(p, "\n");
+
+ drm_puts(p, "sspp:");
+ for (i = 0; i < ARRAY_SIZE(global_state->sspp_to_crtc_id); i++)
+ if (rm->hw_sspp[i])
+ drm_printf(p, " %d,", global_state->sspp_to_crtc_id[i]);
+ else
+ drm_puts(p, " -,");
+ drm_puts(p, "\n");
}
--
2.39.2
More information about the dri-devel
mailing list