[Lima] [PATCH v2 0/6] drm/lima: simplify driver by using more drm helpers
Qiang Yu
yuq825 at gmail.com
Fri Sep 27 13:46:10 UTC 2019
By using shared drm helpers:
1. drm_gem_objects_lookup
2. drm_gem_(un)lock_reservations
3. drm_gem_shmem_helpers
we can simplify lima driver a lot and benifit from updates to
these functions.
drm_gem_objects_lookup need a refine in order to be used by lima.
Note:
1. changes to panfrost and v3d are just compile tested.
2. patch series is based on drm-misc-next branch
v2:
Add drm_gem_objects_lookup_user and use it for driver which
pass user GEM handles in contious array.
Qiang Yu (6):
drm/gem: refine drm_gem_objects_lookup
drm/v3d: use drm_gem_objects_lookup_user
drm/lima: use drm_gem_objects_lookup
drm/lima: use drm_gem_shmem_helpers
drm/lima: use drm_gem_(un)lock_reservations
drm/lima: add __GFP_NOWARN flag to all dma_alloc_wc
drivers/gpu/drm/drm_gem.c | 57 ++++--
drivers/gpu/drm/lima/Kconfig | 1 +
drivers/gpu/drm/lima/Makefile | 4 +-
drivers/gpu/drm/lima/lima_device.c | 2 +-
drivers/gpu/drm/lima/lima_drv.c | 27 +--
drivers/gpu/drm/lima/lima_gem.c | 254 ++++++++++--------------
drivers/gpu/drm/lima/lima_gem.h | 32 ++-
drivers/gpu/drm/lima/lima_gem_prime.c | 46 -----
drivers/gpu/drm/lima/lima_gem_prime.h | 13 --
drivers/gpu/drm/lima/lima_mmu.c | 1 -
drivers/gpu/drm/lima/lima_object.c | 119 -----------
drivers/gpu/drm/lima/lima_object.h | 35 ----
drivers/gpu/drm/lima/lima_sched.c | 6 +-
drivers/gpu/drm/lima/lima_vm.c | 87 ++++----
drivers/gpu/drm/panfrost/panfrost_drv.c | 6 +-
drivers/gpu/drm/v3d/v3d_gem.c | 49 +----
include/drm/drm_gem.h | 4 +-
17 files changed, 239 insertions(+), 504 deletions(-)
delete mode 100644 drivers/gpu/drm/lima/lima_gem_prime.c
delete mode 100644 drivers/gpu/drm/lima/lima_gem_prime.h
delete mode 100644 drivers/gpu/drm/lima/lima_object.c
delete mode 100644 drivers/gpu/drm/lima/lima_object.h
--
2.17.1
More information about the lima
mailing list