drm/i915/mst: debug log 4 bytes of ESI right after reading
authorJani Nikula <jani.nikula@intel.com>
Wed, 12 Jan 2022 11:03:15 +0000 (13:03 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 21 Jan 2022 10:55:28 +0000 (12:55 +0200)
For whatever reason, the ESI link service irq vector was missing from
the debug output. Add the missing byte, clean up the debug message, and
do the logging right after reading the data.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220112110319.1172110-3-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_dp.c

index a301220ce2adff119783114564cf6ff60cc161d3..6de39056e2f846b2b9db3a5dce87c269d73ac8e4 100644 (file)
@@ -3683,6 +3683,8 @@ intel_dp_check_mst_status(struct intel_dp *intel_dp)
                        break;
                }
 
+               drm_dbg_kms(&i915->drm, "DPRX ESI: %4ph\n", esi);
+
                /* check link status - esi[10] = 0x200c */
                if (intel_dp->active_mst_links > 0 && link_ok &&
                    !drm_dp_channel_eq_ok(&esi[10], intel_dp->lane_count)) {
@@ -3691,8 +3693,6 @@ intel_dp_check_mst_status(struct intel_dp *intel_dp)
                        link_ok = false;
                }
 
-               drm_dbg_kms(&i915->drm, "got esi %3ph\n", esi);
-
                intel_dp_mst_hpd_irq(intel_dp, esi, &handled);
 
                if (!handled)