dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] drm: add mmap() to drm_gem_object_funcs
@ 2019-06-20  6:15 Gerd Hoffmann
  2019-06-20  6:15 ` [PATCH 1/3] " Gerd Hoffmann
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gerd Hoffmann @ 2019-06-20  6:15 UTC (permalink / raw)
  To: dri-devel; +Cc: Gerd Hoffmann

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(-)

-- 
2.18.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-06-20  6:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-20  6:15 [PATCH 0/3] drm: add mmap() to drm_gem_object_funcs Gerd Hoffmann
2019-06-20  6:15 ` [PATCH 1/3] " Gerd Hoffmann
2019-06-20  6:15 ` [PATCH 2/3] drm: switch shmem helper to drm_gem_object_funcs->mmap Gerd Hoffmann
2019-06-20  6:15 ` [PATCH 3/3] drm: drop DEFINE_DRM_GEM_SHMEM_FOPS Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).