From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=202.12.124.143 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796030720; b=rnhdU7Qk1TWK1CC9yQtB3WsihY5Cdd3UjH++InyM52QedApJ298N2vnpEcMyMdKLKBYI IE3vXgiB6cLiULBrFlf2AVq6XeqaR3rozeKNwC7fWedR80hF3BvLxlgu7pmis4aTc6pXM fYnu1wJCDBfAM+5lyCsb6YhhCedrFD12HeMulY0vq3H+r7Ji8rHzejbTLbbpIqlfBl8Zr MwpOWH/wCMZ5S6uZheD5AevHQ3AirN9E2LTwX3HVh97bEPJy9Jp1tCdFI2TvlK4ar69ID JsNuiHji+b0jmVAQhDasjFMcnt4Ivl9YKB9va5+p6Hl9eYopUwXug12dO6l+KOy1IIQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796030720; h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature: X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance: X-ME-Sender:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:Received:X-Mailer: MIME-Version:X-ThreadId:Date:From:To:Cc:Message-Id:In-Reply-To: References:Subject:Content-Type:Content-Transfer-Encoding; bh=KpoOk9rE/y5IEhKhtbEPk7XivmQmA/8t00G3+0JPqD0=; b=eIc/Hts+nVA/yWtVibdDm8PAop8a49ZUFCBqtgaNjWV0TpExjbcjCMkAgY7LNXvE2m9W 0LlzgDeQbhDuji17LtdM+P/8HxsCnnYtcx+Cb1miBqe1emOZvqLfq0yTZyBxzKTPccgcS sn9ieHJyhGpRWFnNB535VvP1qrz759siQ7Enr3rjLjdtxHYnuOnU/6gfWjCjxEw+QxovN k1DT579HFIePcHel6JGtvKpHztnQ9UBQwAJAinZepJLvFF5wFG2rhblQ1anFcZAhVF8Fh 1I2ouNcFC561JT9gXF8kJOkRoJYj2fiLQqDZ/FSkk4y7AWR3t/jlxK85J3mdZ6WR90A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=glider.be; spf=pass smtp.mailfrom=glider.be; dkim=pass header.d=glider.be header.i=@glider.be header.a=rsa-sha256 header.s=fm1 header.b=Fn6HBsBF; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=CS0o19zJ; arc=none smtp.remote-ip=202.12.124.143 Received: from flow-b8-smtp.messagingengine.com (flow-b8-smtp.messagingengine.com [202.12.124.143]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12FE7606A320 for ; Mon, 30 Nov 2026 09:25:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 12FE7606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=glider.be Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=glider.be header.i=@glider.be header.a=rsa-sha256 header.s=fm1 header.b=Fn6HBsBF; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=CS0o19zJ Received: from ams-compute-02.internal (ams-compute-02.internal [10.64.2.62]) by mailflow.stl.internal (Postfix) with ESMTP id F0A0F130348E for ; Mon, 30 Nov 2026 04:25:18 -0500 (EST) Received: from ams-imap-13 ([10.64.2.33]) by ams-compute-02.internal (MEProxy); Mon, 30 Nov 2026 04:25:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=glider.be; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1796030713; x=1796034313; bh=KpoOk9rE/y5IEhKhtbEPk7XivmQmA/8t00G3+0JPqD0=; b= Fn6HBsBF5F+HnNFJKpv8hMUvh1gpbPzV45Dd2MBXJ1mg6t43h6S0rQRODKBp56Fv TKOG1WGoYiC1nUjYZrysBgt3X57AkSR17LGShYY6uhFSJeYHnK+Bl9Hkt+XySvde CpgUKIFkYA74UsQaoCi0YfwR3zIkljlVd63UPK0LQCo+0RjcmVRTC1gpHnwDTYtJ K5+xGA7QRrY995nYjzhBCIPwLwlOeS1SGdnbxQy/pjnRdvd+ruUJjBO0/Owz4eJE 3+GdFJ+0aUyPjnD+tyy6c+amZxdBqhOdUz0MgGJwD06yZl0w6gIQwCpS7hRwRcje jmkjnS3XK3APRpt/DN0bhw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1796030713; x= 1796034313; bh=KpoOk9rE/y5IEhKhtbEPk7XivmQmA/8t00G3+0JPqD0=; b=C S0o19zJdmYaRf6n2mPIzbPvDNgUrLyarL0hgQHoVKF6FH3G98AWobCDIoNNDZE/n yXgKRiCb85/u7o1oftK/6At1fQvAX2jVI1OO4G0bPAj7dae8G/s/yOcgvpaLBqZ8 7yDiqa5HZTH4B3qmr6wPeJ94n3xMH0HrlJzG+Vfqcf69DpE9b3G6P12v2hXdSQGa GESzPCOFet/pUumAlQxl4NnuD50206xf4fay8YHdoxpHg5AUlKs8XldVJlYdX0nY WOYQheoq9h1cNoHCq2qA3A6v2aQb7znBHdqGJq7wgY5lt5GW8YYREv4CS9Yyjh7+ /qhjQ3qj6Wy/mSwhQoHiQ== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=glider.be a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1796030713; d=glider.be; mf=PGdlZXJ0K3JlbmVzYXNAZ2xpZGVyLmJlPg==; rt=PGxpbnV4LWtlcm5lbEB2Z2VyLmtlcm5lbC5vcmc+; s=fm1:rsa-sha256:LAeMpcfbJEniyrBTgym0fvNQAItn3ZBk9IGWcW7jRhnML5M KHZU/3OCJCKmsKWSBaP7YSVbQocCfmRSii9ohiVFArLkYJWFAhSIun3lEhWwriQ2 29oMEGG/HT9pD6BPTCS0z+iTXE318LqzOdr2AkiQaQhD1WhTZDRd4ABxnzaOyVVH zPeHL3BgE1ES4u73tDXHpuxWl1timxxub4g33uO03OzBj5KWN33ikpPUBAUOklI4 VIHy83RpIWX1vtvqAVJXNyWexxFLeWH7Mb+6glPY3KTzuzm+01/Nz5/MAJoMkgVu N72JS9B+Y3s96ebabKh6k7col8+XSrJiFnpToGA==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=12; hn=cc,content-transfer-encoding,content-type,date,feedback-id, from,in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:eCdvPT/LnzttLK2KbccaBNKNtX+xuxVYEdxkfIVPfHM=:Bio42p8jqlkqUzzDye9V2ESZFD4bQPqdKIx0iHDh2yw=; X-ME-Sender: X-ME-Proxy-Cause: dmFkZTF43XjOXrDmVX7qxYHpDYDLVXyL0GABwctTNPWr8jtrmYWD7zuf/aUGxcpUrMbOOp jg65Ztcd2sAKI17YkoBPOJUrFlTDLktseD2e45hi3NYJu6p8sx30xYdGpvMkRQj/rsWCID jUmU/XOm3JhiaOQYVfOgMkZI/wgDlZ/lZ0wklDiBh1k8NjMqRpvBspKqQF0xZVpj2CFm6w PKZ1FDxSo4K9f+1OaF0wkfqFv7xu36ZUybrRb+Ef3Y3qT+h/nUlTXg1zubRZXSrT2xGEAj plHqwsLXL1sVEL0uPrybr2QAEQF28c5CfxZpwkmanrdH3QINRQYMWHUIuZeA5pYa2prddR g8uBZcRUzruzi6sHk/c7AOU8RIATboVmZJThsxxXn0WNHVgE+i+l54bI8KNKrMcjHHnAYU MHUTFoJk1qD+nKxelmxfOo87fsrgGLWdrv5MdVxyuCUi8C/7MSSzdYhNPzsNqlC4Yn2qtb BTLuUFeCaspasxtNhMrtluJU9ECXN46C+WVqgUJ71QGwTRePWJzp7HT+6/40/RaJlrwMsf Q+96Y4HFNZvr7Fvqc+4/ju9thVcI1LBe+l+hT0RgjJ7gEbLZXaoNEeMWTCaX3i9kiOoXzy yiWeHexnOv86YTixa4JmHi/WlKN1b5DbwPN70twZqDEqN/awZh+YmQonqy+g X-ME-Proxy: Feedback-ID: ia0f84a9e:Fastmail Received: by mailuser.ams.internal (Postfix, from userid 501) id BFF3CF8009E; Mon, 30 Nov 2026 04:25:06 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-ThreadId: AHzp_ovgKdEg Date: Mon, 30 Nov 2026 10:24:39 +0100 From: "Geert Uytterhoeven" To: "Laurent Pinchart" Cc: "Bui Duc Phuc" , "Wolfram Sang" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "Simona Vetter" , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: In-Reply-To: <20261130083735.GA57763@killaraus.ideasonboard.com> References: <20260707093004.987846-1-phucduc.bui@gmail.com> <20261130063940.GC24781@killaraus.ideasonboard.com> <20261130083735.GA57763@killaraus.ideasonboard.com> Subject: Re: [PATCH v4] drm: shmobile: Fix white screen after resume when LCDC is stopped Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=E2=80=AFPM Wolfram Sang wrote: >> >> > On Tue, Jul 07, 2026 at 04:30:04PM +0700, phucduc.bui@gmail.com = wrote: >> >> > > From: bui duc phuc >> >> > > >> >> > > The LCDC on R8A7740 may show a completely white screen after r= esuming >> >> > > from suspend (s2idle or s2ram). >> >> > > >> >> > > After resume, both Set A and Set B registers are reset to 0. A= s the >> >> > > Frame End interrupt is not generated while the controller is s= topped >> >> > > (DO=3D0), the hardware register switching mechanism is not tri= ggered. >> >> > > 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 configurati= ons, >> >> > > 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 availa= ble >> >> > > immediately after resume. >> >> > > >> >> > > Tested-by: Geert Uytterhoeven >> >> > > Reviewed-by: Geert Uytterhoeven >> >> > > Signed-off-by: bui duc phuc >> >> > > --- >> >> > > >> >> > > 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 b= ack >> >> > > 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. >> >>=20 >> >> 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 mont= hs >> >> 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 ? >>=20 >> 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-m= 68k.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 lik= e that. -- Linus Tor= valds