Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/dsi: debug log send packet sequence contents

This might help debug issues better than just debug logging the function
name.

v2: Debug log type as hex (Ville)

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20251029084603.2254982-2-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

+7 -3
+7 -3
drivers/gpu/drm/i915/display/intel_dsi_vbt.c
··· 107 107 u16 len; 108 108 enum port port; 109 109 ssize_t ret; 110 - 111 - drm_dbg_kms(display->drm, "\n"); 110 + bool hs_mode; 112 111 113 112 flags = *data++; 114 113 type = *data++; ··· 129 130 goto out; 130 131 } 131 132 132 - if ((flags >> MIPI_TRANSFER_MODE_SHIFT) & 1) 133 + hs_mode = (flags >> MIPI_TRANSFER_MODE_SHIFT) & 1; 134 + if (hs_mode) 133 135 dsi_device->mode_flags &= ~MIPI_DSI_MODE_LPM; 134 136 else 135 137 dsi_device->mode_flags |= MIPI_DSI_MODE_LPM; 136 138 137 139 dsi_device->channel = (flags >> MIPI_VIRTUAL_CHANNEL_SHIFT) & 3; 140 + 141 + drm_dbg_kms(display->drm, "DSI packet: Port %c (seq %u), Flags 0x%02x, VC %u, %s, Type 0x%02x, Length %u, Data %*ph\n", 142 + port_name(port), seq_port, flags, dsi_device->channel, 143 + hs_mode ? "HS" : "LP", type, len, (int)len, data); 138 144 139 145 switch (type) { 140 146 case MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM: