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)
commit40609d4820b21ff0bb0a58e196601a6747fd55b7
tree36d2425a250703e7d984e0eebdae1670e3e74cc8
parent2194a63a818db71065ebe09c8104f5f021ca4e7b
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