Skip to content

fix LCD diplays sporadically not work

Nam Cao dri-devel linux-fbdev lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2fb: flush deferred work in fb_deferred_io_fsync()drivers/video/fbdev/core/fb_defio.c+1 -51 reply
2/2fb: flush deferred IO before closingdrivers/video/fbdev/core/fb_defio.c+1 -10 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchSebastian Andrzej Siewior
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] fix LCD diplays sporadically not work

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(-)
Signature · 1 line
2.39.2