On Tue, Sep 29, 2026 at 6:06 AM Alex Williamson <[email protected]> wrote: > > On Tue, 22 Sep 2026 17:18:07 +1000 > Dave Airlie <[email protected]> wrote: > > > From: Dave Airlie <[email protected]> > > > > This changes the vgaarb client API so that the user can pass a > > private data pointer into the register that will get used in > > the decode callback. > > > > This allows a bunch of pdev conversions in the drivers, and lets > > some future vfio cleanups be nicer. > > > > I'd like to merge this via the drm next tree but also fine with > > it going via pci. > > > > Signed-off-by: Dave Airlie <[email protected]> > > Cc: Alex Williamson <[email protected]> > > Cc: Bjorn Helgaas <[email protected]> > > Cc: Rodrigo Vivi <[email protected]> > > Cc: Alex Deucher <[email protected]> > > --- > > v2: fix loongson (spotted by sashiko) > > --- > > drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +++--- > > drivers/gpu/drm/i915/display/intel_vga.c | 7 ++++--- > > drivers/gpu/drm/loongson/lsdc_drv.c | 4 ++-- > > drivers/gpu/drm/nouveau/nouveau_vga.c | 6 +++--- > > drivers/gpu/drm/radeon/radeon_device.c | 7 +++---- > > drivers/pci/vgaarb.c | 13 +++++++++---- > > drivers/vfio/pci/vfio_pci_core.c | 9 +++++---- > > include/linux/vgaarb.h | 8 +++++--- > > 8 files changed, 34 insertions(+), 26 deletions(-) > > > Acked-by: Alex Williamson <[email protected]> > > Preemptively, could this get merged via a topic branch that we could > share in case further drvdata cleanup arrives in vfio-pci this cycle? > > I'm imagining this might also be a good time to push vgaarb > registration out of vfio-pci-core as well. Thanks, >
Thanks Alex and Bjorn, Okay I've cleaned up the last few bits from Bjorn, added lines and created a drm topic branch https://gitlab.freedesktop.org/drm/kernel topic/pci-vgaarb-rework I'll send a PR merge this into drm-next and you can work off it as well if you need to. Dave.
