]> Git Repo - linux.git/commit
drm/shmem-helpers: Simplify dma-buf importing
authorDaniel Vetter <[email protected]>
Fri, 29 May 2020 14:05:42 +0000 (16:05 +0200)
committerDaniel Vetter <[email protected]>
Mon, 8 Jun 2020 15:03:41 +0000 (17:03 +0200)
commit7d2cd72a9aa3df3604cafd169a2d4a525afb68ca
treef3b7956e3f349c34f25fddc98fa39cd88a9a786f
parent5264083573184aba8a0e760f6ebb902326e40162
drm/shmem-helpers: Simplify dma-buf importing

- Ditch the ->pages array
- Make it a private gem bo, which means no shmem object, which means
  fireworks if anyone calls drm_gem_object_get_pages. But we've just
  made sure that's all covered.

v2: Rebase

v3: I forgot to remove the page_count mangling from the free path too.
Noticed by Boris while testing.

Cc: Boris Brezillon <[email protected]>
Tested-by: Boris Brezillon <[email protected]>
Acked-by: Thomas Zimmermann <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Noralf Trønnes <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/drm_gem_shmem_helper.c
This page took 0.048349 seconds and 4 git commands to generate.