All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] drm/vram: Provide helpers for prepare_fb() and cleanup_fb()
@ 2019-10-24  8:14 Thomas Zimmermann
  2019-10-24  8:14 ` [PATCH v2 1/4] drm/vram-helpers: Add " Thomas Zimmermann
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Thomas Zimmermann @ 2019-10-24  8:14 UTC (permalink / raw)
  To: kraxel, airlied, daniel, z.liuxinliang, zourongrong,
	kong.kongxinwei, puck.chen, hdegoede, sam
  Cc: Thomas Zimmermann, dri-devel

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
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2019-10-24 14:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-24  8:14 [PATCH v2 0/4] drm/vram: Provide helpers for prepare_fb() and cleanup_fb() Thomas Zimmermann
2019-10-24  8:14 ` [PATCH v2 1/4] drm/vram-helpers: Add " Thomas Zimmermann
2019-10-24  8:14 ` [PATCH v2 2/4] drm/bochs: Replace prepare_fb()/cleanup_fb() with GEM VRAM helpers Thomas Zimmermann
2019-10-24  8:14 ` [PATCH v2 3/4] drm/hisilicon/hibmc: Use GEM VRAM's prepare_fb() and cleanup_fb() helpers Thomas Zimmermann
2019-10-24  8:14 ` [PATCH v2 4/4] drm/vboxvideo: Replace prepare_fb()/cleanup_fb() with GEM VRAM helpers Thomas Zimmermann
2019-10-24 12:37 ` [PATCH v2 0/4] drm/vram: Provide helpers for prepare_fb() and cleanup_fb() Daniel Vetter
2019-10-24 14:05   ` Thomas Zimmermann

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.