OSDN Git Service

drm: Add VRAM MM, a simple memory manager for dedicated VRAM
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 8 May 2019 08:26:16 +0000 (10:26 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 15 May 2019 14:17:06 +0000 (16:17 +0200)
commit96352eca5c7c36c3e0eb97a6d68fb170ce643ea5
tree54f5b6e1298985ed0042cc3971ccba2c7413353a
parent1f460b497890d6bf54aba6e41fe24bba2217141a
drm: Add VRAM MM, a simple memory manager for dedicated VRAM

The VRAM MM memory manager is a helper library that manages dedicated video
memory of simple framebuffer devices. It is supported to be used with
struct drm_gem_vram_object, but does not depend on it.

The implementation is based on the respective code from ast, bochs, and
mgag200. These drivers share the exact same implementation except for type
names. The helpers are currently build with TTM. This may change in future
revisions.

v4:
* cleanups from checkpatch.pl
v2:
* renamed to struct drm_vram_mm
* add drm_vram_mm_mmap() helper
* documentation fixes

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: http://patchwork.freedesktop.org/patch/msgid/20190508082630.15116-7-tzimmermann@suse.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Documentation/gpu/drm-mm.rst
drivers/gpu/drm/Makefile
drivers/gpu/drm/drm_vram_mm_helper.c [new file with mode: 0644]
include/drm/drm_vram_mm_helper.h [new file with mode: 0644]