* [PATCH] drm/panel: kingdisplay-kd097d04: Disable EoTp
@ 2025-10-28 21:38 Sebastian Fleer
2025-10-28 22:31 ` Christoph Fritz
0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Fleer @ 2025-10-28 21:38 UTC (permalink / raw)
To: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, dri-devel,
linux-kernel
Cc: Christoph Fritz
Since commit d97e71e44937 ("drm/bridge: synopsys: dw-mipi-dsi: enable EoTp by
default") panel output on an Acer Chromebook Tab 10 (google-dru) is corrupted.
The tablet I use is equipped with a kingdisplay-kd097d04 panel, disabling EoTp
restores the correct functionality.
Fixes: d97e71e44937 ("drm/bridge: synopsys: dw-mipi-dsi: enable EoTp by default")
Signed-off-by: Sebastian Fleer <dev@dwurp.de>
---
drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c b/drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c
index 2fc7b0779b37..893af9b16756 100644
--- a/drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c
+++ b/drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c
@@ -359,7 +359,7 @@ static int kingdisplay_panel_probe(struct mipi_dsi_device *dsi)
dsi->lanes = 4;
dsi->format = MIPI_DSI_FMT_RGB888;
dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
- MIPI_DSI_MODE_LPM;
+ MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_NO_EOT_PACKET;
kingdisplay = devm_drm_panel_alloc(&dsi->dev, __typeof(*kingdisplay), base,
&kingdisplay_panel_funcs,
--
2.51.2
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] drm/panel: kingdisplay-kd097d04: Disable EoTp
2025-10-28 21:38 [PATCH] drm/panel: kingdisplay-kd097d04: Disable EoTp Sebastian Fleer
@ 2025-10-28 22:31 ` Christoph Fritz
2025-10-29 7:12 ` Sebastian Fleer
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Fritz @ 2025-10-28 22:31 UTC (permalink / raw)
To: Sebastian Fleer
Cc: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, dri-devel,
linux-kernel
Hi Sebastian
On Tue, 2025-10-28 at 22:38 +0100, Sebastian Fleer wrote:
> Since commit d97e71e44937 ("drm/bridge: synopsys: dw-mipi-dsi: enable EoTp by
> default") panel output on an Acer Chromebook Tab 10 (google-dru) is corrupted.
> The tablet I use is equipped with a kingdisplay-kd097d04 panel, disabling EoTp
> restores the correct functionality.
>
> Fixes: d97e71e44937 ("drm/bridge: synopsys: dw-mipi-dsi: enable EoTp by default")
Just to clarify: This is not a fix for that commit, it is a fix for the
panel driver itself.
EoTp is the default in Linux, a panel driver cannot enable it, only
disable it.
Commit d97e71e44937 ("drm/bridge: synopsys: dw-mipi-dsi: enable EoTp by
default") fixed a bug in the synopsys dw-mipi-dsi because EoTp was not
enabled there by default.
Enabling EoTp in dw-mipi-dsi revealed an underlying issue in panel-
kingdisplay-kd097d04.
That same issue appears if one would connect this panel to a different
mipi-dsi core (because there EoTp is also enabled by default).
> Signed-off-by: Sebastian Fleer <dev@dwurp.de>
> ---
> drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c b/drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c
> index 2fc7b0779b37..893af9b16756 100644
> --- a/drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c
> +++ b/drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c
> @@ -359,7 +359,7 @@ static int kingdisplay_panel_probe(struct mipi_dsi_device *dsi)
> dsi->lanes = 4;
> dsi->format = MIPI_DSI_FMT_RGB888;
> dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
> - MIPI_DSI_MODE_LPM;
> + MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_NO_EOT_PACKET;
>
> kingdisplay = devm_drm_panel_alloc(&dsi->dev, __typeof(*kingdisplay), base,
> &kingdisplay_panel_funcs,
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] drm/panel: kingdisplay-kd097d04: Disable EoTp
2025-10-28 22:31 ` Christoph Fritz
@ 2025-10-29 7:12 ` Sebastian Fleer
2025-10-29 8:15 ` Christoph Fritz
0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Fleer @ 2025-10-29 7:12 UTC (permalink / raw)
To: chf.fritz
Cc: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, dri-devel,
linux-kernel
Hi Christoph,
On 10/28/25 23:31, Christoph Fritz wrote:
> Hi Sebastian
>
> On Tue, 2025-10-28 at 22:38 +0100, Sebastian Fleer wrote:
>> Since commit d97e71e44937 ("drm/bridge: synopsys: dw-mipi-dsi:
enable EoTp by
>> default") panel output on an Acer Chromebook Tab 10 (google-dru) is
corrupted.
>> The tablet I use is equipped with a kingdisplay-kd097d04 panel,
disabling EoTp
>> restores the correct functionality.
>>
>> Fixes: d97e71e44937 ("drm/bridge: synopsys: dw-mipi-dsi: enable EoTp
by default")
>
> Just to clarify: This is not a fix for that commit, it is a fix for the
> panel driver itself.
>
> EoTp is the default in Linux, a panel driver cannot enable it, only
> disable it.
>
> Commit d97e71e44937 ("drm/bridge: synopsys: dw-mipi-dsi: enable EoTp by
> default") fixed a bug in the synopsys dw-mipi-dsi because EoTp was not
> enabled there by default.
>
> Enabling EoTp in dw-mipi-dsi revealed an underlying issue in panel-
> kingdisplay-kd097d04.
>
> That same issue appears if one would connect this panel to a different
> mipi-dsi core (because there EoTp is also enabled by default).
>
thanks for your clarification. You're right, this change is merely a
workaround for the kingdisplay panel.
However, I'm in favor of keeping the "Fixes:" line since using bisect,
commit d97e71e44937 ("drm/bridge: synopsys: dw-mipi-dsi: enable EoTp by
default") is found as the first commit that shows distorted output for
that panel.
But I can make the nature of the change more clear in the commit
message. Would that be OK for you?
Best regards,
Sebastian
>> Signed-off-by: Sebastian Fleer <dev@dwurp.de>
>> ---
>> drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c
b/drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c
>> index 2fc7b0779b37..893af9b16756 100644
>> --- a/drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c
>> +++ b/drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c
>> @@ -359,7 +359,7 @@ static int kingdisplay_panel_probe(struct
mipi_dsi_device *dsi)
>> dsi->lanes = 4;
>> dsi->format = MIPI_DSI_FMT_RGB888;
>> dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
>> - MIPI_DSI_MODE_LPM;
>> + MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_NO_EOT_PACKET;
>>
>> kingdisplay = devm_drm_panel_alloc(&dsi->dev,
__typeof(*kingdisplay), base,
>> &kingdisplay_panel_funcs,
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] drm/panel: kingdisplay-kd097d04: Disable EoTp
2025-10-29 7:12 ` Sebastian Fleer
@ 2025-10-29 8:15 ` Christoph Fritz
2025-10-29 11:40 ` Sebastian Fleer
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Fritz @ 2025-10-29 8:15 UTC (permalink / raw)
To: Sebastian Fleer
Cc: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, dri-devel,
linux-kernel
> >> Fixes: d97e71e44937 ("drm/bridge: synopsys: dw-mipi-dsi: enable EoTp
> by default")
Nitpick: Your Mailclient messed up quoting.
> >
> > Just to clarify: This is not a fix for that commit, it is a fix for the
> > panel driver itself.
> >
> > EoTp is the default in Linux, a panel driver cannot enable it, only
> > disable it.
> >
> > Commit d97e71e44937 ("drm/bridge: synopsys: dw-mipi-dsi: enable EoTp by
> > default") fixed a bug in the synopsys dw-mipi-dsi because EoTp was not
> > enabled there by default.
> >
> > Enabling EoTp in dw-mipi-dsi revealed an underlying issue in panel-
> > kingdisplay-kd097d04.
> >
> > That same issue appears if one would connect this panel to a different
> > mipi-dsi core (because there EoTp is also enabled by default).
> >
> thanks for your clarification. You're right, this change is merely a
> workaround for the kingdisplay panel.
It's not a workaround, it's the actual fix.
> However, I'm in favor of keeping the "Fixes:" line since using bisect,
> commit d97e71e44937 ("drm/bridge: synopsys: dw-mipi-dsi: enable EoTp by
> default") is found as the first commit that shows distorted output for
> that panel.
Documentation states:
|| A Fixes: tag indicates that the patch fixes a bug in a previous
|| commit
You are quoting the wrong commit in your Fixes: tag.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] drm/panel: kingdisplay-kd097d04: Disable EoTp
2025-10-29 8:15 ` Christoph Fritz
@ 2025-10-29 11:40 ` Sebastian Fleer
0 siblings, 0 replies; 5+ messages in thread
From: Sebastian Fleer @ 2025-10-29 11:40 UTC (permalink / raw)
To: Christoph Fritz
Cc: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, dri-devel,
linux-kernel
On 10/29/25 09:15, Christoph Fritz wrote:
> It's not a workaround, it's the actual fix.
>
>> However, I'm in favor of keeping the "Fixes:" line since using bisect,
>> commit d97e71e44937 ("drm/bridge: synopsys: dw-mipi-dsi: enable EoTp by
>> default") is found as the first commit that shows distorted output for
>> that panel.
> Documentation states:
>
> || A Fixes: tag indicates that the patch fixes a bug in a previous
> || commit
>
> You are quoting the wrong commit in your Fixes: tag.
OK, now I got it. I'll send v2 with Fixes: 2a994cbed6b2 ("drm/panel: Add
Kingdisplay KD097D04 panel driver").
Thank you for your guidance.
Best regards
Sebastian
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-10-29 11:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-28 21:38 [PATCH] drm/panel: kingdisplay-kd097d04: Disable EoTp Sebastian Fleer
2025-10-28 22:31 ` Christoph Fritz
2025-10-29 7:12 ` Sebastian Fleer
2025-10-29 8:15 ` Christoph Fritz
2025-10-29 11:40 ` Sebastian Fleer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).