Skip to contentSkip to conversation

drm/i915: Introduce GEM proxy

PATCH Superseded Tina Zhang 1 participant 1 message Nov 1, 2017

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Tina Zhang

author
#0 lore raw

v2 cover drm/i915: Introduce GEM proxy

This patch-set introduces the GEM proxy which is a kind of GEM whose backing physical memory is pinned and produced by guest VM and is used by host as read only.

The patch is separated from the "Dma-buf support for Gvt-g"
patch-set. (Joonas)

v2:
- return -ENXIO when pin and map pages of GEM proxy to kernel space. (Chris)
- update the patch description and subject to just mention objects w/o backing storage, instead of "GEM proxy". (Joonas)

Here are the histories of this patch in "Dma-buf support for Gvt-g" patch-set:

v14:
- return -ENXIO when gem proxy object is banned by ioctl. (Chris) (Daniel)

v13:
- add comments to GEM proxy. (Chris)
- don't ban GEM proxy in i915_gem_sw_finish_ioctl. (Chris)
- check GEM proxy bar after finishing i915_gem_object_wait. (Chris)
- remove GEM proxy bar in i915_gem_madvise_ioctl.

v6:
- add gem proxy barrier in the following ioctls. (Chris) i915_gem_set_caching_ioctl i915_gem_set_domain_ioctl i915_gem_sw_finish_ioctl i915_gem_set_tiling_ioctl i915_gem_madvise_ioctl

Tina Zhang (2):
drm/i915: Introduce GEM proxy
drm/i915: Object w/o backing stroage is banned by -ENXIO

 drivers/gpu/drm/i915/i915_gem.c        | 27 +++++++++++++++++++++++++--
 drivers/gpu/drm/i915/i915_gem_object.h | 11 +++++++++--
 drivers/gpu/drm/i915/i915_gem_tiling.c |  8 ++++++++
 3 files changed, 42 insertions(+), 4 deletions(-)
Signature · 6 lines
2.7.4

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx