This patchset adds a GEM object function table and makes use of it in the CMA helper. This was originally part of a shmem helper series[1] that didn't make it. Daniel and Christian showed interest in the vtable part so I have hooked it up to some refactoring in tinydrm in order to have a user. The tinydrm refactoring is part of a long term plan to get rid of tinydrm.ko. Noralf. [1] https://patchwork.freedesktop.org/series/27184/ Noralf Trønnes (5): drm/driver: Add defaults for .gem_prime_export/import callbacks drm/prime: Add drm_gem_prime_mmap() drm/gem: Add drm_gem_object_funcs drm/cma-helper: Add DRM_GEM_CMA_VMAP_DRIVER_OPS drm/tinydrm: Use DRM_GEM_CMA_VMAP_DRIVER_OPS Documentation/gpu/todo.rst | 13 +++ drivers/gpu/drm/drm_client.c | 12 +-- drivers/gpu/drm/drm_gem.c | 109 ++++++++++++++++++-- drivers/gpu/drm/drm_gem_cma_helper.c | 86 ++++++++++++++++ drivers/gpu/drm/drm_prime.c | 79 +++++++++++---- drivers/gpu/drm/tinydrm/core/tinydrm-core.c | 71 -------------- drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 6 ++ drivers/gpu/drm/tinydrm/hx8357d.c | 4 +- drivers/gpu/drm/tinydrm/ili9225.c | 5 +- drivers/gpu/drm/tinydrm/ili9341.c | 4 +- drivers/gpu/drm/tinydrm/mi0283qt.c | 6 +- drivers/gpu/drm/tinydrm/mipi-dbi.c | 10 +- drivers/gpu/drm/tinydrm/repaper.c | 4 +- drivers/gpu/drm/tinydrm/st7586.c | 5 +- drivers/gpu/drm/tinydrm/st7735r.c | 4 +- include/drm/drm_drv.h | 4 + include/drm/drm_gem.h | 131 +++++++++++++++++++++++++ include/drm/drm_gem_cma_helper.h | 24 +++++ include/drm/drm_prime.h | 1 + include/drm/tinydrm/tinydrm.h | 35 ++----- 20 files changed, 462 insertions(+), 151 deletions(-) -- 2.15.1 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel