* [PATCH v4] drm: shmobile: Fix white screen after resume when LCDC is stopped
@ 2026-07-07 9:30 phucduc.bui
2026-11-11 12:09 ` Wolfram Sang
2026-11-30 12:34 ` Biju Das
0 siblings, 2 replies; 8+ messages in thread
From: phucduc.bui @ 2026-07-07 9:30 UTC (permalink / raw)
To: Laurent Pinchart, Geert Uytterhoeven, Maarten Lankhorst
Cc: Maxime Ripard, Thomas Zimmermann, Simona Vetter, dri-devel,
linux-renesas-soc, linux-kernel, bui duc phuc
From: bui duc phuc <phucduc.bui@gmail.com>
The LCDC on R8A7740 may show a completely white screen after resuming
from suspend (s2idle or s2ram).
After resume, both Set A and Set B registers are reset to 0. As the
Frame End interrupt is not generated while the controller is stopped
(DO=0), the hardware register switching mechanism is not triggered.
Consequently, Set A remains at 0x00000000 even though a valid Start
Address is written to Set B, resulting in a white screen.
This is a timing-dependent race condition. In some configurations,
debug options slow down the resume path enough for a Frame End
interrupt to occur, which can mask the issue.
Fix this by priming both register sets with the Start Address while the
controller is stopped, ensuring a valid base address is available
immediately after resume.
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
Note:
It was originally posted in March and has already received both
Reviewed-by and Tested-by tags. I'm resending it to bring it back
to attention in case it was overlooked.
Changes in v4:
- No functional changes.
- Resend.
Changes:
- v3
Update commit message, add Tested-by and Reviewed-by tags
- v2
Fix incorrect use of lcdc_write_mirror() for LDSA2R in
the DO=0 path; use lcdc_write() to update both register
sets as intended.
.../gpu/drm/renesas/shmobile/shmob_drm_plane.c | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c b/drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
index 148de34af785..92e7fb464cb3 100644
--- a/drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
+++ b/drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c
@@ -70,6 +70,7 @@ static void shmob_drm_primary_plane_setup(struct shmob_drm_plane *splane,
struct shmob_drm_plane_state *sstate = to_shmob_plane_state(state);
struct shmob_drm_device *sdev = to_shmob_device(splane->base.dev);
struct drm_framebuffer *fb = state->fb;
+ u32 ldcnt2r;
/* TODO: Handle YUV colorspaces. Hardcode REC709 for now. */
lcdc_write(sdev, LDDFR, sstate->format->lddfr | LDDFR_CF1);
@@ -78,11 +79,19 @@ static void shmob_drm_primary_plane_setup(struct shmob_drm_plane *splane,
/* Word and long word swap. */
lcdc_write(sdev, LDDDSR, sstate->format->ldddsr);
- lcdc_write_mirror(sdev, LDSA1R, sstate->dma[0]);
- if (shmob_drm_format_is_yuv(sstate->format))
- lcdc_write_mirror(sdev, LDSA2R, sstate->dma[1]);
+ ldcnt2r = lcdc_read(sdev, LDCNT2R);
+
+ if (ldcnt2r & LDCNT2R_DO) {
+ lcdc_write_mirror(sdev, LDSA1R, sstate->dma[0]);
+ if (shmob_drm_format_is_yuv(sstate->format))
+ lcdc_write_mirror(sdev, LDSA2R, sstate->dma[1]);
- lcdc_write(sdev, LDRCNTR, lcdc_read(sdev, LDRCNTR) ^ LDRCNTR_MRS);
+ lcdc_write(sdev, LDRCNTR, lcdc_read(sdev, LDRCNTR) ^ LDRCNTR_MRS);
+ } else {
+ lcdc_write(sdev, LDSA1R, sstate->dma[0]);
+ if (shmob_drm_format_is_yuv(sstate->format))
+ lcdc_write(sdev, LDSA2R, sstate->dma[1]);
+ }
}
static void shmob_drm_overlay_plane_setup(struct shmob_drm_plane *splane,
--
2.43.0
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH v4] drm: shmobile: Fix white screen after resume when LCDC is stopped
2026-07-07 9:30 [PATCH v4] drm: shmobile: Fix white screen after resume when LCDC is stopped phucduc.bui
@ 2026-11-11 12:09 ` Wolfram Sang
2026-11-28 3:27 ` Bui Duc Phuc
2026-11-30 12:34 ` Biju Das
1 sibling, 1 reply; 8+ messages in thread
From: Wolfram Sang @ 2026-11-11 12:09 UTC (permalink / raw)
To: phucduc.bui
Cc: Laurent Pinchart, Geert Uytterhoeven, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, Simona Vetter, dri-devel,
linux-renesas-soc, linux-kernel
On Tue, Jul 07, 2026 at 04:30:04PM +0700, phucduc.bui@gmail.com wrote:
> From: bui duc phuc <phucduc.bui@gmail.com>
>
> The LCDC on R8A7740 may show a completely white screen after resuming
> from suspend (s2idle or s2ram).
>
> After resume, both Set A and Set B registers are reset to 0. As the
> Frame End interrupt is not generated while the controller is stopped
> (DO=0), the hardware register switching mechanism is not triggered.
> Consequently, Set A remains at 0x00000000 even though a valid Start
> Address is written to Set B, resulting in a white screen.
>
> This is a timing-dependent race condition. In some configurations,
> debug options slow down the resume path enough for a Frame End
> interrupt to occur, which can mask the issue.
>
> Fix this by priming both register sets with the Start Address while the
> controller is stopped, ensuring a valid base address is available
> immediately after resume.
>
> Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
> ---
>
> Note:
> It was originally posted in March and has already received both
> Reviewed-by and Tested-by tags. I'm resending it to bring it back
> to attention in case it was overlooked.
>
> Changes in v4:
> - No functional changes.
> - Resend.
Still not upstream? Who is the person to pick this up? This is a
valuable fix we surely want to have.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v4] drm: shmobile: Fix white screen after resume when LCDC is stopped
2026-11-11 12:09 ` Wolfram Sang
@ 2026-11-28 3:27 ` Bui Duc Phuc
2026-11-30 6:39 ` Laurent Pinchart
0 siblings, 1 reply; 8+ messages in thread
From: Bui Duc Phuc @ 2026-11-28 3:27 UTC (permalink / raw)
To: Wolfram Sang
Cc: Laurent Pinchart, Geert Uytterhoeven, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, Simona Vetter, dri-devel,
linux-renesas-soc, linux-kernel
On Wed, Nov 11, 2026 at 7:09 PM Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
>
> On Tue, Jul 07, 2026 at 04:30:04PM +0700, phucduc.bui@gmail.com wrote:
> > From: bui duc phuc <phucduc.bui@gmail.com>
> >
> > The LCDC on R8A7740 may show a completely white screen after resuming
> > from suspend (s2idle or s2ram).
> >
> > After resume, both Set A and Set B registers are reset to 0. As the
> > Frame End interrupt is not generated while the controller is stopped
> > (DO=0), the hardware register switching mechanism is not triggered.
> > Consequently, Set A remains at 0x00000000 even though a valid Start
> > Address is written to Set B, resulting in a white screen.
> >
> > This is a timing-dependent race condition. In some configurations,
> > debug options slow down the resume path enough for a Frame End
> > interrupt to occur, which can mask the issue.
> >
> > Fix this by priming both register sets with the Start Address while the
> > controller is stopped, ensuring a valid base address is available
> > immediately after resume.
> >
> > Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
> > ---
> >
> > Note:
> > It was originally posted in March and has already received both
> > Reviewed-by and Tested-by tags. I'm resending it to bring it back
> > to attention in case it was overlooked.
> >
> > Changes in v4:
> > - No functional changes.
> > - Resend.
>
> Still not upstream? Who is the person to pick this up? This is a
> valuable fix we surely want to have.
>
This issue had been around for over 10 years, and it took me two
weeks to track it down and fix it. It's also been about eight months
since I sent the v1 patch in March.
Hopefully, the relevant maintainer will consider picking it up.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v4] drm: shmobile: Fix white screen after resume when LCDC is stopped
2026-11-28 3:27 ` Bui Duc Phuc
@ 2026-11-30 6:39 ` Laurent Pinchart
2026-11-30 8:30 ` Geert Uytterhoeven
0 siblings, 1 reply; 8+ messages in thread
From: Laurent Pinchart @ 2026-11-30 6:39 UTC (permalink / raw)
To: Bui Duc Phuc
Cc: Wolfram Sang, Geert Uytterhoeven, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, Simona Vetter, dri-devel,
linux-renesas-soc, linux-kernel
On Sat, Nov 28, 2026 at 10:27:05AM +0700, Bui Duc Phuc wrote:
> On Wed, Nov 11, 2026 at 7:09 PM Wolfram Sang wrote:
> > On Tue, Jul 07, 2026 at 04:30:04PM +0700, phucduc.bui@gmail.com wrote:
> > > From: bui duc phuc <phucduc.bui@gmail.com>
> > >
> > > The LCDC on R8A7740 may show a completely white screen after resuming
> > > from suspend (s2idle or s2ram).
> > >
> > > After resume, both Set A and Set B registers are reset to 0. As the
> > > Frame End interrupt is not generated while the controller is stopped
> > > (DO=0), the hardware register switching mechanism is not triggered.
> > > Consequently, Set A remains at 0x00000000 even though a valid Start
> > > Address is written to Set B, resulting in a white screen.
> > >
> > > This is a timing-dependent race condition. In some configurations,
> > > debug options slow down the resume path enough for a Frame End
> > > interrupt to occur, which can mask the issue.
> > >
> > > Fix this by priming both register sets with the Start Address while the
> > > controller is stopped, ensuring a valid base address is available
> > > immediately after resume.
> > >
> > > Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > > Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > > Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
> > > ---
> > >
> > > Note:
> > > It was originally posted in March and has already received both
> > > Reviewed-by and Tested-by tags. I'm resending it to bring it back
> > > to attention in case it was overlooked.
> > >
> > > Changes in v4:
> > > - No functional changes.
> > > - Resend.
> >
> > Still not upstream? Who is the person to pick this up? This is a
> > valuable fix we surely want to have.
>
> This issue had been around for over 10 years, and it took me two
> weeks to track it down and fix it. It's also been about eight months
> since I sent the v1 patch in March.
> Hopefully, the relevant maintainer will consider picking it up.
Geert, I've assumed you would push the patch, was that an incorrect
assumption ?
I've just noticed I'm still listed as maintainer for the shmobile-lcdc
driver. As I haven't worked on it for a long while (and I'm not even
sure if I have functional hardware to test it), I'd like to retire and
leave you as sole maintainer. Would that be OK ?
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v4] drm: shmobile: Fix white screen after resume when LCDC is stopped
2026-11-30 6:39 ` Laurent Pinchart
@ 2026-11-30 8:30 ` Geert Uytterhoeven
2026-11-30 8:37 ` Laurent Pinchart
0 siblings, 1 reply; 8+ messages in thread
From: Geert Uytterhoeven @ 2026-11-30 8:30 UTC (permalink / raw)
To: Laurent Pinchart, Bui Duc Phuc
Cc: Wolfram Sang, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Simona Vetter, dri-devel, linux-renesas-soc,
linux-kernel
Hi Laurent,
On Mon, Nov 30, 2026, at 07:39, Laurent Pinchart wrote:
> On Sat, Nov 28, 2026 at 10:27:05AM +0700, Bui Duc Phuc wrote:
>> On Wed, Nov 11, 2026 at 7:09 PM Wolfram Sang wrote:
>> > On Tue, Jul 07, 2026 at 04:30:04PM +0700, phucduc.bui@gmail.com wrote:
>> > > From: bui duc phuc <phucduc.bui@gmail.com>
>> > >
>> > > The LCDC on R8A7740 may show a completely white screen after resuming
>> > > from suspend (s2idle or s2ram).
>> > >
>> > > After resume, both Set A and Set B registers are reset to 0. As the
>> > > Frame End interrupt is not generated while the controller is stopped
>> > > (DO=0), the hardware register switching mechanism is not triggered.
>> > > Consequently, Set A remains at 0x00000000 even though a valid Start
>> > > Address is written to Set B, resulting in a white screen.
>> > >
>> > > This is a timing-dependent race condition. In some configurations,
>> > > debug options slow down the resume path enough for a Frame End
>> > > interrupt to occur, which can mask the issue.
>> > >
>> > > Fix this by priming both register sets with the Start Address while the
>> > > controller is stopped, ensuring a valid base address is available
>> > > immediately after resume.
>> > >
>> > > Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
>> > > Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
>> > > Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
>> > > ---
>> > >
>> > > Note:
>> > > It was originally posted in March and has already received both
>> > > Reviewed-by and Tested-by tags. I'm resending it to bring it back
>> > > to attention in case it was overlooked.
>> > >
>> > > Changes in v4:
>> > > - No functional changes.
>> > > - Resend.
>> >
>> > Still not upstream? Who is the person to pick this up? This is a
>> > valuable fix we surely want to have.
>>
>> This issue had been around for over 10 years, and it took me two
>> weeks to track it down and fix it. It's also been about eight months
>> since I sent the v1 patch in March.
>> Hopefully, the relevant maintainer will consider picking it up.
>
> Geert, I've assumed you would push the patch, was that an incorrect
> assumption ?
Yes it was, I don't have DRM git write access (and don't envy that).
> I've just noticed I'm still listed as maintainer for the shmobile-lcdc
> driver. As I haven't worked on it for a long while (and I'm not even
> sure if I have functional hardware to test it), I'd like to retire and
> leave you as sole maintainer. Would that be OK ?
That would be fine for me. Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH v4] drm: shmobile: Fix white screen after resume when LCDC is stopped
2026-11-30 8:30 ` Geert Uytterhoeven
@ 2026-11-30 8:37 ` Laurent Pinchart
2026-11-30 9:24 ` Geert Uytterhoeven
0 siblings, 1 reply; 8+ messages in thread
From: Laurent Pinchart @ 2026-11-30 8:37 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Bui Duc Phuc, Wolfram Sang, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Simona Vetter, dri-devel, linux-renesas-soc,
linux-kernel
On Mon, Nov 30, 2026 at 09:30:19AM +0100, Geert Uytterhoeven wrote:
> On Mon, Nov 30, 2026, at 07:39, Laurent Pinchart wrote:
> > On Sat, Nov 28, 2026 at 10:27:05AM +0700, Bui Duc Phuc wrote:
> >> On Wed, Nov 11, 2026 at 7:09 PM Wolfram Sang wrote:
> >> > On Tue, Jul 07, 2026 at 04:30:04PM +0700, phucduc.bui@gmail.com wrote:
> >> > > From: bui duc phuc <phucduc.bui@gmail.com>
> >> > >
> >> > > The LCDC on R8A7740 may show a completely white screen after resuming
> >> > > from suspend (s2idle or s2ram).
> >> > >
> >> > > After resume, both Set A and Set B registers are reset to 0. As the
> >> > > Frame End interrupt is not generated while the controller is stopped
> >> > > (DO=0), the hardware register switching mechanism is not triggered.
> >> > > Consequently, Set A remains at 0x00000000 even though a valid Start
> >> > > Address is written to Set B, resulting in a white screen.
> >> > >
> >> > > This is a timing-dependent race condition. In some configurations,
> >> > > debug options slow down the resume path enough for a Frame End
> >> > > interrupt to occur, which can mask the issue.
> >> > >
> >> > > Fix this by priming both register sets with the Start Address while the
> >> > > controller is stopped, ensuring a valid base address is available
> >> > > immediately after resume.
> >> > >
> >> > > Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
> >> > > Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> >> > > Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
> >> > > ---
> >> > >
> >> > > Note:
> >> > > It was originally posted in March and has already received both
> >> > > Reviewed-by and Tested-by tags. I'm resending it to bring it back
> >> > > to attention in case it was overlooked.
> >> > >
> >> > > Changes in v4:
> >> > > - No functional changes.
> >> > > - Resend.
> >> >
> >> > Still not upstream? Who is the person to pick this up? This is a
> >> > valuable fix we surely want to have.
> >>
> >> This issue had been around for over 10 years, and it took me two
> >> weeks to track it down and fix it. It's also been about eight months
> >> since I sent the v1 patch in March.
> >> Hopefully, the relevant maintainer will consider picking it up.
> >
> > Geert, I've assumed you would push the patch, was that an incorrect
> > assumption ?
>
> Yes it was, I don't have DRM git write access (and don't envy that).
How do you get your other shmobile-lcdc patches merged in drm ? Through
pull requests ?
> > I've just noticed I'm still listed as maintainer for the shmobile-lcdc
> > driver. As I haven't worked on it for a long while (and I'm not even
> > sure if I have functional hardware to test it), I'd like to retire and
> > leave you as sole maintainer. Would that be OK ?
>
> That would be fine for me. Thanks!
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v4] drm: shmobile: Fix white screen after resume when LCDC is stopped
2026-11-30 8:37 ` Laurent Pinchart
@ 2026-11-30 9:24 ` Geert Uytterhoeven
0 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2026-11-30 9:24 UTC (permalink / raw)
To: Laurent Pinchart
Cc: Bui Duc Phuc, Wolfram Sang, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Simona Vetter, dri-devel, linux-renesas-soc,
linux-kernel
Hi Laurent,
On Mon, Nov 30, 2026, at 09:37, Laurent Pinchart wrote:
> On Mon, Nov 30, 2026 at 09:30:19AM +0100, Geert Uytterhoeven wrote:
>> On Mon, Nov 30, 2026, at 07:39, Laurent Pinchart wrote:
>> > On Sat, Nov 28, 2026 at 10:27:05AM +0700, Bui Duc Phuc wrote:
>> >> On Wed, Nov 11, 2026 at 7:09 PM Wolfram Sang wrote:
>> >> > On Tue, Jul 07, 2026 at 04:30:04PM +0700, phucduc.bui@gmail.com wrote:
>> >> > > From: bui duc phuc <phucduc.bui@gmail.com>
>> >> > >
>> >> > > The LCDC on R8A7740 may show a completely white screen after resuming
>> >> > > from suspend (s2idle or s2ram).
>> >> > >
>> >> > > After resume, both Set A and Set B registers are reset to 0. As the
>> >> > > Frame End interrupt is not generated while the controller is stopped
>> >> > > (DO=0), the hardware register switching mechanism is not triggered.
>> >> > > Consequently, Set A remains at 0x00000000 even though a valid Start
>> >> > > Address is written to Set B, resulting in a white screen.
>> >> > >
>> >> > > This is a timing-dependent race condition. In some configurations,
>> >> > > debug options slow down the resume path enough for a Frame End
>> >> > > interrupt to occur, which can mask the issue.
>> >> > >
>> >> > > Fix this by priming both register sets with the Start Address while the
>> >> > > controller is stopped, ensuring a valid base address is available
>> >> > > immediately after resume.
>> >> > >
>> >> > > Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
>> >> > > Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
>> >> > > Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
>> >> > > ---
>> >> > >
>> >> > > Note:
>> >> > > It was originally posted in March and has already received both
>> >> > > Reviewed-by and Tested-by tags. I'm resending it to bring it back
>> >> > > to attention in case it was overlooked.
>> >> > >
>> >> > > Changes in v4:
>> >> > > - No functional changes.
>> >> > > - Resend.
>> >> >
>> >> > Still not upstream? Who is the person to pick this up? This is a
>> >> > valuable fix we surely want to have.
>> >>
>> >> This issue had been around for over 10 years, and it took me two
>> >> weeks to track it down and fix it. It's also been about eight months
>> >> since I sent the v1 patch in March.
>> >> Hopefully, the relevant maintainer will consider picking it up.
>> >
>> > Geert, I've assumed you would push the patch, was that an incorrect
>> > assumption ?
>>
>> Yes it was, I don't have DRM git write access (and don't envy that).
>
> How do you get your other shmobile-lcdc patches merged in drm ? Through
> pull requests ?
So far one PR, and one patch applied by mripard.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [PATCH v4] drm: shmobile: Fix white screen after resume when LCDC is stopped
2026-07-07 9:30 [PATCH v4] drm: shmobile: Fix white screen after resume when LCDC is stopped phucduc.bui
2026-11-11 12:09 ` Wolfram Sang
@ 2026-11-30 12:34 ` Biju Das
1 sibling, 0 replies; 8+ messages in thread
From: Biju Das @ 2026-11-30 12:34 UTC (permalink / raw)
To: phucduc.bui, laurent.pinchart, Geert Uytterhoeven, Maarten Lankhorst
Cc: Maxime Ripard, Thomas Zimmermann, Simona Vetter, dri-devel,
linux-renesas-soc, linux-kernel
Hi All,
> -----Original Message-----
> From: phucduc.bui@gmail.com <phucduc.bui@gmail.com>
> Sent: 07 July 2026 10:30
> Subject: [PATCH v4] drm: shmobile: Fix white screen after resume when LCDC is stopped
>
> From: bui duc phuc <phucduc.bui@gmail.com>
>
> The LCDC on R8A7740 may show a completely white screen after resuming from suspend (s2idle or s2ram).
>
> After resume, both Set A and Set B registers are reset to 0. As the Frame End interrupt is not
> generated while the controller is stopped (DO=0), the hardware register switching mechanism is not
> triggered.
> Consequently, Set A remains at 0x00000000 even though a valid Start Address is written to Set B,
> resulting in a white screen.
>
> This is a timing-dependent race condition. In some configurations, debug options slow down the resume
> path enough for a Frame End interrupt to occur, which can mask the issue.
>
> Fix this by priming both register sets with the Start Address while the controller is stopped,
> ensuring a valid base address is available immediately after resume.
>
> Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
> ---
>
> Note:
> It was originally posted in March and has already received both Reviewed-by and Tested-by tags. I'm
> resending it to bring it back to attention in case it was overlooked.
>
> Changes in v4:
> - No functional changes.
> - Resend.
Applied to next.
Cheers,
Biju
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-11-30 12:34 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-07 9:30 [PATCH v4] drm: shmobile: Fix white screen after resume when LCDC is stopped phucduc.bui
2026-11-11 12:09 ` Wolfram Sang
2026-11-28 3:27 ` Bui Duc Phuc
2026-11-30 6:39 ` Laurent Pinchart
2026-11-30 8:30 ` Geert Uytterhoeven
2026-11-30 8:37 ` Laurent Pinchart
2026-11-30 9:24 ` Geert Uytterhoeven
2026-11-30 12:34 ` Biju Das
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®