Skip to content

Convert VRAM helpers to GEM object functions

Thomas Zimmermann dri-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 1 replyIn review
  2. v25 patches 3 repliesSuperseded
  3. v14 patches 7 repliesSuperseded

Changes in v3 from the cover letter

* moved object table to EOF
* kept all renamed functions at their original location
* kept documentation

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm/vram: Set GEM object functions for PRIMEdrivers/gpu/drm/drm_gem_vram_helper.c include/drm/drm_gem_vram_helper.h+19 -10 replies
2/5drm/bochs: Remove PRIME helpers from driver structuredrivers/gpu/drm/bochs/bochs_drv.c+0 -10 replies
3/5drm/hibmc: Update struct drm_driver for GEM object functionsdrivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c+1 -20 replies
4/5drm/vbox: Remove empty PRIME functionsdrivers/gpu/drm/vboxvideo/Makefile drivers/gpu/drm/vboxvideo/vbox_drv.c drivers/gpu/drm/vboxvideo/vbox_drv.h +1 more+1 -780 replies
5/5drm/vram: Don't export driver callback functions for PRIMEDocumentation/gpu/todo.rst drivers/gpu/drm/drm_gem_vram_helper.c include/drm/drm_gem_vram_helper.h+29 -741 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchEmil VelikovDaniel VetterGerd Hoffmann
1/5R-b
2/5R-b A-b
3/5R-b A-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/5] Convert VRAM helpers to GEM object functions

The PRIME callback functions in struct drm_driver are deprecated in favor of their counterparts in struct drm_gem_object_funcs.

This patch set introduces GEM object functions for VRAM helpers and converts over the free and PRIME functions. Drivers affected by this change, namely bochs, hibmc and vbox, are adapted accordingly.

v2:
* rename VRAM PRIME functions instead of replacing them
* set struct drm_driver.gem_prime_mmap in hibmc
* replace vbox driver's empty PRIME implementation
v3:
* moved object table to EOF
* kept all renamed functions at their original location
* kept documentation

Thomas Zimmermann (5):
drm/vram: Set GEM object functions for PRIME drm/bochs: Remove PRIME helpers from driver structure drm/hibmc: Update struct drm_driver for GEM object functions drm/vbox: Remove empty PRIME functions
drm/vram: Don't export driver callback functions for PRIME

 Documentation/gpu/todo.rst                    |  4 +-
 drivers/gpu/drm/bochs/bochs_drv.c             |  1 -
 drivers/gpu/drm/drm_gem_vram_helper.c         | 78 +++++++++----------
 .../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c   |  3 +-
 drivers/gpu/drm/vboxvideo/Makefile            |  2 +-
 drivers/gpu/drm/vboxvideo/vbox_drv.c          |  9 ---
 drivers/gpu/drm/vboxvideo/vbox_drv.h          | 12 ---
 drivers/gpu/drm/vboxvideo/vbox_prime.c        | 56 -------------
 include/drm/drm_gem_vram_helper.h             | 25 +-----
 9 files changed, 42 insertions(+), 148 deletions(-)
 delete mode 100644 drivers/gpu/drm/vboxvideo/vbox_prime.c

--
2.21.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel