All of lore.kernel.org
 help / color / mirror / Atom feed
From: Qiang Yu <yuq825@gmail.com>
To: dri-devel@lists.freedesktop.org
Cc: lima@lists.freedesktop.org,
	Maxime Ripard <maxime.ripard@bootlin.com>,
	David Airlie <airlied@linux.ie>, Qiang Yu <yuq825@gmail.com>,
	Sean Paul <sean@poorly.run>
Subject: [PATCH 0/6] drm/lima: simplify driver by using more drm helpers
Date: Thu, 26 Sep 2019 22:10:38 +0800	[thread overview]
Message-ID: <20190926141046.30758-1-yuq825@gmail.com> (raw)

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

Qiang Yu (6):
  drm/gem: refine drm_gem_objects_lookup
  drm/v3d: use drm_gem_objects_lookup
  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               |  28 +--
 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 |  23 ++-
 drivers/gpu/drm/v3d/v3d_gem.c           |  35 +---
 include/drm/drm_gem.h                   |   2 +-
 17 files changed, 222 insertions(+), 493 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

             reply	other threads:[~2019-09-26 14:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-26 14:10 Qiang Yu [this message]
2019-09-26 14:10 ` [PATCH 1/6] drm/gem: refine drm_gem_objects_lookup Qiang Yu
2019-09-26 15:01   ` Rob Herring
2019-09-27  0:09     ` Qiang Yu
2019-10-09 14:57       ` Daniel Vetter
2019-10-10  2:02         ` Qiang Yu
2019-10-10 13:42           ` Daniel Vetter
2019-09-26 14:10 ` [PATCH 2/6] drm/v3d: use drm_gem_objects_lookup Qiang Yu
2019-09-26 14:10 ` [PATCH 3/6] drm/lima: " Qiang Yu
2019-09-26 14:10 ` [PATCH 4/6] drm/lima: use drm_gem_shmem_helpers Qiang Yu
2019-09-26 14:10 ` [PATCH 5/6] drm/lima: use drm_gem_(un)lock_reservations Qiang Yu
2019-09-26 14:10 ` [PATCH 6/6] drm/lima: add __GFP_NOWARN flag to all dma_alloc_wc Qiang Yu
2019-09-26 15:00 ` [PATCH 0/6] drm/lima: simplify driver by using more drm helpers Steven Price

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190926141046.30758-1-yuq825@gmail.com \
    --to=yuq825@gmail.com \
    --cc=airlied@linux.ie \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=lima@lists.freedesktop.org \
    --cc=maxime.ripard@bootlin.com \
    --cc=sean@poorly.run \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.