Skip to content

drm/vram: Provide helpers for prepare_fb() and cleanup_fb()

Thomas Zimmermann dri-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesIn review
  2. v15 patches 3 repliesSuperseded

Changes in v2 from the cover letter

* provide helpers for struct drm_simple_display_pipe_funcs, and...
* ...use them in bochs

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/vram-helpers: Add helpers for prepare_fb() and cleanup_fb()drivers/gpu/drm/drm_gem_vram_helper.c include/drm/drm_gem_vram_helper.h+151 -00 replies
2/4drm/bochs: Replace prepare_fb()/cleanup_fb() with GEM VRAM helpersdrivers/gpu/drm/bochs/bochs_kms.c+2 -240 replies
3/4drm/hisilicon/hibmc: Use GEM VRAM's prepare_fb() and cleanup_fb() helpersdrivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c+4 -100 replies
4/4drm/vboxvideo: Replace prepare_fb()/cleanup_fb() with GEM VRAM helpersdrivers/gpu/drm/vboxvideo/vbox_mode.c+4 -570 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDaniel Vetter
SeriesR-b
1/4
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 v2 thread

Cover letter [PATCH v2 0/4] drm/vram: Provide helpers for prepare_fb() and cleanup_fb()

The implementation of the plane's call-back functions prepare_fb() and cleanup_fb() for GEM VRAM helpers are sharable among drivers.

Patch #3 also fixes two bugs that have been present in hibmc since it was first added. The primary plane's atomic_update() is not responsible for pinning BOs. And it never unpinned unused BOs. VRAM is being exausted over time.

The new helpers have been tested to work.

v2:
* provide helpers for struct drm_simple_display_pipe_funcs, and...
* ...use them in bochs

Thomas Zimmermann (4):
drm/vram-helpers: Add helpers for prepare_fb() and cleanup_fb() drm/bochs: Replace prepare_fb()/cleanup_fb() with GEM VRAM helpers drm/hisilicon/hibmc: Use GEM VRAM's prepare_fb() and cleanup_fb()
helpers
drm/vboxvideo: Replace prepare_fb()/cleanup_fb() with GEM VRAM helpers

 drivers/gpu/drm/bochs/bochs_kms.c             |  26 +---
 drivers/gpu/drm/drm_gem_vram_helper.c         | 126 ++++++++++++++++++
 .../gpu/drm/hisilicon/hibmc/hibmc_drm_de.c    |  14 +-
 drivers/gpu/drm/vboxvideo/vbox_mode.c         |  61 +--------
 include/drm/drm_gem_vram_helper.h             |  25 ++++
 5 files changed, 161 insertions(+), 91 deletions(-)

--
2.23.0

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