]> git.baikalelectronics.ru Git - kernel.git/commit
drm/v3d: Use the new shmem helpers to reduce driver boilerplate.
authorEric Anholt <eric@anholt.net>
Thu, 14 Mar 2019 16:34:51 +0000 (09:34 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 14 Mar 2019 19:06:44 +0000 (12:06 -0700)
commitf18631848ad6b3edcf0912c4f9c6540c733bb5f1
tree36d2425a250703e7d984e0eebdae1670e3e74cc8
parent1f4e743ab37ea6bb6abf182a55f739443d95bdb5
drm/v3d: Use the new shmem helpers to reduce driver boilerplate.

The new shmem helpers from Noralf and Rob abstract out a bunch of our
BO creation and mapping code.

v2: Use the new sgt getter, and flag pages as dirty before freeing.
v3: Remove the mismatched put_pages.

Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20190314163451.13431-1-eric@anholt.net
Reviewed-by: Rob Herring <robh@kernel.org> (v2)
drivers/gpu/drm/v3d/Kconfig
drivers/gpu/drm/v3d/v3d_bo.c
drivers/gpu/drm/v3d/v3d_drv.c
drivers/gpu/drm/v3d/v3d_drv.h
drivers/gpu/drm/v3d/v3d_gem.c
drivers/gpu/drm/v3d/v3d_irq.c
drivers/gpu/drm/v3d/v3d_mmu.c