[PATCH 0/5] drm/atomic: drm_dynarray and private obj cleanup

ville.syrjala at linux.intel.com ville.syrjala at linux.intel.com
Mon Jul 3 13:43:32 UTC 2017


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

This series refactors some of the atomic krealloc() stuff into a small helper
that avoids everyone having to do the krealloc() dance and memset() themselves.

Another thing we do is rework the private objects state handling to resemble
the normal crtc/plane/connector state handling more closely. Should make it
less cumbersome and error prone to deal with private objects.

Entire series available here:
git://github.com/vsyrjala/linux.git drm_dynarray

Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan at intel.com>

Ville Syrjälä (5):
  drm: Add drm_dynarray
  drm/atomic: Convert state->connectors to drm_dynarray
  drm/atomic: Remove pointless private object NULL state check
  drm/atomic: Convert private_objs to drm_dynarray
  drm/atomic: Make private objs proper objects

 Documentation/gpu/drm-utils.rst       |  15 +++
 Documentation/gpu/index.rst           |   1 +
 drivers/gpu/drm/Makefile              |   2 +-
 drivers/gpu/drm/drm_atomic.c          | 164 ++++++++++++++++++++------------
 drivers/gpu/drm/drm_atomic_helper.c   |  34 +++++--
 drivers/gpu/drm/drm_dp_mst_topology.c |  63 ++++++------
 drivers/gpu/drm/drm_dynarray.c        |  97 +++++++++++++++++++
 include/drm/drm_atomic.h              | 174 +++++++++++++++++++++-------------
 include/drm/drm_atomic_helper.h       |   4 +
 include/drm/drm_dp_mst_helper.h       |  10 ++
 include/drm/drm_dynarray.h            |  54 +++++++++++
 11 files changed, 454 insertions(+), 164 deletions(-)
 create mode 100644 Documentation/gpu/drm-utils.rst
 create mode 100644 drivers/gpu/drm/drm_dynarray.c
 create mode 100644 include/drm/drm_dynarray.h

-- 
2.13.0



More information about the dri-devel mailing list