]> git.baikalelectronics.ru Git - kernel.git/commit
drm/shmem-helpers: Simplify dma-buf importing
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 29 May 2020 14:05:42 +0000 (16:05 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 8 Jun 2020 15:03:41 +0000 (17:03 +0200)
commit42e85ccd66ff437d074ea9a25771e713e1071a4d
treef3b7956e3f349c34f25fddc98fa39cd88a9a786f
parent1a208b5aaa7dcd09a4daf19298556c29d911f2f1
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 <boris.brezillon@collabora.com>
Tested-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200529140542.2103713-1-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_gem_shmem_helper.c