[PATCH 9/9] test + debug
José Roberto de Souza
jose.souza at intel.com
Tue Apr 26 18:34:51 UTC 2022
---
drivers/gpu/drm/i915/display/intel_display.c | 30 ++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index f7fa942e83100..2540fdbbe9ae4 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -7073,6 +7073,15 @@ static void intel_crtc_check_fastset(const struct intel_crtc_state *old_crtc_sta
new_crtc_state->update_pipe = true;
}
+static void print_link_m_n(struct drm_device *dev, const struct intel_link_m_n *a)
+{
+ drm_info(dev, "\t\tdata_m=%u\n", a->data_m);
+ drm_info(dev, "\t\tdata_n=%u\n", a->data_n);
+ drm_info(dev, "\t\tlink_m=%u\n", a->link_m);
+ drm_info(dev, "\t\tlink_n=%u\n", a->link_n);
+ drm_info(dev, "\t\ttu=%u\n", a->tu);
+}
+
static void intel_crtc_copy_fastset(const struct intel_crtc_state *old_crtc_state,
struct intel_crtc_state *new_crtc_state)
{
@@ -7084,6 +7093,27 @@ static void intel_crtc_copy_fastset(const struct intel_crtc_state *old_crtc_stat
*
* FIXME: should really copy more fuzzy state here
*/
+ drm_info(old_crtc_state->uapi.crtc->dev, "intel_crtc_copy_fastset\n");
+
+ drm_info(old_crtc_state->uapi.crtc->dev, "\told.drrs_downclock_mode=%i new.drrs_downclock_mode=%i\n",
+ !!old_crtc_state->drrs_downclock_mode, !!new_crtc_state->drrs_downclock_mode);
+
+ drm_info(old_crtc_state->uapi.crtc->dev, "\told.dp_m_n {\n");
+ print_link_m_n(old_crtc_state->uapi.crtc->dev, &old_crtc_state->dp_m_n);
+ drm_info(old_crtc_state->uapi.crtc->dev, "\t}\n");
+
+ drm_info(old_crtc_state->uapi.crtc->dev, "\told.dp_m2_n2 {\n");
+ print_link_m_n(old_crtc_state->uapi.crtc->dev, &old_crtc_state->dp_m2_n2);
+ drm_info(old_crtc_state->uapi.crtc->dev, "\t}\n");
+
+ drm_info(old_crtc_state->uapi.crtc->dev, "\tnew.dp_m_n {\n");
+ print_link_m_n(old_crtc_state->uapi.crtc->dev, &new_crtc_state->dp_m_n);
+ drm_info(old_crtc_state->uapi.crtc->dev, "\t}\n");
+
+ drm_info(old_crtc_state->uapi.crtc->dev, "\tnew.dp_m2_n2 {\n");
+ print_link_m_n(old_crtc_state->uapi.crtc->dev, &new_crtc_state->dp_m2_n2);
+ drm_info(old_crtc_state->uapi.crtc->dev, "\t}\n");
+
new_crtc_state->fdi_m_n = old_crtc_state->fdi_m_n;
new_crtc_state->dp_m_n = old_crtc_state->dp_m_n;
--
2.36.0
More information about the Intel-gfx-trybot
mailing list