Skip to content

Commit 3c2ed9c

Browse files
committed
drm: Add TODO item for fbdev driver conversion
The DRM TODO list now contains an entry for converting fbdev drivers over to DRM. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20191017074705.9140-2-tzimmermann@suse.de
1 parent f86cf71 commit 3c2ed9c

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

‎Documentation/gpu/todo.rst‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,3 +462,30 @@ Contact: Sam Ravnborg
462462

463463
Outside DRM
464464
===========
465+
466+
Convert fbdev drivers to DRM
467+
----------------------------
468+
469+
There are plenty of fbdev drivers for older hardware. Some hwardware has
470+
become obsolete, but some still provides good(-enough) framebuffers. The
471+
drivers that are still useful should be converted to DRM and afterwards
472+
removed from fbdev.
473+
474+
Very simple fbdev drivers can best be converted by starting with a new
475+
DRM driver. Simple KMS helpers and SHMEM should be able to handle any
476+
existing hardware. The new driver's call-back functions are filled from
477+
existing fbdev code.
478+
479+
More complex fbdev drivers can be refactored step-by-step into a DRM
480+
driver with the help of the DRM fbconv helpers. [1] These helpers provide
481+
the transition layer between the DRM core infrastructure and the fbdev
482+
driver interface. Create a new DRM driver on top of the fbconv helpers,
483+
copy over the fbdev driver, and hook it up to the DRM code. Examples for
484+
several fbdev drivers are available at [1] and a tutorial of this process
485+
available at [2]. The result is a primitive DRM driver that can run X11
486+
and Weston.
487+
488+
- [1] https://gitlab.freedesktop.org/tzimmermann/linux/tree/fbconv
489+
- [2] https://gitlab.freedesktop.org/tzimmermann/linux/blob/fbconv/drivers/gpu/drm/drm_fbconv_helper.c
490+
491+
Contact: Thomas Zimmermann <tzimmermann@suse.de>

0 commit comments

Comments
 (0)