Skip to content

drm/cma: use prime helpers instead GEM CMA specific dma_buf functionality

Joonyoung Shim dri-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest0 of 3 patches 6 repliesIn review
  2. v10 of 3 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- rebased from drm-next branch of git://people.freedesktop.org/~airlied/linux
- fix to check whether gem_prime_mmap field is NULL
from "drm: add mmap function to prime helpers" commit

Patches in v2 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

PatchLaurent Pinchart
SeriesA-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] drm/cma: use prime helpers instead GEM CMA specific dma_buf functionality

Hello,

This is the second version patchset.

GEM CMA supports dma_buf but it needs GEM CMA specific functionality for dma_buf. We can use prime helpers for dma_buf by commit 89177644a7b6306e6084a89eab7e290f4bfef397 "drm: add prime helpers", so this patchset is to replace from using GEM CMA specific functions to using prime helpers.

To Laurent,

It is merged a patch to cache mapping from DRM Prime, can this patchset get your ack?

Changes from v1:
- rebased from drm-next branch of git://people.freedesktop.org/~airlied/linux
- fix to check whether gem_prime_mmap field is NULL
from "drm: add mmap function to prime helpers" commit

Joonyoung Shim (3):
drm: add mmap function to prime helpers
drm/cma: add low-level hook functions to use prime helpers drm/cma: remove GEM CMA specific dma_buf functionality

 drivers/gpu/drm/drm_gem_cma_helper.c | 293 
+++++------------------------------
 drivers/gpu/drm/drm_prime.c          |   8 +-
 include/drm/drmP.h                   |   2 +
 include/drm/drm_gem_cma_helper.h     |  13 +-
 4 files changed, 60 insertions(+), 256 deletions(-)