]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vram-helper: Managed vram helpers
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 16 Jul 2020 12:53:48 +0000 (14:53 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 20 Jul 2020 07:15:56 +0000 (09:15 +0200)
commit6a446a7c101f6853c55f1a5d40594e7da6c1d107
tree391de1b82c572eef1b8b726c27aaf79dbee007d5
parent33cd58fc5131d92ccd4180810a64e7cc94fbb733
drm/vram-helper: Managed vram helpers

Calling drmm_vram_helper_init() sets up a managed instance of
VRAM MM. Releasing the DRM device also frees the memory manager.

The patch also updates the DRM documentation for VRAM helpers. The
tutorial now describes the new managed interface. The old interfaces
are deprecated and should not be used in new code.

v2:
* rename init function to drmm_vram_helper_init()
* return errno code from init function; caller does not
  need vram_mm anyway
* update documentation and remove docs for deprecated
  un-managed functions

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200716125353.31512-2-tzimmermann@suse.de
drivers/gpu/drm/drm_gem_vram_helper.c
include/drm/drm_gem_vram_helper.h