Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Hans de Goede <johannes.goede@oss.qualcomm.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>,
	Joonas Lahtinen <joonas.lahtinen@linux.intel.com>,
	Rodrigo Vivi <rodrigo.vivi@intel.com>,
	Tvrtko Ursulin <tursulin@ursulin.net>,
	intel-gfx <intel-gfx@lists.freedesktop.org>,
	intel-xe@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/display: Handle type 0 in mipi_exec_send_packet()
Date: Mon, 23 Nov 2026 10:43:32 +0200	[thread overview]
Message-ID: <awP8tOd5z_z7sg6N@intel.com> (raw)
In-Reply-To: <20261122215051.73289-1-johannes.goede@oss.qualcomm.com>

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

      parent reply	other threads:[~2026-11-23  8:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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ä [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=awP8tOd5z_z7sg6N@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=johannes.goede@oss.qualcomm.com \
    --cc=joonas.lahtinen@linux.intel.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=tursulin@ursulin.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox