From: sashiko-bot@kernel.org
To: "Jani Nikula" <jani.nikula@intel.com>,
intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 05/11] drm/i915/dsi: add error handling to element execution
Date: Wed, 02 Dec 2026 15:10:12 +0000 [thread overview]
Message-ID: <sashiko-outbox-246057@kernel.org> (raw)
In-Reply-To: <9ff478bfbf4cb069e61e2fa92c4c86f72204804a.1796223381.git.jani.nikula@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/i915/dsi: misplaced newline in drm_dbg_kms() in
intel_dsi_vbt_exec()
--
commit a411d5271d02c00c2666057d3bf083183fc82f93
Author: Jani Nikula <jani.nikula@intel.com>
drm/i915/dsi: add error handling to element execution
This commit adds error handling for negative return values from MIPI VBT
element handlers in intel_dsi_vbt_exec() and continues sequence execution
using the VBT structure's operation size when the parsed size does not
match.
> diff --git a/drivers/gpu/drm/i915/display/intel_dsi_vbt.c b/drivers/gpu/drm/i915/display/intel_dsi_vbt.c
> index bb1acd7d67f58..cfe9e79fa6ecd 100644
> --- a/drivers/gpu/drm/i915/display/intel_dsi_vbt.c
> +++ b/drivers/gpu/drm/i915/display/intel_dsi_vbt.c
> @@ -671,14 +671,25 @@ static void intel_dsi_vbt_exec(struct intel_dsi *intel_dsi,
> }
>
> ret = mipi_elem_exec(intel_dsi, data);
> + if (ret < 0) {
> + if (!operation_size) {
> + /* No size, can't continue without parse result. */
> + drm_err(display->drm, "MIPI operation %u failed with %pe\n",
> + operation_byte, ERR_PTR(ret));
> + return;
> + }
>
> - /* Consistency check if we have size. */
> - if (operation_size && ret != operation_size) {
> - drm_err(display->drm, "Inconsistent operation size\n");
> - return;
> + drm_dbg_kms(display->drm, "MIPI operation %u failed with %pe\n",
> + operation_byte, ERR_PTR(ret));
> + } else if (operation_size && ret != operation_size) {
> + /* Consistency check if we have size. */
> + drm_dbg_kms(display->drm, "Inconsistent operation size (expected %d, parsed %d\n)",
> + operation_size, ret);
[Severity: Low]
The newline in this drm_dbg_kms() format string is placed before the
closing parenthesis ("parsed %d\n)") instead of after it.
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1796223381.git.jani.nikula@intel.com?part=5
next prev parent reply other threads:[~2026-12-02 15:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 14:58 [PATCH 00/11] drm/i915/dsi: improve VBT sequence block parsing Jani Nikula
2026-12-02 14:58 ` [PATCH 01/11] drm/i915/dsi: don't modify data pointer in mipi_exec_send_packet() Jani Nikula
2026-12-02 14:58 ` [PATCH 02/11] drm/i915/dsi: use payload_size name in mipi_exec_gpio() Jani Nikula
2026-12-02 14:58 ` [PATCH 03/11] drm/i915/dsi: return parsed length from mipi_exec_* Jani Nikula
2026-12-02 14:58 ` [PATCH 04/11] drm/i915/dsi: focus on the happy day scenario path, handle errors first Jani Nikula
2026-12-02 14:58 ` [PATCH 05/11] drm/i915/dsi: add error handling to element execution Jani Nikula
2026-12-02 15:10 ` sashiko-bot [this message]
2026-12-02 14:58 ` [PATCH 06/11] drm/i915/dsi: pass operation size to exec hooks Jani Nikula
2026-12-02 14:58 ` [PATCH 07/11] drm/i915/dsi: add bounds checks to mipi_exec_send_packet() Jani Nikula
2026-12-02 14:58 ` [PATCH 08/11] drm/i915/dsi: add bounds checks to mipi_exec_delay() Jani Nikula
2026-12-02 14:58 ` [PATCH 09/11] drm/i915/dsi: add bounds checks to mipi_exec_gpio() Jani Nikula
2026-12-02 14:58 ` [PATCH 10/11] drm/i915/dsi: add bounds checks to mipi_exec_i2c() Jani Nikula
2026-12-02 14:58 ` [PATCH 11/11] drm/i915/dsi: add bounds checks to mipi_exec_spi() Jani Nikula
2026-12-02 15:05 ` sashiko-bot
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=sashiko-outbox-246057@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=sashiko-reviews@lists.linux.dev \
/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