git: feat: drm: split probe/attach lifecycle and fix radeon VBIOS ROM BAR
Matthew Dillon
dillon at crater.dragonflybsd.org
Fri May 8 10:23:08 PDT 2026
commit ca9debd387e9293dd781caa87dfc7ed6855019e5
Author: Abdelkader Boudih <dragonflybsd at seuros.com>
Date: Fri May 8 15:24:13 2026 +0000
feat: drm: split probe/attach lifecycle and fix radeon VBIOS ROM BAR
Restructure i915/radeon/amdgpu to split PCI probe from drm_attach so
the pdev lifecycle is valid for the entire driver lifetime.
Add ROM BAR fallback in radeon_bios when vga_pci_alloc_resource fails,
fixing VBIOS read on Apple EFI machines where the legacy ROM resource
is not mapped.
Summary of changes:
sys/dev/drm/amd/amdgpu/amdgpu_drv.c | 88 +++++++++++++++++++++++++++----------
sys/dev/drm/drm_dragonfly.c | 22 ++++++++++
sys/dev/drm/i915/i915_pci.c | 72 +++++++++++++++++++++---------
sys/dev/drm/linux_irq.c | 10 ++++-
sys/dev/drm/radeon/radeon_bios.c | 52 +++++++++++++++++-----
sys/dev/drm/radeon/radeon_drv.c | 82 ++++++++++++++++++++++++++--------
sys/dev/drm/radeon/radeon_kms.c | 2 -
7 files changed, 251 insertions(+), 77 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ca9debd387e9293dd781caa87dfc7ed6855019e5
--
DragonFly BSD source repository
More information about the Commits
mailing list