All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] drm/lima: simplify driver by using more drm helpers
@ 2019-10-10 14:01 Qiang Yu
  2019-10-10 14:01 ` [PATCH v4 1/3] drm/lima: use drm_gem_shmem_helpers Qiang Yu
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Qiang Yu @ 2019-10-10 14:01 UTC (permalink / raw)
  To: dri-devel; +Cc: lima, David Airlie, Qiang Yu, Sean Paul

By using shared drm helpers:
1. drm_gem_(un)lock_reservations
2. drm_gem_shmem_helpers
we can simplify lima driver a lot and benifit from updates to
these functions.

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.

v3:
improve commit comment.

v4:
Drop drm_gem_objects_lookup refine patches.

Qiang Yu (3):
  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/lima/Kconfig          |   1 +
 drivers/gpu/drm/lima/Makefile         |   4 +-
 drivers/gpu/drm/lima/lima_device.c    |   2 +-
 drivers/gpu/drm/lima/lima_drv.c       |  22 +--
 drivers/gpu/drm/lima/lima_gem.c       | 195 ++++++++++----------------
 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 ++++++------
 13 files changed, 148 insertions(+), 415 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

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-10-17 15:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-10 14:01 [PATCH v4 0/3] drm/lima: simplify driver by using more drm helpers Qiang Yu
2019-10-10 14:01 ` [PATCH v4 1/3] drm/lima: use drm_gem_shmem_helpers Qiang Yu
2019-10-10 14:01 ` [PATCH v4 2/3] drm/lima: use drm_gem_(un)lock_reservations Qiang Yu
2019-10-10 14:01 ` [PATCH v4 3/3] drm/lima: add __GFP_NOWARN flag to all dma_alloc_wc Qiang Yu
2019-10-14  4:21 ` [Lima] [PATCH v4 0/3] drm/lima: simplify driver by using more drm helpers Vasily Khoruzhick
2019-10-17 15:51   ` Qiang Yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.