]> git.baikalelectronics.ru Git - kernel.git/commit
DRM: Add DRM GEM CMA helper
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 27 Jun 2012 13:30:18 +0000 (15:30 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 18 Sep 2012 10:28:21 +0000 (12:28 +0200)
commit6dd7a82d7baad457a1e3e0d5537d293a65f8796f
tree47684d34316269a4955dfdad7b9972f3aac6ae9d
parent3c64cb92967728aaac1873a5b0bfb051a940c711
DRM: Add DRM GEM CMA helper

Many embedded drm devices do not have a IOMMU and no dedicated
memory for graphics. These devices use CMA (Contiguous Memory
Allocator) backed graphics memory. This patch provides helper
functions to be able to share the code. The code technically does
not depend on CMA as the backend allocator, the name has been chosen
because CMA makes for a nice, short but still descriptive function
prefix.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Lars-Peter Clausen <lars@metafoo.de>
[Make DRM_GEM_CMA_HELPER a boolean Kconfig option]
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/Kconfig
drivers/gpu/drm/Makefile
drivers/gpu/drm/drm_gem_cma_helper.c [new file with mode: 0644]
include/drm/drm_gem_cma_helper.h [new file with mode: 0644]