Re: [PATCH v4] drm: shmobile: Fix white screen after resume when LCDC is stopped

From: Geert Uytterhoeven

Date: Mon Nov 30 2026 - 04:25:26 EST


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@xxxxxxxxx wrote:
>> >> > > From: bui duc phuc <phucduc.bui@xxxxxxxxx>
>> >> > >
>> >> > > 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@xxxxxxxxx>
>> >> > > Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
>> >> > > Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
>> >> > > ---
>> >> > >
>> >> > > 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@xxxxxxxxxxxxxx

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