mbox series

[0/5] drm/gem: Add drm_gem_object_funcs

Message ID 20181110145647.17580-1-noralf@tronnes.org (mailing list archive)
Headers show
Series drm/gem: Add drm_gem_object_funcs | expand

Message

Noralf Trønnes Nov. 10, 2018, 2:56 p.m. UTC
This patchset adds a GEM object function table and makes use of it in
the CMA helper.

This was originally part of a shmem helper series[1] that didn't make
it. Daniel and Christian showed interest in the vtable part so I have
hooked it up to some refactoring in tinydrm in order to have a user. The
tinydrm refactoring is part of a long term plan to get rid of
tinydrm.ko.

Noralf.

[1] https://patchwork.freedesktop.org/series/27184/

Noralf Trønnes (5):
  drm/driver: Add defaults for .gem_prime_export/import callbacks
  drm/prime: Add drm_gem_prime_mmap()
  drm/gem: Add drm_gem_object_funcs
  drm/cma-helper: Add DRM_GEM_CMA_VMAP_DRIVER_OPS
  drm/tinydrm: Use DRM_GEM_CMA_VMAP_DRIVER_OPS

 Documentation/gpu/todo.rst                     |  13 +++
 drivers/gpu/drm/drm_client.c                   |  12 +--
 drivers/gpu/drm/drm_gem.c                      | 109 ++++++++++++++++++--
 drivers/gpu/drm/drm_gem_cma_helper.c           |  86 ++++++++++++++++
 drivers/gpu/drm/drm_prime.c                    |  79 +++++++++++----
 drivers/gpu/drm/tinydrm/core/tinydrm-core.c    |  71 --------------
 drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c |   6 ++
 drivers/gpu/drm/tinydrm/hx8357d.c              |   4 +-
 drivers/gpu/drm/tinydrm/ili9225.c              |   5 +-
 drivers/gpu/drm/tinydrm/ili9341.c              |   4 +-
 drivers/gpu/drm/tinydrm/mi0283qt.c             |   6 +-
 drivers/gpu/drm/tinydrm/mipi-dbi.c             |  10 +-
 drivers/gpu/drm/tinydrm/repaper.c              |   4 +-
 drivers/gpu/drm/tinydrm/st7586.c               |   5 +-
 drivers/gpu/drm/tinydrm/st7735r.c              |   4 +-
 include/drm/drm_drv.h                          |   4 +
 include/drm/drm_gem.h                          | 131 +++++++++++++++++++++++++
 include/drm/drm_gem_cma_helper.h               |  24 +++++
 include/drm/drm_prime.h                        |   1 +
 include/drm/tinydrm/tinydrm.h                  |  35 ++-----
 20 files changed, 462 insertions(+), 151 deletions(-)

Comments

Christian König Nov. 12, 2018, 10:07 a.m. UTC | #1
Am 10.11.18 um 15:56 schrieb Noralf Trønnes:
> This patchset adds a GEM object function table and makes use of it in
> the CMA helper.
>
> This was originally part of a shmem helper series[1] that didn't make
> it. Daniel and Christian showed interest in the vtable part so I have
> hooked it up to some refactoring in tinydrm in order to have a user. The
> tinydrm refactoring is part of a long term plan to get rid of
> tinydrm.ko.
>
> Noralf.
>
> [1] https://patchwork.freedesktop.org/series/27184/
>
> Noralf Trønnes (5):
>    drm/driver: Add defaults for .gem_prime_export/import callbacks
>    drm/prime: Add drm_gem_prime_mmap()
>    drm/gem: Add drm_gem_object_funcs
>    drm/cma-helper: Add DRM_GEM_CMA_VMAP_DRIVER_OPS
>    drm/tinydrm: Use DRM_GEM_CMA_VMAP_DRIVER_OPS

Acked-by: Christian König <christian.koenig@amd.com> for the series.

Regards,
Christian.

