All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 2/2] vfio/pci: Remove console drivers
@ 2022-12-04  0:12 ` mb
  0 siblings, 0 replies; 25+ messages in thread
From: mb @ 2022-12-04  0:12 UTC (permalink / raw)
  To: alex.williamson
  Cc: airlied, dri-devel, kraxel, kvm, lersek, linux-kernel, tzimmermann

Hi,

I hope it is ok to reply to this old thread. Unfortunately, I found a
problem only now after upgrading to 6.0.

My setup has multiple GPUs (2), and I depend on EFIFB to have a working console.
pre-patch behavior, when I bind the vfio-pci to my secondary GPU both
the passthrough and the EFIFB keep working fine.
post-patch behavior, when I bind the vfio-pci to the secondary GPU,
the EFIFB disappears from the system, binding the console to the
"dummy console".
Whenever you try to access the terminal, you have the screen stuck in
whatever was the last buffer content, which gives the impression of
"freezing," but I can still type.
Everything else works, including the passthrough.

I can only think about a few options:

- Is there a way to have EFIFB show up again? After all it looks like
the kernel has just abandoned it, but the buffer is still there. I
can't find a single message about the secondary card and EFIFB in
dmesg, but there's a message for the primary card and EFIFB.
- Can we have a boolean controlling the behavior of vfio-pci
altogether or at least controlling the behavior of vfio-pci for that
specific ID? I know there's already some option for vfio-pci and VGA
cards, would it be appropriate to attach this behavior to that option?

Thanks,

Carlos Augusto

^ permalink raw reply	[flat|nested] 25+ messages in thread
* [PATCH 0/2] Improve vfio-pci primary GPU assignment behavior
@ 2022-06-06 17:53 Alex Williamson
  2022-06-06 17:53   ` Alex Williamson
  0 siblings, 1 reply; 25+ messages in thread
From: Alex Williamson @ 2022-06-06 17:53 UTC (permalink / raw)
  To: maarten.lankhorst, mripard, tzimmermann, airlied, daniel
  Cc: Laszlo Ersek, Gerd Hoffmann, dri-devel, linux-kernel, kvm

Users attempting to enable vfio PCI device assignment with a GPU will
often block the default PCI driver from the device to avoid conflicts
with the device initialization or release path.  This means that
vfio-pci is sometimes the first PCI driver to bind to the device.  In 
the case of assigning the primary graphics device, low-level console
drivers may still generate resource conflicts.  Users often employ
kernel command line arguments to disable conflicting drivers or
perform unbinding in userspace to avoid this, but the actual solution
is often distribution/kernel config specific based on the included
drivers.

We can instead allow vfio-pci to copy the behavior of
drm_aperture_remove_conflicting_pci_framebuffers() in order to remove
these low-level drivers with conflicting resources.  vfio-pci is not
however a DRM driver, nor does vfio-pci depend on DRM config options,
thus we split out and export the necessary DRM apterture support and
mirror the framebuffer and VGA support.

I'd be happy to pull this series in through the vfio branch if
approved by the DRM maintainers.  Thanks,

Alex

---

Alex Williamson (2):
      drm/aperture: Split conflicting platform driver removal
      vfio/pci: Remove console drivers


 drivers/gpu/drm/drm_aperture.c   | 33 +++++++++++++++++++++++---------
 drivers/vfio/pci/vfio_pci_core.c | 17 ++++++++++++++++
 include/drm/drm_aperture.h       |  2 ++
 3 files changed, 43 insertions(+), 9 deletions(-)


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

end of thread, other threads:[~2023-01-02 10:34 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-04  0:12 [PATCH 2/2] vfio/pci: Remove console drivers mb
2022-12-04  0:12 ` mb
2022-12-05  0:51 ` Alex Williamson
2022-12-05  0:51   ` Alex Williamson
2022-12-05  9:00   ` Thomas Zimmermann
2022-12-05  9:32     ` mb
2022-12-05 10:11       ` Thomas Zimmermann
2022-12-05 21:50         ` mb
2023-01-02 10:33           ` Shawn Michaels
  -- strict thread matches above, loose matches on Subject: below --
2022-06-06 17:53 [PATCH 0/2] Improve vfio-pci primary GPU assignment behavior Alex Williamson
2022-06-06 17:53 ` [PATCH 2/2] vfio/pci: Remove console drivers Alex Williamson
2022-06-06 17:53   ` Alex Williamson
2022-06-08 11:11   ` Thomas Zimmermann
2022-06-08 11:11     ` Thomas Zimmermann
2022-06-08 14:04     ` Alex Williamson
2022-06-08 14:04       ` Alex Williamson
2022-06-09  9:13       ` Thomas Zimmermann
2022-06-09  9:13         ` Thomas Zimmermann
2022-06-09 21:41         ` Alex Williamson
2022-06-09 21:41           ` Alex Williamson
2022-06-09 21:44           ` Alex Williamson
2022-06-09 21:44             ` Alex Williamson
2022-06-10  7:03             ` Thomas Zimmermann
2022-06-10 14:30               ` Alex Williamson
2022-06-08 15:37     ` Gerd Hoffmann
2022-06-08 15:37       ` Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.