dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/panel-edp: Support MB116AS01-3 edp panel
@ 2026-06-29  1:22 Haikun Zhou
  2026-06-29  1:27 ` sashiko-bot
  0 siblings, 1 reply; 3+ messages in thread
From: Haikun Zhou @ 2026-06-29  1:22 UTC (permalink / raw)
  To: dianders, neil.armstrong, sam
  Cc: dri-devel, linux-kernel, daniel, airlied, Haikun Zhou

MB116AS01-3 raw edid:
00 ff ff ff ff ff ff 00 21 63 03 12 00 00 00 00
00 23 01 04 95 1a 0e 78 23 e7 05 9c 5b 56 93 27
21 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 36 1c 56 92 50 00 1c 30 60 18
a8 00 00 90 10 00 00 18 00 00 00 fd 00 28 3c 30
30 07 01 0a 20 20 20 20 20 20 00 00 00 fe 00 48
4b 43 20 4d 59 20 20 20 20 0a 20 20 00 00 00 fe
00 4d 42 31 31 36 41 53 30 31 27 33 20 20 01 cb

70 20 79 02 00 22 00 14 1c 1a 01 84 55 05 91 00
5f 00 17 00 ff 02 1b 00 09 00 07 00 2b 00 06 27
00 28 3b 00 00 81 00 13 72 1a 00 00 03 01 28 3c
00 00 00 00 00 00 3c 00 00 00 00 25 01 09 1c 1a
01 1c 1a 01 28 3c 80 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 e7 90

Signed-off-by: Haikun Zhou <zhouhaikun5@huaqin.corp-partner.google.com>
---
 drivers/gpu/drm/panel/panel-edp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c
index e70d2615b3722..b51bc2f7bcd13 100644
--- a/drivers/gpu/drm/panel/panel-edp.c
+++ b/drivers/gpu/drm/panel/panel-edp.c
@@ -2215,6 +2215,7 @@ static const struct edp_panel_entry edp_panels[] = {
 
 	EDP_PANEL_ENTRY('E', 'T', 'C', 0x0000, &delay_50_500_e200_d200_po2e335, "LP079QX1-SP0V"),
 
+	EDP_PANEL_ENTRY('H', 'K', 'C', 0x1203, &delay_200_500_e80, "MB116AS01-3"),
 	EDP_PANEL_ENTRY('H', 'K', 'C', 0x2d51, &delay_200_500_e200, "Unknown"),
 	EDP_PANEL_ENTRY('H', 'K', 'C', 0x2d5b, &delay_200_500_e200, "MB116AN01"),
 	EDP_PANEL_ENTRY('H', 'K', 'C', 0x2d5c, &delay_200_500_e200, "MB116AN01-2"),
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/panel-edp: Support MB116AS01-3 edp panel
  2026-06-29  1:22 [PATCH] drm/panel-edp: Support MB116AS01-3 edp panel Haikun Zhou
@ 2026-06-29  1:27 ` sashiko-bot
  2026-06-30 17:27   ` Doug Anderson
  0 siblings, 1 reply; 3+ messages in thread
From: sashiko-bot @ 2026-06-29  1:27 UTC (permalink / raw)
  To: Haikun Zhou; +Cc: dri-devel

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The panel name string in `EDP_PANEL_ENTRY` does not match the actual hardware EDID, breaking the primary identity match.
--

commit 0f4c5c953c19a29919cb343c3bc25a2803059da7
Author: Haikun Zhou <zhouhaikun5@huaqin.corp-partner.google.com>
drm/panel-edp: Support MB116AS01-3 edp panel

This commit adds support for the HKC MB116AS01-3 eDP panel to the generic
panel-edp driver. It introduces the necessary delay configuration and EDID
identifiers for this display.

> diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c
> --- a/drivers/gpu/drm/panel/panel-edp.c
> +++ b/drivers/gpu/drm/panel/panel-edp.c
> @@ -2099,6 +2099,7 @@ static const struct edp_panel_entry edp_panels[] = {
>  
>  	EDP_PANEL_ENTRY('E', 'T', 'C', 0x0000, &delay_50_500_e200_d200_po2e335, "LP079QX1-SP0V"),
>  
> +	EDP_PANEL_ENTRY('H', 'K', 'C', 0x1203, &delay_200_500_e80, "MB116AS01-3"),

[Severity: Medium]
Does the panel name string in this entry match the actual hardware EDID?

Looking at the raw EDID payload provided in the commit message:
00 4d 42 31 31 36 41 53 30 31 27 33 20 20 01 cb

The byte 0x27 translates to an apostrophe ('), which makes the hardware name
"MB116AS01'3" rather than "MB116AS01-3" (which would use a hyphen, 0x2d).

Because drm_edid_match() strictly compares this string against the EDID
payload using strncmp(), this character mismatch will cause the primary
identity match to fail during panel probe. While the code will currently fall
back to a secondary panel ID match, this completely bypasses the primary name
matching mechanism designed to distinguish panels when vendors incorrectly
reuse panel IDs.

>  	EDP_PANEL_ENTRY('H', 'K', 'C', 0x2d51, &delay_200_500_e200, "Unknown"),
>  	EDP_PANEL_ENTRY('H', 'K', 'C', 0x2d5b, &delay_200_500_e200, "MB116AN01"),

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260629012200.248066-1-zhouhaikun5@huaqin.corp-partner.google.com?part=1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/panel-edp: Support MB116AS01-3 edp panel
  2026-06-29  1:27 ` sashiko-bot
