Linux-HyperV List
 help / color / mirror / Atom feed
* [RFC PATCH 0/6] drm: Add vblank timers for devices without interrupts
@ 2025-06-05 15:24 Thomas Zimmermann
  2025-06-05 15:24 ` [PATCH 1/6] drm/vblank: Add vblank timer Thomas Zimmermann
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Thomas Zimmermann @ 2025-06-05 15:24 UTC (permalink / raw)
  To: mhklinux, maarten.lankhorst, mripard, airlied, simona,
	drawat.floss, javierm, kraxel, louis.chauvet, hamohammed.sa,
	melissa.srw, fvogt
  Cc: dri-devel, linux-hyperv, virtualization, Thomas Zimmermann

Compositors often depend on vblanks to limit their display-update
rate. Without, they see vblank events ASAP, which creates high CPU
overhead. This is especially a problem with virtual devices with fast
framebuffer access.

The series moves vkms' vblank timer to DRM and converts a number of
drivers. The final patch rate-limits the output of DRM's framebuffer
console to vblank intervals. It has been taken from [1]. It reduces
the time for doing

  time find /usr/src/linux

from 24s to 20s with the patched bochs driver. Apparently the system
is spending less CPU overhead on display updates.

This is an RFC patchset to see if the approach is feasible. It's been
motivated by a recent discussion about hypervdrm [2] and other long-
standing bug reports. [3][4]

[1] https://patchwork.freedesktop.org/series/66442/
[2] https://lore.kernel.org/dri-devel/20250523161522.409504-1-mhklinux@outlook.com/T/#ma2ebb52b60bfb0325879349377738fadcd7cb7ef
[3] https://bugzilla.suse.com/show_bug.cgi?id=1189174
[4] https://invent.kde.org/plasma/kwin/-/merge_requests/1229#note_284606

Thomas Zimmermann (6):
  drm/vblank: Add vblank timer
  drm/vkms: Use vblank timer
  drm/simpledrm: Use vblank timer
  drm/bochs: Use vblank timer
  drm/hypervdrm: Use vblank timer
  drm/fb-helper: Synchronize dirty worker with vblank

 drivers/gpu/drm/Makefile                    |   3 +-
 drivers/gpu/drm/drm_fb_helper.c             |  20 ++++
 drivers/gpu/drm/drm_vblank_timer.c          | 100 ++++++++++++++++++++
 drivers/gpu/drm/hyperv/hyperv_drm.h         |   4 +
 drivers/gpu/drm/hyperv/hyperv_drm_modeset.c |  70 ++++++++++++++
 drivers/gpu/drm/sysfb/simpledrm.c           |  81 ++++++++++++++++
 drivers/gpu/drm/tiny/bochs.c                |  68 +++++++++++++
 drivers/gpu/drm/vkms/vkms_crtc.c            |  49 +++-------
 drivers/gpu/drm/vkms/vkms_drv.h             |   6 +-
 include/drm/drm_vblank_timer.h              |  26 +++++
 10 files changed, 386 insertions(+), 41 deletions(-)
 create mode 100644 drivers/gpu/drm/drm_vblank_timer.c
 create mode 100644 include/drm/drm_vblank_timer.h

-- 
2.49.0


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

end of thread, other threads:[~2025-06-10 15:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-05 15:24 [RFC PATCH 0/6] drm: Add vblank timers for devices without interrupts Thomas Zimmermann
2025-06-05 15:24 ` [PATCH 1/6] drm/vblank: Add vblank timer Thomas Zimmermann
2025-06-06  8:43   ` Louis Chauvet
2025-06-10 15:36     ` Thomas Zimmermann
2025-06-05 15:24 ` [PATCH 2/6] drm/vkms: Use " Thomas Zimmermann
2025-06-06  9:14   ` Louis Chauvet
2025-06-05 15:24 ` [PATCH 3/6] drm/simpledrm: " Thomas Zimmermann
2025-06-05 15:24 ` [PATCH 4/6] drm/bochs: " Thomas Zimmermann
2025-06-05 15:24 ` [PATCH 5/6] drm/hypervdrm: " Thomas Zimmermann
2025-06-05 15:24 ` [PATCH 6/6] drm/fb-helper: Synchronize dirty worker with vblank Thomas Zimmermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox