From: Thomas Zimmermann <tzimmermann@suse.de>
To: javierm@redhat.com, daniel@ffwll.ch, airlied@gmail.com,
mripard@kernel.org, maarten.lankhorst@linux.intel.com,
zackr@vmware.com, kraxel@redhat.com,
dri-devel@lists.freedesktop.org,
virtualization@lists.linux-foundation.org,
linux-graphics-maintainer@vmware.com
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Subject: [PATCH v2 0/8] drm/fbdev-generic: Mandatory shadow buffering
Date: Mon, 20 Mar 2023 16:07:43 +0100 [thread overview]
Message-ID: <20230320150751.20399-1-tzimmermann@suse.de> (raw)
After adding fbdev-dma and converting drivers, all users of
fbdev-generic require shadow buffering. Make it mandatory and
remove all other codepaths. This change greatly simplifies the
code for generic fbdev emulation. It will work with any driver
that supports GEM's vmap and vunmap.
The change further allows for a number of cleanups and fixes. The
flag prefer_shadow_fbdev is unused and to be removed. Probing in
fbdev-generic is now simple enough to roll back if it fails. Further
simplify the code for exporting the framebuffer's physical address.
Finally rename the symbols to follow other fbdev emulation.
v2:
* handle screen_size in separate patches (Javier)
Thomas Zimmermann (8):
drm/fbdev-generic: Always use shadow buffering
drm/fbdev-generic: Remove unused prefer_shadow_fbdev flag
drm/fb-helper: Export drm_fb_helper_release_info()
drm/fb-helper: Support smem_len in deferred I/O
drm/fbdev-generic: Set screen size to size of GEM buffer
drm/fbdev-generic: Clean up after failed probing
drm/fb-helper: Consolidate CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM
drm/fbdev-generic: Rename symbols
drivers/gpu/drm/drm_fb_helper.c | 63 ++++---
drivers/gpu/drm/drm_fbdev_dma.c | 9 +-
drivers/gpu/drm/drm_fbdev_generic.c | 279 +++++++++-------------------
drivers/gpu/drm/tiny/bochs.c | 1 -
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 1 -
include/drm/drm_fb_helper.h | 14 +-
include/drm/drm_mode_config.h | 7 -
7 files changed, 130 insertions(+), 244 deletions(-)
base-commit: 3333280906872bb8c2dff02666c7a8e46f085b24
--
2.40.0
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
next reply other threads:[~2023-03-20 15:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-20 15:07 Thomas Zimmermann [this message]
2023-03-20 15:07 ` [PATCH v2 1/8] drm/fbdev-generic: Always use shadow buffering Thomas Zimmermann
[not found] ` <8dff5007-ecbe-ac4f-d063-a4d27c660212@loongson.cn>
2023-03-21 19:12 ` [v2,1/8] " Thomas Zimmermann
2023-03-20 15:07 ` [PATCH v2 2/8] drm/fbdev-generic: Remove unused prefer_shadow_fbdev flag Thomas Zimmermann
2023-03-20 15:07 ` [PATCH v2 3/8] drm/fb-helper: Export drm_fb_helper_release_info() Thomas Zimmermann
2023-03-20 15:07 ` [PATCH v2 4/8] drm/fb-helper: Support smem_len in deferred I/O Thomas Zimmermann
2023-03-20 15:07 ` [PATCH v2 5/8] drm/fbdev-generic: Set screen size to size of GEM buffer Thomas Zimmermann
2023-03-20 15:07 ` [PATCH v2 6/8] drm/fbdev-generic: Clean up after failed probing Thomas Zimmermann
2023-03-20 15:07 ` [PATCH v2 7/8] drm/fb-helper: Consolidate CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM Thomas Zimmermann
2023-03-20 15:07 ` [PATCH v2 8/8] drm/fbdev-generic: Rename symbols 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=20230320150751.20399-1-tzimmermann@suse.de \
--to=tzimmermann@suse.de \
--cc=airlied@gmail.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=javierm@redhat.com \
--cc=kraxel@redhat.com \
--cc=linux-graphics-maintainer@vmware.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=virtualization@lists.linux-foundation.org \
--cc=zackr@vmware.com \
/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;
as well as URLs for NNTP newsgroup(s).