Skip to content

drm: add mmap() to drm_gem_object_funcs

Gerd Hoffmann dri-devel lkml virtualization 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm: add mmap() to drm_gem_object_funcsdrivers/gpu/drm/drm_gem.c include/drm/drm_gem.h+13 -00 replies
2/3drm: switch shmem helper to drm_gem_object_funcs->mmapdrivers/gpu/drm/drm_gem_shmem_helper.c drivers/gpu/drm/panfrost/panfrost_gem.c drivers/gpu/drm/v3d/v3d_bo.c +1 more+11 -130 replies
3/3drm: drop DEFINE_DRM_GEM_SHMEM_FOPSdrivers/gpu/drm/cirrus/cirrus.c drivers/gpu/drm/panfrost/panfrost_drv.c drivers/gpu/drm/v3d/v3d_drv.c +1 more+3 -290 replies
3/3drm: drop DEFINE_DRM_GEM_SHMEM_FOPSdrivers/gpu/drm/cirrus/cirrus.c drivers/gpu/drm/panfrost/panfrost_drv.c drivers/gpu/drm/v3d/v3d_drv.c +1 more+3 -290 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] drm: add mmap() to drm_gem_object_funcs

Add a new callback where drivers can handle mmap setup without having to override gem_driver->fops->mmap.

Switch shmem helper over as demo.

cheers,
Gerd

Gerd Hoffmann (3):
drm: add mmap() to drm_gem_object_funcs
drm: switch shmem helper to drm_gem_object_funcs->mmap
drm: drop DEFINE_DRM_GEM_SHMEM_FOPS

 include/drm/drm_gem.h                   |  9 ++++++++
 include/drm/drm_gem_shmem_helper.h      | 28 +------------------------
 drivers/gpu/drm/cirrus/cirrus.c         |  2 +-
 drivers/gpu/drm/drm_gem.c               |  4 ++++
 drivers/gpu/drm/drm_gem_shmem_helper.c  | 18 +++++++---------
 drivers/gpu/drm/panfrost/panfrost_drv.c |  2 +-
 drivers/gpu/drm/panfrost/panfrost_gem.c |  1 +
 drivers/gpu/drm/v3d/v3d_bo.c            |  1 +
 drivers/gpu/drm/v3d/v3d_drv.c           |  2 +-
 9 files changed, 26 insertions(+), 41 deletions(-)
Signature · 6 lines
2.18.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel