Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jayant Shekhar" <jayant.shekhar@oss.qualcomm.com>
Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org, media-ci@linuxtv.org
Subject: Re: [PATCH v3 05/21] drm/msm/dcp: Add HFI panel definitions
Date: Thu, 26 Nov 2026 06:40:31 +0000	[thread overview]
Message-ID: <sashiko-outbox-234874@kernel.org> (raw)
In-Reply-To: <20261126-jshekhar-v3-dcp-v3-5-f1e9d7505039@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/msm/dcp: decimal values prefixed with 0x in
  hfi_panel_dcs_command_type
--

commit d279d718168d7206eea3327b3e453bdfb0781ec8
Author: Jayant Shekhar <jayant.shekhar@oss.qualcomm.com>

drm/msm/dcp: Add HFI panel definitions

This commit adds HFI panel command IDs, property identifiers, and panel
configuration structures for DSI panel initialization and DCS transfers
through DCP firmware.

> diff --git a/drivers/gpu/drm/msm/dcp/hfi/hfi_defs_panel.h b/drivers/gpu/drm/msm/dcp/hfi/hfi_defs_panel.h
> new file mode 100644
> index 0000000000000..a38d778898b2d
> --- /dev/null
> +++ b/drivers/gpu/drm/msm/dcp/hfi/hfi_defs_panel.h
[ ... ]
> +enum hfi_panel_dcs_command_type {
> +	HFI_DCS_CMD_PRE_ON                      = 0x00000000,
> +	HFI_DCS_CMD_ON                          = 0x00000001,
> +	HFI_DCS_CMD_VIDEO_ON                    = 0x00000002,
> +	HFI_DCS_CMD_COMMAND_ON                  = 0x00000003,
> +	HFI_DCS_CMD_POST_PANEL_ON               = 0x00000004,
> +	HFI_DCS_CMD_PRE_OFF                     = 0x00000005,
> +	HFI_DCS_CMD_OFF                         = 0x00000006,
> +	HFI_DCS_CMD_POST_OFF                    = 0x00000007,
> +	HFI_DCS_CMD_PRE_RES_SWITCH              = 0x00000008,
> +	HFI_DCS_CMD_RES_SWITCH                  = 0x0000009,
> +	HFI_DCS_CMD_POST_RES_SWITCH             = 0x00000010,
> +	HFI_DCS_CMD_VIDEO_MODE_SWITCH_INS       = 0x00000011,
> +	HFI_DCS_CMD_VIDEO_MODE_SWITCH_OUTS      = 0x00000012,
> +	HFI_DCS_CMD_COMMAND_MODE_SWITCH_INS     = 0x00000013,
> +	HFI_DCS_CMD_COMMAND_MODE_SWITCH_OUTS    = 0x00000014,
> +	HFI_DCS_CMD_PANEL_STATUS                = 0x00000015,
> +	HFI_DCS_CMD_LP1                         = 0x00000016,
> +	HFI_DCS_CMD_LP2                         = 0x00000017,
> +	HFI_DCS_CMD_NOLP                        = 0x00000018,
> +	HFI_DCS_CMD_PPS                         = 0x00000019,
> +	HFI_DCS_CMD_ROI                         = 0x00000020,
> +	HFI_DCS_CMD_TIMING_SWITCH               = 0x00000021,
> +	HFI_DCS_CMD_POST_MODE_SWITCH_ON         = 0x00000022,
> +	HFI_DCS_CMD_QSYNC_ONS                   = 0x00000023,
> +	HFI_DCS_CMD_QSYNC_OFFS                  = 0x00000024,
> +	HFI_DCS_CMD_MAX                         = 0x00000025
> +};

[Severity: Medium]
Were the decimal values 9 through 25 in enum hfi_panel_dcs_command_type
prefixed with 0x000000 by mistake?

