From: Gerd Hoffmann <kraxel@redhat.com>
To: dri-devel@lists.freedesktop.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: [PATCH 0/3] drm: add mmap() to drm_gem_object_funcs
Date: Thu, 20 Jun 2019 08:15:44 +0200 [thread overview]
Message-ID: <20190620061547.8664-1-kraxel@redhat.com> (raw)
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
next reply other threads:[~2019-06-20 6:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-20 6:15 Gerd Hoffmann [this message]
2019-06-20 6:15 ` [PATCH 1/3] drm: add mmap() to drm_gem_object_funcs 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190620061547.8664-1-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).