[PATCH v2 0/5] Convert VRAM helpers to GEM object functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 and hibmc, are adapted accordingly.

The patch set's v1 was acked by Daniel Vetter. I only took it for the
driver patches, as the VRAM patches have changed significantly in v2.

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

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         | 188 +++++++-----------
 .../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, 75 insertions(+), 225 deletions(-)
 delete mode 100644 drivers/gpu/drm/vboxvideo/vbox_prime.c

--
2.21.0

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux