From: sashiko-bot@kernel.org
To: "Alessandro Zini" <alessandro.zini@siemens.com>
Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 3/3] drm/panel: simple: Add support for Goworld ILI6150H6 panel
Date: Thu, 03 Dec 2026 21:16:29 +0000 [thread overview]
Message-ID: <sashiko-outbox-248677@kernel.org> (raw)
In-Reply-To: <20261203210545.668975-4-alessandro.zini@siemens.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/panel: simple: double-counted sync lengths in
goworld_ili6150h6_timing
--
commit 4246759ab6fe7c38b14e403e8515ce3d98a02e1c
Author: Wang Yang <yang.wang-wy@siemens.com>
drm/panel: simple: Add support for Goworld ILI6150H6 panel
This commit adds display timing and panel descriptor entries for the
Goworld ILI6150H6 LVDS panel to panel-simple and registers the
"goworld,ili6150h6" compatible string.
> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
> index 33d954f3ee289..6d8c166d1150f 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -2543,6 +2543,36 @@ static const struct panel_desc giantplus_gpm940b0 = {
> .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
> };
>
> +static const struct display_timing goworld_ili6150h6_timing = {
> + .pixelclock = { 44900000, 51200000, 63000000 },
> + .hactive = { 1024, 1024, 1024 },
> + .hfront_porch = { 16, 160, 216 },
> + .hback_porch = { 160, 160, 160 },
> + .hsync_len = { 1, 1, 140 },
> + .vactive = { 600, 600, 600 },
> + .vfront_porch = { 1, 12, 127 },
> + .vback_porch = { 23, 23, 23 },
> + .vsync_len = { 1, 3, 20 },
> + .flags = DISPLAY_FLAGS_DE_HIGH,
> +};
[Severity: Medium]
Do hback_porch and vback_porch double-count hsync_len and vsync_len here?
drm_display_mode_from_videomode() adds sync length and back porch separately
when computing htotal and vtotal, while the 44.9/51.2/63.0 MHz pixelclock
bounds match 60 Hz only for 1200x624, 1344x635, and 1400x750 (meaning 160
and 23 already include hsync_len and vsync_len).
As written, the default mode gets an odd htotal of 1345 and a vtotal of 638
(59.67 Hz instead of 60 Hz), shifting sync-to-active spacing by +1 pixel and
+3 lines.
Fixing hback_porch at 160 and vback_porch at 23 also causes
panel_simple_parse_panel_timing_node() to reject valid devicetree
panel-timing overrides with sync-exclusive back porches, while allowing
out-of-spec totals up to 1540x770.
Subtracting hsync_len from 160 (e.g., { 20, 159, 159 }) and vsync_len from
23 (e.g., { 3, 20, 22 }) would give the expected 1344x635 mode and accept
valid overrides.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203210545.668975-1-alessandro.zini@siemens.com?part=3
prev parent reply other threads:[~2026-12-03 21:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 21:05 [PATCH v2 0/3] drm/panel: simple: Add Goworld ILI6150H6 panel Alessandro Zini
2026-12-03 21:05 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Goworld Alessandro Zini
2026-12-03 21:05 ` [PATCH v2 2/3] dt-bindings: display: simple: Add Goworld ILI6150H6 panel Alessandro Zini
2026-12-03 21:05 ` [PATCH v2 3/3] drm/panel: simple: Add support for " Alessandro Zini
2026-12-03 21:16 ` sashiko-bot [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=sashiko-outbox-248677@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=alessandro.zini@siemens.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.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