* Re: [PATCH] drm/i915/display: Handle type 0 in mipi_exec_send_packet()
[not found] <20261122215051.73289-1-johannes.goede@oss.qualcomm.com>
@ 2026-11-23 8:14 ` Jani Nikula
2026-11-23 8:43 ` Ville Syrjälä
1 sibling, 0 replies; 2+ messages in thread
From: Jani Nikula @ 2026-11-23 8:14 UTC (permalink / raw)
To: Hans de Goede, Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin,
Ville Syrjälä
Cc: Hans de Goede, intel-gfx, intel-xe
On Sun, 22 Nov 2026, Hans de Goede <johannes.goede@oss.qualcomm.com> wrote:
> 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>
The VBTs out there have ceased to surprise me.
Reviewed-by: Jani Nikula <jani.nikula@intel.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;
--
Jani Nikula, Intel
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] drm/i915/display: Handle type 0 in mipi_exec_send_packet()
[not found] <20261122215051.73289-1-johannes.goede@oss.qualcomm.com>
2026-11-23 8:14 ` [PATCH] drm/i915/display: Handle type 0 in mipi_exec_send_packet() Jani Nikula
@ 2026-11-23 8:43 ` Ville Syrjälä
1 sibling, 0 replies; 2+ messages in thread
From: Ville Syrjälä @ 2026-11-23 8:43 UTC (permalink / raw)
To: Hans de Goede
Cc: Jani Nikula, Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin,
intel-gfx, intel-xe
On Sun, Nov 22, 2026 at 10:50:51PM +0100, Hans de Goede wrote:
> 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.
Please file the usual bug with the VBT attached.
>
> 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
--
Ville Syrjälä
Intel
^ permalink raw reply [flat|nested] 2+ messages in thread