]> Pileus Git - ~andy/linux/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)
commitb9d474500546160dd6af35f60cd8bc20edd13807
tree47684d34316269a4955dfdad7b9972f3aac6ae9d
parent0b2443ed4e07d7973e4554a2cc166bc35447b59e
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]