From: Thomas Zimmermann <tzimmermann@suse.de>
To: airlied@linux.ie, daniel@ffwll.ch,
maarten.lankhorst@linux.intel.com, mripard@kernel.org,
corbet@lwn.net
Cc: dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org,
Thomas Zimmermann <tzimmermann@suse.de>
Subject: [PATCH 0/3] drm: Add aperture helpers
Date: Mon, 12 Apr 2021 11:00:18 +0200 [thread overview]
Message-ID: <20210412090021.23054-1-tzimmermann@suse.de> (raw)
Adds helpers for maintaining aperture ownership. Currently wraps
the infrastructure around fbdev's remove_conflicting_framebuffers().
For adding generic drivers to DRM, we need a hand-over mechanism
that unloads the generic driver before loading the hardware's native
driver. So far, this was supported for generic fbdev drivers, but
not for DRM drivers.
As a first step, this patchset provides a DRM interface to release
ownership of a framebuffer aperture. When called, all generic drivers
for framebuffers in the range are being unloaded. At this point
the functions wrap similar fbdev functionality. The old fbdev-based
interface is being inlined into the new functionsa and drivers are
converted.
The patchset is based on patches 3 and 4 of [1]. I incorporated the
review comments and kept the acked-bys.
All converted drivers have been built at least once on either x86-64,
aarch64 or arm.
[1] https://lore.kernel.org/dri-devel/20210318102921.21536-1-tzimmermann@suse.de/
Thomas Zimmermann (3):
drm/aperture: Add infrastructure for aperture ownership
drm/aperture: Convert drivers to aperture interfaces
drm/aperture: Inline fbdev conflict helpers into aperture helpers
Documentation/gpu/drm-internals.rst | 12 ++
drivers/gpu/drm/Makefile | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 +-
drivers/gpu/drm/armada/armada_drv.c | 5 +-
drivers/gpu/drm/ast/ast_drv.c | 23 ++-
drivers/gpu/drm/bochs/bochs_drv.c | 3 +-
drivers/gpu/drm/drm_aperture.c | 131 ++++++++++++++++++
.../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 4 +-
drivers/gpu/drm/i915/i915_drv.c | 3 +-
drivers/gpu/drm/meson/meson_drv.c | 27 ++--
drivers/gpu/drm/mgag200/mgag200_drv.c | 5 +-
drivers/gpu/drm/msm/msm_fbdev.c | 5 +-
drivers/gpu/drm/nouveau/nouveau_drm.c | 3 +-
drivers/gpu/drm/qxl/qxl_drv.c | 5 +-
drivers/gpu/drm/radeon/radeon_drv.c | 3 +-
drivers/gpu/drm/sun4i/sun4i_drv.c | 5 +-
drivers/gpu/drm/tegra/drm.c | 4 +-
drivers/gpu/drm/tiny/cirrus.c | 3 +-
drivers/gpu/drm/vboxvideo/vbox_drv.c | 3 +-
drivers/gpu/drm/vc4/vc4_drv.c | 5 +-
drivers/gpu/drm/virtio/virtgpu_drv.c | 10 +-
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 4 +-
include/drm/drm_aperture.h | 31 +++++
include/drm/drm_fb_helper.h | 51 -------
24 files changed, 242 insertions(+), 108 deletions(-)
create mode 100644 drivers/gpu/drm/drm_aperture.c
create mode 100644 include/drm/drm_aperture.h
--
2.31.1
next reply other threads:[~2021-04-12 9:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-12 9:00 Thomas Zimmermann [this message]
2021-04-12 9:00 ` [PATCH 1/3] drm/aperture: Add infrastructure for aperture ownership Thomas Zimmermann
2021-04-12 9:36 ` Jani Nikula
2021-04-12 10:31 ` Thomas Zimmermann
2021-04-12 10:41 ` Jani Nikula
2021-04-12 10:56 ` Thomas Zimmermann
2021-04-12 9:00 ` [PATCH 2/3] drm/aperture: Convert drivers to aperture interfaces Thomas Zimmermann
2021-04-12 9:00 ` [PATCH 3/3] drm/aperture: Inline fbdev conflict helpers into aperture helpers 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=20210412090021.23054-1-tzimmermann@suse.de \
--to=tzimmermann@suse.de \
--cc=airlied@linux.ie \
--cc=corbet@lwn.net \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-doc@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
/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