Skip to content

drm/v3d: Add drm core helper, use shmem helpers

Eric Anholt dri-devel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm: Add helpers for locking an array of BO reservations.drivers/gpu/drm/drm_gem.c include/drm/drm_gem.h+80 -05 replies
2/4drm/v3d: Use drm_gem_lock_reservations()/drm_gem_unlock_reservations()drivers/gpu/drm/v3d/v3d_gem.c+6 -500 replies
3/4drm/v3d: Remove some dead members of struct v3d_bo.drivers/gpu/drm/v3d/v3d_bo.c drivers/gpu/drm/v3d/v3d_drv.h+0 -100 replies
4/4drm/v3d: Use the new shmem helpers to reduce driver boilerplate.drivers/gpu/drm/v3d/Kconfig drivers/gpu/drm/v3d/v3d_bo.c drivers/gpu/drm/v3d/v3d_drv.c +4 more+134 -2711 reply

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchRob Herring
1/4A-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] drm/v3d: Add drm core helper, use shmem helpers

This was inspired by Rob's respin of the shmem helpers patch for panfrost (which the final patch depends on). And, looking at panfrost and lima, recently I realized that we all had some nasty cargo-cult code for BO reservations that we can share now that the reservation object is in the core GEM struct.

Eric Anholt (4):
drm: Add helpers for locking an array of BO reservations. drm/v3d: Use drm_gem_lock_reservations()/drm_gem_unlock_reservations() drm/v3d: Remove some dead members of struct v3d_bo. drm/v3d: Use the new shmem helpers to reduce driver boilerplate.

 drivers/gpu/drm/drm_gem.c     |  76 +++++++++
 drivers/gpu/drm/v3d/Kconfig   |   1 +
 drivers/gpu/drm/v3d/v3d_bo.c  | 309 ++++++++++------------------------
 drivers/gpu/drm/v3d/v3d_drv.c |  27 +--
 drivers/gpu/drm/v3d/v3d_drv.h |  25 +--
 drivers/gpu/drm/v3d/v3d_gem.c |  67 ++------
 drivers/gpu/drm/v3d/v3d_irq.c |   8 +-
 drivers/gpu/drm/v3d/v3d_mmu.c |  34 +++-
 include/drm/drm_gem.h         |   4 +
 9 files changed, 220 insertions(+), 331 deletions(-)
Signature · 1 line
2.20.1