From: Thierry Reding <thierry.reding@gmail.com>
To: dri-devel@lists.freedesktop.org
Cc: "Daniel Vetter" <daniel.vetter@intel.com>,
"Christian König" <christian.koenig@amd.com>
Subject: [PATCH v2 0/7] drm: Introduce consistent reference counting APIs
Date: Fri, 10 Feb 2017 18:14:07 +0100 [thread overview]
Message-ID: <20170210171414.21768-1-thierry.reding@gmail.com> (raw)
From: Thierry Reding <treding@nvidia.com>
This series introduces DRM reference counting APIs that are consistent
with other reference counting APIs in the kernel. They are also much
shorter. Compatibility aliases are added to keep existing code working
and will stay in place until all users of the old APIs are gone.
All occurrences of the old APIs in the core are already replaced by
this series, and a semantic patch is provided that allows drivers to
be converted automatically. I plan on generating patches against the
drivers once the new functions have been merged and send them out to
their respective maintainers.
Oh, and this fixes one of the items in our recently added TODO list.
Changes in v2:
- add patch to rename drm_connector_list_iter_{get,put}() because they
aren't in fact reference counting
- add Reviewed-by from Sean, Acked-by from Christian
- left in the semantic patch for convenience, it can be removed along
with the compatibility functions
Thanks,
Thierry
Thierry Reding (7):
drm: Rename drm_mode_object_get()
drm: Introduce drm_mode_object_{get,put}()
drm: Introduce drm_connector_{get,put}()
drm: Introduce drm_framebuffer_{get,put}()
drm: Introduce drm_gem_object_{get,put}()
drm: Introduce drm_property_blob_{get,put}()
drm: Rename connector list iterator API
Documentation/gpu/drm-mm.rst | 14 +++--
drivers/gpu/drm/drm_atomic.c | 54 +++++++++----------
drivers/gpu/drm/drm_atomic_helper.c | 44 +++++++--------
drivers/gpu/drm/drm_connector.c | 40 +++++++-------
drivers/gpu/drm/drm_crtc.c | 12 ++---
drivers/gpu/drm/drm_crtc_helper.c | 42 +++++++--------
drivers/gpu/drm/drm_crtc_internal.h | 12 ++---
drivers/gpu/drm/drm_encoder.c | 8 +--
drivers/gpu/drm/drm_fb_cma_helper.c | 16 +++---
drivers/gpu/drm/drm_fb_helper.c | 16 +++---
drivers/gpu/drm/drm_framebuffer.c | 38 ++++++-------
drivers/gpu/drm/drm_gem.c | 44 +++++++--------
drivers/gpu/drm/drm_gem_cma_helper.c | 10 ++--
drivers/gpu/drm/drm_mode_config.c | 22 ++++----
drivers/gpu/drm/drm_mode_object.c | 44 +++++++--------
drivers/gpu/drm/drm_modes.c | 2 +-
drivers/gpu/drm/drm_plane.c | 14 ++---
drivers/gpu/drm/drm_plane_helper.c | 4 +-
drivers/gpu/drm/drm_prime.c | 10 ++--
drivers/gpu/drm/drm_probe_helper.c | 12 ++---
drivers/gpu/drm/drm_property.c | 52 +++++++++---------
include/drm/drm_connector.h | 51 +++++++++++++-----
include/drm/drm_framebuffer.h | 49 ++++++++++++-----
include/drm/drm_gem.h | 80 +++++++++++++++++++++------
include/drm/drm_mode_object.h | 36 ++++++++++---
include/drm/drm_property.h | 35 ++++++++++--
scripts/coccinelle/api/drm-get-put.cocci | 92 ++++++++++++++++++++++++++++++++
27 files changed, 542 insertions(+), 311 deletions(-)
create mode 100644 scripts/coccinelle/api/drm-get-put.cocci
--
2.11.1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2017-02-10 17:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-10 17:14 Thierry Reding [this message]
2017-02-10 17:14 ` [PATCH v2 1/7] drm: Rename drm_mode_object_get() Thierry Reding
2017-02-10 17:14 ` [PATCH v2 2/7] drm: Introduce drm_mode_object_{get,put}() Thierry Reding
2017-02-10 17:14 ` [PATCH v2 3/7] drm: Introduce drm_connector_{get,put}() Thierry Reding
2017-02-10 17:14 ` [PATCH v2 4/7] drm: Introduce drm_framebuffer_{get,put}() Thierry Reding
2017-02-10 17:14 ` [PATCH v2 5/7] drm: Introduce drm_gem_object_{get,put}() Thierry Reding
2017-02-10 17:14 ` [PATCH v2 6/7] drm: Introduce drm_property_blob_{get,put}() Thierry Reding
2017-02-10 17:14 ` [PATCH v2 7/7] drm: Rename connector list iterator API Thierry Reding
2017-02-10 17:48 ` Thierry Reding
2017-02-14 21:55 ` Daniel Vetter
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=20170210171414.21768-1-thierry.reding@gmail.com \
--to=thierry.reding@gmail.com \
--cc=christian.koenig@amd.com \
--cc=daniel.vetter@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.