]> git.baikalelectronics.ru Git - kernel.git/commit
drm/aperture: Add infrastructure for aperture ownership
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 12 Apr 2021 13:10:41 +0000 (15:10 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 14 Apr 2021 07:00:04 +0000 (09:00 +0200)
commit6164c651f08b0cb973170659c5e71e5236d50488
treeef39697149594663b0bd00e61b8b9732b4817956
parentd2ab0f7b22d72936c306b2965d9147aa14c70858
drm/aperture: Add infrastructure for aperture ownership

Platform devices might operate on firmware framebuffers, such as VESA
or EFI. Before a native driver for the graphics hardware can take over
the device, it has to remove any platform driver that operates on the
firmware framebuffer. Aperture helpers provide the infrastructure for
native drivers to remove the generic ones.

For now, this only concerns generic fbdev drivers. Code for removing
these is provided by drm_fb_helper_remove_conflicting_framebuffers() et
al. Simply wrap these functions for now. At a later point, code can be
added for generic DRM drivers to acquire firmware framebuffers.

v2:
* fix docs for drm_aperture_remove_framebuffers()

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210412131043.5787-2-tzimmermann@suse.de
Documentation/gpu/drm-internals.rst
drivers/gpu/drm/Makefile
drivers/gpu/drm/drm_aperture.c [new file with mode: 0644]
include/drm/drm_aperture.h [new file with mode: 0644]