Add fbdev helpers for framebuffers in DMA-able memory and update fbdev emulation in the respective DRM drivers. DMA memory used to handled as system memory. Improve this and prepare for possible future changes. Patch 1 adds initializer macros for struct fb_ops and a Kconfig token for framebuffers in DMA memory. Patches 2 to 4 update fbdev-dma and tegra. No functional changes are expected as both used system memory before. Patches 5 and 6 update exynos to use DMA helpers. Exynos incorrectly used fbdev's I/O-memory helpers. Fix this. Patches 7 to 9 update omapdrm to use DMA helpers. Patch 7 first reworks the driver's mmap to current best practices. This also makes it suitable for use with fbdev, which patches 8 and 9 implement. Patch 10 removes some fbdev macros for system memory that are now unused. The patchset would ideally go through drm-misc-next. Future patches can build upon it and update fbdev drivers in similar ways. Thomas Zimmermann (10): fbdev: Add fb_ops init macros for framebuffers in DMA-able memory drm/fbdev-dma: Use fbdev DMA helpers drm/tegra: Use fbdev DMA helpers drm/tegra: Set fbdev flags drm/exynos: Use fbdev DMA helpers drm/exynos: Set fbdev flags drm/omapdrm: Set VM flags in GEM-object mmap function drm/omapdrm: Use GEM mmap for fbdev emulation drm/omapdrm: Set fbdev flags fbdev: Remove FB_DEFAULT_SYS_OPS drivers/gpu/drm/Kconfig | 2 +- drivers/gpu/drm/drm_fbdev_dma.c | 4 ++-- drivers/gpu/drm/exynos/Kconfig | 2 +- drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 6 ++++-- drivers/gpu/drm/omapdrm/Kconfig | 2 +- drivers/gpu/drm/omapdrm/omap_drv.c | 12 +----------- drivers/gpu/drm/omapdrm/omap_fbdev.c | 17 ++++++++++++++-- drivers/gpu/drm/omapdrm/omap_gem.c | 24 ++++++----------------- drivers/gpu/drm/omapdrm/omap_gem.h | 3 --- drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c | 7 +------ drivers/gpu/drm/tegra/Kconfig | 2 +- drivers/gpu/drm/tegra/fbdev.c | 7 +++++-- drivers/video/fbdev/Kconfig | 8 ++++++++ include/linux/fb.h | 17 ++++++++++------ 14 files changed, 57 insertions(+), 56 deletions(-) -- 2.41.0