All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/display: Handle type 0 in mipi_exec_send_packet()
@ 2026-11-22 21:50 Hans de Goede
  2026-11-23  8:14 ` Jani Nikula
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Hans de Goede @ 2026-11-22 21:50 UTC (permalink / raw)
  To: Jani Nikula, Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin,
	Ville Syrjälä
  Cc: Hans de Goede, intel-gfx, intel-xe

Some devices, like e.g. the MPMan Converter9 tablet have some
MIPI_SEQ_ELEM_SEND_PKT in their VBT DSI init sequences table with a type
of 0. The table for Processor-to-Peripheral commands in the MIPI DSI spec
does not list such a type.

This leads to the following error getting logged:

i915 0000:00:02.0: [drm] *ERROR* DSI send packet failed with -EINVAL

With no ill effects since errors are ignored.

Presumably the intended behavior here is for this to be a no-op like
MIPI_DCS_NOP which is defined as 0; and the display works fine including
powering it off / on.

At handling for a MIPI_SEQ_ELEM_SEND_PKT sequence with a type of 0 and
treat this as a nop to silence the error.

Fixes: b84befa31266 ("drm/i915/display: Add default case to mipi_exec_send_packet")
Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
---
 drivers/gpu/drm/i915/display/intel_dsi_vbt.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_dsi_vbt.c b/drivers/gpu/drm/i915/display/intel_dsi_vbt.c
index fe12041e913c..423be33443c6 100644
--- a/drivers/gpu/drm/i915/display/intel_dsi_vbt.c
+++ b/drivers/gpu/drm/i915/display/intel_dsi_vbt.c
@@ -142,6 +142,9 @@ static const u8 *mipi_exec_send_packet(struct intel_dsi *intel_dsi,
 		    hs_mode ? "HS" : "LP", type, len, (int)len, data);
 
 	switch (type) {
+	case 0: /* Not in MIPI DSI specification, presumably nop like MIPI_DCS_NOP */
+		ret = 0;
+		break;
 	case MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM:
 		ret = mipi_dsi_generic_write(dsi_device, NULL, 0);
 		break;
-- 
2.56.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-11-24  7:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-22 21:50 [PATCH] drm/i915/display: Handle type 0 in mipi_exec_send_packet() Hans de Goede
2026-11-23  8:14 ` Jani Nikula
2026-11-23  8:43 ` Ville Syrjälä
2026-11-23 15:37 ` ✗ CI.KUnit: failure for " Patchwork
2026-11-24  0:33 ` ✓ i915.CI.BAT: success " Patchwork
2026-11-24  7:52 ` ✓ i915.CI.Full: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.