From: Thomas Zimmermann <tzimmermann@suse.de>
To: mhklinux@outlook.com, maarten.lankhorst@linux.intel.com,
mripard@kernel.org, airlied@gmail.com, simona@ffwll.ch,
drawat.floss@gmail.com, javierm@redhat.com, kraxel@redhat.com,
louis.chauvet@bootlin.com, hamohammed.sa@gmail.com,
melissa.srw@gmail.com, fvogt@suse.com
Cc: dri-devel@lists.freedesktop.org, linux-hyperv@vger.kernel.org,
virtualization@lists.linux.dev,
Thomas Zimmermann <tzimmermann@suse.de>
Subject: [RFC PATCH 0/6] drm: Add vblank timers for devices without interrupts
Date: Thu, 5 Jun 2025 17:24:38 +0200 [thread overview]
Message-ID: <20250605152637.98493-1-tzimmermann@suse.de> (raw)
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
next reply other threads:[~2025-06-05 15:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-05 15:24 Thomas Zimmermann [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250605152637.98493-1-tzimmermann@suse.de \
--to=tzimmermann@suse.de \
--cc=airlied@gmail.com \
--cc=drawat.floss@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=fvogt@suse.com \
--cc=hamohammed.sa@gmail.com \
--cc=javierm@redhat.com \
--cc=kraxel@redhat.com \
--cc=linux-hyperv@vger.kernel.org \
--cc=louis.chauvet@bootlin.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=melissa.srw@gmail.com \
--cc=mhklinux@outlook.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--cc=virtualization@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox