linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] fix LCD diplays sporadically not work
@ 2023-12-18  9:57 Nam Cao
  2023-12-18  9:57 ` [PATCH 1/2] fb: flush deferred work in fb_deferred_io_fsync() Nam Cao
  2023-12-18  9:57 ` [PATCH 2/2] fb: flush deferred IO before closing Nam Cao
  0 siblings, 2 replies; 4+ messages in thread
From: Nam Cao @ 2023-12-18  9:57 UTC (permalink / raw)
  To: Jaya Kumar, Daniel Vetter, Helge Deller, Antonino Daplas,
	Andrew Morton, Paul Mundt, linux-fbdev, dri-devel, linux-kernel
  Cc: bigeasy, Nam Cao

Hi,

While working with a framebuffer displays, I noticed that the displays
sporadically do not show the image as I expect.

After investigation: this is because my devices use deferred IO, and by
closing the framebuffers, all pending deferred IO get cancelled. This
causes the image I sent to the devices to just vanish. Using fsync() does
not always help, because the driver's implementation of fsync() does not
guarantee that all pending work is flushed on return.

This series solves the problem by flush the workqueue in .release(). Also
flush the workqueue in .fsync(), as it is supposed to do.

Nam Cao (2):
  fb: flush deferred work in fb_deferred_io_fsync()
  fb: flush deferred IO before closing

 drivers/video/fbdev/core/fb_defio.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

-- 
2.39.2


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

end of thread, other threads:[~2023-12-19  7:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-18  9:57 [PATCH 0/2] fix LCD diplays sporadically not work Nam Cao
2023-12-18  9:57 ` [PATCH 1/2] fb: flush deferred work in fb_deferred_io_fsync() Nam Cao
2023-12-19  7:43   ` Helge Deller
2023-12-18  9:57 ` [PATCH 2/2] fb: flush deferred IO before closing Nam Cao

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).