From: Laszlo Ersek <lersek@redhat.com>
To: Alex Williamson <alex.williamson@redhat.com>,
corbet@lwn.net, maarten.lankhorst@linux.intel.com,
mripard@kernel.org, tzimmermann@suse.de, airlied@linux.ie,
daniel@ffwll.ch, deller@gmx.de, gregkh@linuxfoundation.org
Cc: Gerd Hoffmann <kraxel@redhat.com>,
linux-doc@vger.kernel.org, dri-devel@lists.freedesktop.org,
linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org,
kvm@vger.kernel.org
Subject: Re: [PATCH v2 0/2] Improve vfio-pci primary GPU assignment behavior
Date: Mon, 20 Jun 2022 13:43:08 +0200 [thread overview]
Message-ID: <f0bdd9b1-16af-8069-65dd-9e90c8f4a6ac@redhat.com> (raw)
In-Reply-To: <165541020563.1955826.16350888595945658159.stgit@omen>
On 06/16/22 22:38, Alex Williamson wrote:
> When assigning a primary graphics device to VM through vfio-pci device
> assignment, users often prevent binding of the native PCI graphics
> driver to avoid device initialization conflicts, however firmware
> console drivers may still be attached to the device which can often be
> cumbersome to manually unbind or exclude via cmdline options.
>
> This series proposes to move the DRM aperture helpers out to
> drivers/video/ to make it more accessible to drivers like vfio-pci,
> which have neither dependencies on DRM code nor a struct drm_driver
> to present to existing interfaces. vfio-pci can then trivially call
> into the aperture helpers to remove conflicting drivers, rather than
> open coding it ourselves as was proposed with a new symbol export in
> v1 of this series[1].
>
> Thanks to Thomas for splitting out the aperture code with new
> documentation.
>
> Thomas had proposed this going through the vfio tree with appropriate
> stakeholder acks, that's fine with me, but I'm also open to it going
> through the DRM tree given that the vfio-pci-core change is even more
> trivial now and the bulk of the changes are DRM/video paths. Thanks,
>
> Alex
>
> [1]https://lore.kernel.org/all/165453797543.3592816.6381793341352595461.stgit@omen/
>
> ---
>
> Alex Williamson (1):
> vfio/pci: Remove console drivers
>
> Thomas Zimmermann (1):
> drm: Implement DRM aperture helpers under video/
>
>
> Documentation/driver-api/aperture.rst | 13 +
> Documentation/driver-api/index.rst | 1 +
> drivers/gpu/drm/drm_aperture.c | 174 +------------
> drivers/gpu/drm/tiny/Kconfig | 1 +
> drivers/vfio/pci/vfio_pci_core.c | 5 +
> drivers/video/Kconfig | 6 +
> drivers/video/Makefile | 2 +
> drivers/video/aperture.c | 340 ++++++++++++++++++++++++++
> drivers/video/console/Kconfig | 1 +
> drivers/video/fbdev/Kconfig | 7 +-
> include/linux/aperture.h | 56 +++++
> 11 files changed, 440 insertions(+), 166 deletions(-)
> create mode 100644 Documentation/driver-api/aperture.rst
> create mode 100644 drivers/video/aperture.c
> create mode 100644 include/linux/aperture.h
>
series
Tested-by: Laszlo Ersek <lersek@redhat.com>
(on top of Fedora's 5.18.5-100.fc35.x86_64)
Thanks,
Laszlo
prev parent reply other threads:[~2022-06-20 11:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-16 20:38 [PATCH v2 0/2] Improve vfio-pci primary GPU assignment behavior Alex Williamson
2022-06-16 20:38 ` [PATCH v2 1/2] drm: Implement DRM aperture helpers under video/ Alex Williamson
2022-06-21 0:14 ` Javier Martinez Canillas
2022-06-21 11:29 ` Thomas Zimmermann
2022-06-21 12:25 ` Javier Martinez Canillas
2022-06-16 20:38 ` [PATCH v2 2/2] vfio/pci: Remove console drivers Alex Williamson
2022-06-21 0:15 ` Javier Martinez Canillas
2022-06-20 11:43 ` Laszlo Ersek [this message]
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=f0bdd9b1-16af-8069-65dd-9e90c8f4a6ac@redhat.com \
--to=lersek@redhat.com \
--cc=airlied@linux.ie \
--cc=alex.williamson@redhat.com \
--cc=corbet@lwn.net \
--cc=daniel@ffwll.ch \
--cc=deller@gmx.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=gregkh@linuxfoundation.org \
--cc=kraxel@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=tzimmermann@suse.de \
/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).