@ 2026-06-30 17:27   ` Doug Anderson
  0 siblings, 0 replies; 3+ messages in thread
From: Doug Anderson @ 2026-06-30 17:27 UTC (permalink / raw)
  To: Haikun Zhou; +Cc: dri-devel, sashiko-reviews

Hi,

On Sun, Jun 28, 2026 at 6:28 PM <sashiko-bot@kernel.org> wrote:
>
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] The panel name string in `EDP_PANEL_ENTRY` does not match the actual hardware EDID, breaking the primary identity match.
> --
>
> commit 0f4c5c953c19a29919cb343c3bc25a2803059da7
> Author: Haikun Zhou <zhouhaikun5@huaqin.corp-partner.google.com>
> drm/panel-edp: Support MB116AS01-3 edp panel
>
> This commit adds support for the HKC MB116AS01-3 eDP panel to the generic
> panel-edp driver. It introduces the necessary delay configuration and EDID
> identifiers for this display.
>
> > diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c
> > --- a/drivers/gpu/drm/panel/panel-edp.c
> > +++ b/drivers/gpu/drm/panel/panel-edp.c
> > @@ -2099,6 +2099,7 @@ static const struct edp_panel_entry edp_panels[] = {
> >
> >       EDP_PANEL_ENTRY('E', 'T', 'C', 0x0000, &delay_50_500_e200_d200_po2e335, "LP079QX1-SP0V"),
> >
> > +     EDP_PANEL_ENTRY('H', 'K', 'C', 0x1203, &delay_200_500_e80, "MB116AS01-3"),
>
> [Severity: Medium]
> Does the panel name string in this entry match the actual hardware EDID?
>
> Looking at the raw EDID payload provided in the commit message:
> 00 4d 42 31 31 36 41 53 30 31 27 33 20 20 01 cb
>
> The byte 0x27 translates to an apostrophe ('), which makes the hardware name
> "MB116AS01'3" rather than "MB116AS01-3" (which would use a hyphen, 0x2d).
>
> Because drm_edid_match() strictly compares this string against the EDID
> payload using strncmp(), this character mismatch will cause the primary
> identity match to fail during panel probe. While the code will currently fall
> back to a secondary panel ID match, this completely bypasses the primary name
> matching mechanism designed to distinguish panels when vendors incorrectly
> reuse panel IDs.

Please fix the AI's review feedback and send a v2.

-Doug

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-30 17:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-29  1:22 [PATCH] drm/panel-edp: Support MB116AS01-3 edp panel Haikun Zhou
2026-06-29  1:27 ` sashiko-bot
2026-06-30 17:27   ` Doug Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox