Skip to content

drm/{exynos, xen}: Implement gem_prime_mmap with drm_gem_prime_mmap()

Thomas Zimmermann dri-devel linux-arm-kernel linux-samsung-soc xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/23 patches 8 repliesIn review
  2. v1 posting 1/21 patch 0 repliesSuperseded

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/exynox: Implement mmap as GEM object functiondrivers/gpu/drm/exynos/exynos_drm_drv.c drivers/gpu/drm/exynos/exynos_drm_fbdev.c drivers/gpu/drm/exynos/exynos_drm_gem.c +1 more+13 -684 replies
2/3drm/xen: Implement mmap as GEM object functiondrivers/gpu/drm/xen/xen_drm_front.c drivers/gpu/drm/xen/xen_drm_front_gem.c drivers/gpu/drm/xen/xen_drm_front_gem.h+44 -872 replies
3/3drm: Update documentation and TODO of gem_prime_mmap hookDocumentation/gpu/todo.rst include/drm/drm_drv.h+7 -152 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchOleksandr AndrushchenkoDaniel Vetter
1/3A-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RESEND PATCH 0/3] drm/{exynos, xen}: Implement gem_prime_mmap with drm_gem_prime_mmap()

(Resending the patchset from [1]. Most drivers have already been updated and only two drivers are left.)

Replace all remaining implementations of struct drm_driver.gem_prime_mmap with use drm_gem_prime_mmap(). For each affected driver, put the mmap code into struct drm_gem_object_funcs.mmap. With the latter change in place, create struct file_operations via DEFINE_DRM_GEM_FOPS().

As next steps, drivers can be converted to use drm_gem_prime_mmap() and drm_gem_mmap() (e.g., Tegra). The default mmap code in drm_gem_prime_mmap() can be pushed into affected drivers or a helper function. The gem_prime_mmap hook can probably be removed at some point.

[1] https://lore.kernel.org/dri-devel/[email protected]/

Thomas Zimmermann (3):
drm/exynox: Implement mmap as GEM object function drm/xen: Implement mmap as GEM object function
drm: Update documentation and TODO of gem_prime_mmap hook

 Documentation/gpu/todo.rst                |  11 ---
 drivers/gpu/drm/exynos/exynos_drm_drv.c   |  13 +--
 drivers/gpu/drm/exynos/exynos_drm_fbdev.c |  20 +---
 drivers/gpu/drm/exynos/exynos_drm_gem.c   |  43 ++-------
 drivers/gpu/drm/exynos/exynos_drm_gem.h   |   5 -
 drivers/gpu/drm/xen/xen_drm_front.c       |  16 +---
 drivers/gpu/drm/xen/xen_drm_front_gem.c   | 108 +++++++++-------------
 drivers/gpu/drm/xen/xen_drm_front_gem.h   |   7 --
 include/drm/drm_drv.h                     |  11 ++-
 9 files changed, 64 insertions(+), 170 deletions(-)

base-commit: 215295e7b0a3deb2015c6d6b343b319e4f6d9a1d
prerequisite-patch-id: c2b2f08f0eccc9f5df0c0da49fa1d36267deb11d
prerequisite-patch-id: c67e5d886a47b7d0266d81100837557fda34cb24 --
2.33.1