>
>   Documentation/gpu/todo.rst                     |  13 +++
>   drivers/gpu/drm/drm_client.c                   |  12 +--
>   drivers/gpu/drm/drm_gem.c                      | 109 ++++++++++++++++++--
>   drivers/gpu/drm/drm_gem_cma_helper.c           |  86 ++++++++++++++++
>   drivers/gpu/drm/drm_prime.c                    |  79 +++++++++++----
>   drivers/gpu/drm/tinydrm/core/tinydrm-core.c    |  71 --------------
>   drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c |   6 ++
>   drivers/gpu/drm/tinydrm/hx8357d.c              |   4 +-
>   drivers/gpu/drm/tinydrm/ili9225.c              |   5 +-
>   drivers/gpu/drm/tinydrm/ili9341.c              |   4 +-
>   drivers/gpu/drm/tinydrm/mi0283qt.c             |   6 +-
>   drivers/gpu/drm/tinydrm/mipi-dbi.c             |  10 +-
>   drivers/gpu/drm/tinydrm/repaper.c              |   4 +-
>   drivers/gpu/drm/tinydrm/st7586.c               |   5 +-
>   drivers/gpu/drm/tinydrm/st7735r.c              |   4 +-
>   include/drm/drm_drv.h                          |   4 +
>   include/drm/drm_gem.h                          | 131 +++++++++++++++++++++++++
>   include/drm/drm_gem_cma_helper.h               |  24 +++++
>   include/drm/drm_prime.h                        |   1 +
>   include/drm/tinydrm/tinydrm.h                  |  35 ++-----
>   20 files changed, 462 insertions(+), 151 deletions(-)
>
Noralf Trønnes Nov. 20, 2018, 2:15 p.m. UTC | #2
Den 10.11.2018 15.56, skrev Noralf Trønnes:
> This patchset adds a GEM object function table and makes use of it in
> the CMA helper.
>
> This was originally part of a shmem helper series[1] that didn't make
> it. Daniel and Christian showed interest in the vtable part so I have
> hooked it up to some refactoring in tinydrm in order to have a user. The
> tinydrm refactoring is part of a long term plan to get rid of
> tinydrm.ko.
>
> Noralf.
>
> [1] https://patchwork.freedesktop.org/series/27184/
>
> Noralf Trønnes (5):
>    drm/driver: Add defaults for .gem_prime_export/import callbacks
>    drm/prime: Add drm_gem_prime_mmap()
>    drm/gem: Add drm_gem_object_funcs
>    drm/cma-helper: Add DRM_GEM_CMA_VMAP_DRIVER_OPS
>    drm/tinydrm: Use DRM_GEM_CMA_VMAP_DRIVER_OPS


Applied to drm-misc-next. Thanks for ack and review.

Noralf.

>   Documentation/gpu/todo.rst                     |  13 +++
>   drivers/gpu/drm/drm_client.c                   |  12 +--
>   drivers/gpu/drm/drm_gem.c                      | 109 ++++++++++++++++++--
>   drivers/gpu/drm/drm_gem_cma_helper.c           |  86 ++++++++++++++++
>   drivers/gpu/drm/drm_prime.c                    |  79 +++++++++++----
>   drivers/gpu/drm/tinydrm/core/tinydrm-core.c    |  71 --------------
>   drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c |   6 ++
>   drivers/gpu/drm/tinydrm/hx8357d.c              |   4 +-
>   drivers/gpu/drm/tinydrm/ili9225.c              |   5 +-
>   drivers/gpu/drm/tinydrm/ili9341.c              |   4 +-
>   drivers/gpu/drm/tinydrm/mi0283qt.c             |   6 +-
>   drivers/gpu/drm/tinydrm/mipi-dbi.c             |  10 +-
>   drivers/gpu/drm/tinydrm/repaper.c              |   4 +-
>   drivers/gpu/drm/tinydrm/st7586.c               |   5 +-
>   drivers/gpu/drm/tinydrm/st7735r.c              |   4 +-
>   include/drm/drm_drv.h                          |   4 +
>   include/drm/drm_gem.h                          | 131 +++++++++++++++++++++++++
>   include/drm/drm_gem_cma_helper.h               |  24 +++++
>   include/drm/drm_prime.h                        |   1 +
>   include/drm/tinydrm/tinydrm.h                  |  35 ++-----
>   20 files changed, 462 insertions(+), 151 deletions(-)
>