fbdev: Maintain device ownership with aperture helpers
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest11 patches 8 repliesIn review
- v111 patches 21 repliesSuperseded
Changes in v2 from the cover letter
* remove unused options handling from vga16fb (Javier)
* more elaborate commit messages (Javier)
* remove unused internal functions in fbmem.c
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | fbdev: Remove trailing whitespacesdrivers/ drivers/ drivers/ +9 more | +457 | 0 replies | |
| 2/11 | fbdev/vga16fb: Create EGA/VGA devices in sysfb codedrivers/ drivers/ | +31 | 0 replies | |
| 3/11 | fbdev/vga16fb: Auto-generate module init/exit codedrivers/ | +1 | 0 replies | |
| 4/11 | fbdev/core: Remove remove_conflicting_pci_framebuffers()drivers/ drivers/ include/ | +18 | 0 replies | |
| 5/11 | fbdev: Convert drivers to aperture helpersdrivers/ drivers/ drivers/ | +13 | 0 replies | |
| 6/11 | fbdev: Remove conflicting devices on PCI busdrivers/ drivers/ drivers/ +36 more | +206 | 1 reply | |
| 7/11 | video/aperture: Disable and unregister sysfb devices via aperture helpersdrivers/ drivers/ | +14 | 7 replies | |
| 8/11 | video: Provide constants for VGA I/O rangedrivers/ drivers/ include/ | +10 | 0 replies | |
| 9/11 | video/aperture: Remove conflicting VGA devices, if anydrivers/ | +12 | 0 replies | |
| 10/11 | fbdev: Acquire framebuffer apertures for firmware devicesdrivers/ | +33 | 0 replies | |
| 11/11 | fbdev: Remove conflict-handling codedrivers/ drivers/ include/ | +0 | 0 replies |
Reviews trailers per patch
All 11 patches have a Reviewed-by or Acked-by.
| Patch | Javier Martinez Canillas |
|---|---|
| 1/11 | R-b |
| 2/11 | R-b |
| 3/11 | R-b |
| 4/11 | R-b |
| 5/11 | R-b |
| 6/11 | R-b |
| 7/11 | R-b |
| 8/11 | R-b |
| 9/11 | R-b |
| 10/11 | R-b |
| 11/11 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/11] fbdev: Maintain device ownership with aperture helpers
Fbdev firmware drivers acquire ownership of framebuffer I/O ranges and hand them over to native drivers during the boot process. Re-implement this mechanism with aperture helpers and remove the respective fbdev code.
This change allows to perform hand-over from DRM firmware drivers. In a later patchset, device ownership can be moved from DRM and fbdev entirely into aperture helpers.
Patches 1 and 4 are cleanups.
Patches 2 and 3 integrate EGA/VGA support into sysfb, although it's not clear if the x86 architecture code actually still supports VGA graphics mode.
Patches 5 to 10 replace fbdev's ownership management with aperture helpers. This includes removal of conflicting framebuffer drivers, removal of conflicting VGA drivers and registration of fbdev firmware devices. Notably, many PCI-based fbdev drivers failed to remove firmware devices until now; and therefore probably haven't worked correctly for some time.
Patch 11 removes the implementation of fbdev ownership management.
The patchset has been tested by handing over device ownership between firmware and native drivers of DRM and fbdev in various combinations.
v2:
* remove unused options handling from vga16fb (Javier)
* more elaborate commit messages (Javier)
* remove unused internal functions in fbmem.c
Thomas Zimmermann (11):
fbdev: Remove trailing whitespaces
fbdev/vga16fb: Create EGA/VGA devices in sysfb code fbdev/vga16fb: Auto-generate module init/exit code fbdev/core: Remove remove_conflicting_pci_framebuffers()
fbdev: Convert drivers to aperture helpers
fbdev: Remove conflicting devices on PCI bus video/aperture: Disable and unregister sysfb devices via aperture
helpers
video: Provide constants for VGA I/O range video/aperture: Remove conflicting VGA devices, if any
fbdev: Acquire framebuffer apertures for firmware devices
fbdev: Remove conflict-handling code
drivers/firmware/sysfb.c | 4 + drivers/staging/sm750fb/sm750.c | 15 +- drivers/video/aperture.c | 69 ++-- drivers/video/fbdev/arkfb.c | 5 + drivers/video/fbdev/asiliantfb.c | 5 + drivers/video/fbdev/aty/aty128fb.c | 57 ++-- drivers/video/fbdev/aty/atyfb_base.c | 7 +- drivers/video/fbdev/aty/radeon_base.c | 83 +++-- drivers/video/fbdev/carminefb.c | 5 + drivers/video/fbdev/chipsfb.c | 13 +- drivers/video/fbdev/cirrusfb.c | 5 + drivers/video/fbdev/core/fbmem.c | 213 ++----------- drivers/video/fbdev/cyber2000fb.c | 5 + drivers/video/fbdev/geode/gx1fb_core.c | 5 + drivers/video/fbdev/geode/gxfb_core.c | 5 + drivers/video/fbdev/geode/lxfb_core.c | 5 + drivers/video/fbdev/gxt4500.c | 5 + drivers/video/fbdev/hyperv_fb.c | 6 +- drivers/video/fbdev/i740fb.c | 5 + drivers/video/fbdev/i810/i810_main.c | 315 ++++++++++--------- drivers/video/fbdev/imsttfb.c | 36 ++- drivers/video/fbdev/intelfb/intelfbdrv.c | 5 + drivers/video/fbdev/kyro/fbdev.c | 5 + drivers/video/fbdev/matrox/matroxfb_base.c | 5 + drivers/video/fbdev/mb862xx/mb862xxfbdrv.c | 5 + drivers/video/fbdev/neofb.c | 41 +-- drivers/video/fbdev/nvidia/nvidia.c | 7 +- drivers/video/fbdev/pm2fb.c | 5 + drivers/video/fbdev/pm3fb.c | 5 + drivers/video/fbdev/pvr2fb.c | 5 + drivers/video/fbdev/riva/fbdev.c | 67 ++-- drivers/video/fbdev/s3fb.c | 5 + drivers/video/fbdev/savage/savagefb_driver.c | 5 + drivers/video/fbdev/sis/sis_main.c | 5 + drivers/video/fbdev/skeletonfb.c | 210 +++++++------ drivers/video/fbdev/sm712fb.c | 5 + drivers/video/fbdev/sstfb.c | 43 +-- drivers/video/fbdev/sunxvr2500.c | 5 + drivers/video/fbdev/sunxvr500.c | 5 + drivers/video/fbdev/tdfxfb.c | 5 + drivers/video/fbdev/tgafb.c | 17 +- drivers/video/fbdev/tridentfb.c | 5 + drivers/video/fbdev/vermilion/vermilion.c | 7 +- drivers/video/fbdev/vga16fb.c | 191 +++++------ drivers/video/fbdev/via/via-core.c | 5 + drivers/video/fbdev/vt8623fb.c | 5 + include/linux/fb.h | 4 - include/video/vga.h | 20 +- 48 files changed, 776 insertions(+), 784 deletions(-)
base-commit: ebea934e2651857c9b56cc80bf99460ee18a3592
Signature · 1 line
2.36.1