This skips 0x0a..0x0f and 0x1a..0x1f, shifting every command ID from
HFI_DCS_CMD_POST_RES_SWITCH onward and setting HFI_DCS_CMD_MAX to 0x25
(37) instead of 0x19 (25).  Beyond sending wrong command IDs, sizing a
HFI_PROPERTY_PANEL_DCS_CMD_INFO array of struct
hfi_panel_dcs_cmd_buffer_info (8 u32 words each) by HFI_DCS_CMD_MAX would
produce 296 u32 words, overflowing the 8-bit word-count field in
HFI_PACK_KEY().

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261126-jshekhar-v3-dcp-v3-0-f1e9d7505039@oss.qualcomm.com?part=5

  reply	other threads:[~2026-11-26  6:40 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  6:29 [PATCH v3 00/21] drm/msm/dcp: Add Qualcomm DCP display support Jayant Shekhar
2026-11-26  6:29 ` [PATCH v3 01/21] dt-bindings: display: msm: Add Qualcomm DCP Jayant Shekhar
2026-11-26  6:44   ` sashiko-bot
2026-11-26  6:29 ` [PATCH v3 02/21] drm/msm/dcp: Add HFI packet helpers Jayant Shekhar
2026-11-26  6:52   ` sashiko-bot
2026-11-26  6:29 ` [PATCH v3 03/21] drm/msm/dcp: Add HFI device definitions Jayant Shekhar
2026-11-26  6:29 ` [PATCH v3 04/21] drm/msm/dcp: Add HFI display definitions Jayant Shekhar
2026-11-26  6:29 ` [PATCH v3 05/21] drm/msm/dcp: Add HFI panel definitions Jayant Shekhar
2026-11-26  6:40   ` sashiko-bot [this message]
2026-11-26  6:29 ` [PATCH v3 06/21] drm/msm/dcp: Add HFI VirtIO transport Jayant Shekhar
2026-11-26  6:51   ` sashiko-bot
2026-11-26  6:29 ` [PATCH v3 07/21] drm/msm/dcp: Handle asynchronous HFI responses Jayant Shekhar
2026-11-26  6:49   ` sashiko-bot
2026-11-26  6:29 ` [PATCH v3 08/21] drm/msm/dcp: Add generic HFI display commands Jayant Shekhar
2026-11-26  6:45   ` sashiko-bot
2026-11-26  6:29 ` [PATCH v3 09/21] drm/msm/dcp: Add HFI DSI and panel commands Jayant Shekhar
2026-11-26  6:54   ` sashiko-bot
2026-11-26  6:29 ` [PATCH v3 10/21] drm/msm/dcp: Add DCP CRTCs Jayant Shekhar
2026-11-26  6:58   ` sashiko-bot
2026-11-26  6:29 ` [PATCH v3 11/21] drm/msm/dcp: Add DCP planes Jayant Shekhar
2026-11-26  7:02   ` sashiko-bot
2026-11-26  6:29 ` [PATCH v3 12/21] drm/msm/dcp: Route HFI display events Jayant Shekhar
2026-11-26  6:50   ` sashiko-bot
2026-11-26  6:29 ` [PATCH v3 13/21] drm/msm/dcp: Add DCP encoder Jayant Shekhar
2026-11-26  6:42   ` sashiko-bot
2026-11-26  6:29 ` [PATCH v3 14/21] drm/msm/dcp: Add DCP DSI host and panel support Jayant Shekhar
2026-11-26  7:06   ` sashiko-bot
2026-11-26  6:29 ` [PATCH v3 15/21] drm/msm/dcp: Integrate the DSI bridge with KMS Jayant Shekhar
2026-11-26  6:53   ` sashiko-bot
2026-11-26  6:29 ` [PATCH v3 16/21] drm/msm/dcp: Register DCP display pipeline Jayant Shekhar
2026-11-26  7:03   ` sashiko-bot
2026-11-26  6:29 ` [PATCH v3 17/21] drm/msm: Export GPU component matching helper Jayant Shekhar
2026-11-26  6:29 ` [PATCH v3 18/21] drm/msm/dcp: Add DCP VirtIO driver Jayant Shekhar
2026-11-26  7:07   ` sashiko-bot
2026-11-26  6:29 ` [PATCH v3 19/21] drm/msm: Support KMS backends without a display IRQ Jayant Shekhar
2026-11-26  6:29 ` [PATCH v3 20/21] drm/msm: Register the DCP backend Jayant Shekhar
2026-11-26  7:00   ` sashiko-bot
2026-11-26  6:29 ` [PATCH v3 21/21] arm64: dts: qcom: hawi: Add DCP support Jayant Shekhar
2026-11-26  7:10   ` 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-234874@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jayant.shekhar@oss.qualcomm.com \
    --cc=media-ci@linuxtv.org \
    --cc=robh@kernel.org \
    --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