All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Rate-limit shadow-FB-to-console-update to screen refresh
@ 2019-09-09 14:06 Thomas Zimmermann
  2019-09-09 14:06 ` [PATCH 1/2] drm/fb-helper: Synchronize dirty worker with vblank Thomas Zimmermann
  2019-09-09 14:06 ` [PATCH 2/2] drm/mgag200: Add vblank support Thomas Zimmermann
  0 siblings, 2 replies; 17+ messages in thread
From: Thomas Zimmermann @ 2019-09-09 14:06 UTC (permalink / raw)
  To: daniel, airlied, noralf, rong.a.chen, feng.tang, ying.huang
  Cc: Thomas Zimmermann, dri-devel

A full-screen memcpy() moves the console's shadow buffer to hardware; with
possibly significant runtime overhead. [1]

The console's dirty worker now waits for the vblank to rate limit the
output frequency. Screen output can pile up while waiting and there's a
chance that multiple screen updates can be handled with a single memcpy().
Note that this has no effect on tearing: while the dirty worker updates
the hardware buffer, new data can still arrive in the shadow buffer. This
can create a tearing effcet, even though console output is synchronized
to vblank.

The patchset adds vblank support to mgag200, because the problem was first
reported with Matrox hardware.

[1] https://lists.freedesktop.org/archives/dri-devel/2019-July/228663.html

Thomas Zimmermann (2):
  drm/fb-helper: Synchronize dirty worker with vblank
  drm/mgag200: Add vblank support

 drivers/gpu/drm/drm_fb_helper.c        | 12 ++++++++
 drivers/gpu/drm/mgag200/mgag200_drv.c  |  1 +
 drivers/gpu/drm/mgag200/mgag200_drv.h  |  1 +
 drivers/gpu/drm/mgag200/mgag200_main.c | 33 ++++++++++++++++++++
 drivers/gpu/drm/mgag200/mgag200_mode.c | 42 +++++++++++++++++++++++---
 5 files changed, 85 insertions(+), 4 deletions(-)

--
2.23.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2019-09-17 13:25 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-09 14:06 [PATCH 0/2] Rate-limit shadow-FB-to-console-update to screen refresh Thomas Zimmermann
2019-09-09 14:06 ` [PATCH 1/2] drm/fb-helper: Synchronize dirty worker with vblank Thomas Zimmermann
2019-09-10 11:52   ` Gerd Hoffmann
2019-09-10 12:48     ` Thomas Zimmermann
2019-09-10 13:34       ` Noralf Trønnes
2019-09-10 13:51         ` Thomas Zimmermann
2019-09-10 14:59           ` Noralf Trønnes
2019-09-17 12:55             ` Daniel Vetter
2019-09-17 13:25               ` Noralf Trønnes
2019-09-09 14:06 ` [PATCH 2/2] drm/mgag200: Add vblank support Thomas Zimmermann
2019-09-10 11:47   ` Gerd Hoffmann
2019-09-10 14:01   ` Ville Syrjälä
2019-09-10 14:38     ` Thomas Zimmermann
2019-09-11 15:08     ` Thomas Zimmermann
2019-09-11 15:21       ` Ville Syrjälä
2019-09-11 17:31         ` Thomas Zimmermann
2019-09-10 15:12   ` Ville Syrjälä

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.