mbox series

[0/7] drm: Provide framebuffer dma-buf helpers

Message ID 20210716140801.1215-1-tzimmermann@suse.de (mailing list archive)
Headers show
Series drm: Provide framebuffer dma-buf helpers | expand

Message

Thomas Zimmermann July 16, 2021, 2:07 p.m. UTC
Provide helpers that wrap dma_buf_{begin,end}_cpu_access() for all
GEM BOs attached to a framebuffer. Convert drivers and remove ugly
boilerplate code.

Thomas Zimmermann (7):
  drm/gem: Provide drm_gem_fb_{begin,end}_cpu_access() helpers
  drm/udl: Use framebuffer dma-buf helpers
  drm/mipi-dbi: Use framebuffer dma-buf helpers
  drm/gud: Use framebuffer dma-buf helpers
  drm/gm12u320: Use framebuffer dma-buf helpers
  drm/repaper: Use framebuffer dma-buf helpers
  drm/st7586: Use framebuffer dma-buf helpers

 drivers/gpu/drm/drm_gem_framebuffer_helper.c | 89 ++++++++++++++++++++
 drivers/gpu/drm/drm_mipi_dbi.c               | 20 ++---
 drivers/gpu/drm/gud/gud_pipe.c               | 13 ++-
 drivers/gpu/drm/tiny/gm12u320.c              | 19 ++---
 drivers/gpu/drm/tiny/repaper.c               | 18 +---
 drivers/gpu/drm/tiny/st7586.c                | 18 ++--
 drivers/gpu/drm/udl/udl_modeset.c            | 29 ++-----
 include/drm/drm_gem_framebuffer_helper.h     |  6 ++
 8 files changed, 130 insertions(+), 82 deletions(-)

--
2.32.0

Comments

Noralf Trønnes July 22, 2021, 11:35 a.m. UTC | #1
Den 16.07.2021 16.07, skrev Thomas Zimmermann:
> Provide helpers that wrap dma_buf_{begin,end}_cpu_access() for all
> GEM BOs attached to a framebuffer. Convert drivers and remove ugly
> boilerplate code.
> 

Nice, for the series:

Reviewed-by: Noralf Trønnes <noralf@tronnes.org>


> Thomas Zimmermann (7):
>   drm/gem: Provide drm_gem_fb_{begin,end}_cpu_access() helpers
>   drm/udl: Use framebuffer dma-buf helpers
>   drm/mipi-dbi: Use framebuffer dma-buf helpers
>   drm/gud: Use framebuffer dma-buf helpers
>   drm/gm12u320: Use framebuffer dma-buf helpers
>   drm/repaper: Use framebuffer dma-buf helpers
>   drm/st7586: Use framebuffer dma-buf helpers
> 
>  drivers/gpu/drm/drm_gem_framebuffer_helper.c | 89 ++++++++++++++++++++
>  drivers/gpu/drm/drm_mipi_dbi.c               | 20 ++---
>  drivers/gpu/drm/gud/gud_pipe.c               | 13 ++-
>  drivers/gpu/drm/tiny/gm12u320.c              | 19 ++---
>  drivers/gpu/drm/tiny/repaper.c               | 18 +---
>  drivers/gpu/drm/tiny/st7586.c                | 18 ++--
>  drivers/gpu/drm/udl/udl_modeset.c            | 29 ++-----
>  include/drm/drm_gem_framebuffer_helper.h     |  6 ++
>  8 files changed, 130 insertions(+), 82 deletions(-)
> 
> --
> 2.32.0
>