[PATCH v1] vfio: ABI for mdev display dma-buf operation

2017-07-03 Thread Tina Zhang
. Host User mode can check the value of fd and to see if it need to creat new resource according to the new fd or just use the existed resource related to the old fd. Signed-off-by: Tina Zhang <tina.zh...@intel.com> diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h index a

[PATCH v10] drm/i915/gvt: Dma-buf support for GVT-g

2017-07-05 Thread Tina Zhang
e dma-buf. You can download the program to have a try. Good luck :) git repo: https://github.com/01org/igvtg-qemu branch:kvmgt_dmabuf_example Tina Zhang (1): vfio: ABI for mdev display dma-buf operation include/uapi/linux/vfio.h | 30 ++ 1 file changed, 30 insertions(+) -- 2.7.4

[PATCH v10] vfio: ABI for mdev display dma-buf operation

2017-07-05 Thread Tina Zhang
. Host User mode can check the value of fd and to see if it need to creat new resource according to the new fd or just use the existed resource related to the old fd. Signed-off-by: Tina Zhang <tina.zh...@intel.com> diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h index a

[PATCH v15 2/7] drm: Introduce RGB 64-bit 16:16:16:16 float format

2017-10-10 Thread Tina Zhang
by linux host. v14: - add some details about the float pixel format. (Daniel) - add F suffix to the defined name. (Daniel) v12: - send to dri-devel at lists.freedesktop.org. (Ville) v9: - separated from framebuffer decoder patch. (Zhenyu) (Xiaoguang) Signed-off-by: Tina Zhang <tina.zh...@intel.com&

[PATCH v15 1/7] drm/i915/gvt: Add framebuffer decoder support

2017-10-10 Thread Tina Zhang
. (Tina) v7: - refine framebuffer decoder code. (Zhenyu) Signed-off-by: Tina Zhang <tina.zh...@intel.com> Cc: Zhenyu Wang <zhen...@linux.intel.com> --- drivers/gpu/drm/i915/gvt/Makefile | 3 +- drivers/gpu/drm/i915/gvt/display.c| 2 +- drivers/gpu/drm/i915/gvt/displa

[PATCH v15 6/7] drm/i915: Introduce GEM proxy

2017-10-10 Thread Tina Zhang
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 Signed-off-by: Tina

[PATCH v15 5/7] vfio: ABI for mdev display dma-buf operation

2017-10-10 Thread Tina Zhang
VFIO_DEVICE_QUERY_GFX_PLANE. (Alex) (Gerd) v3: - add a field gvt_plane_info in the drm_i915_gem_obj structure to save the decoded plane information to avoid look up while need the plane info. (Gerd) Signed-off-by: Tina Zhang <tina.zh...@intel.com> Cc: Gerd Hoffmann <kra...@redhat.com&

[PATCH v15 7/7] drm/i915/gvt: Dmabuf support for GVT-g

2017-10-10 Thread Tina Zhang
. (Alex) - change dma-buf related information to be more generic. So other vendor can use the same interface. (Alex) v2: - create a management fd for dma-buf operations. (Alex) - alloc gem object's backing storage in gem obj's get_pages() callback. (Chris) Signed-off-by: Tina Zhang <tina

[PATCH v15 3/7] drm/i915/gvt: Add RGB 64-bit 16:16:16:16 float format

2017-10-10 Thread Tina Zhang
The RGB 64-bit 16:16:16:16 float pixel format is needed by windows 10 guest VM. This patch is to add this pixel format support to gvt device model. Without this patch, some Apps, e.g. "DXGIGammaVM.exe", will crash and make guest screen black. Signed-off-by: Tina Zhang <tina.zh

[PATCH v15 4/7] drm/i915/gvt: Add opregion support

2017-10-10 Thread Tina Zhang
implementation is to fill the virtual opregion with the content in host's opregion. The original author of this patch is Xiaoguang Chen. Signed-off-by: Bing Niu <bing@intel.com> Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/gvt/hypercall.h | 1 + dri

[PATCH v15 0/7] drm/i915/gvt: Dma-buf support for GVT-g

2017-10-10 Thread Tina Zhang
this buffer. This patch set can be tried with the following example: git://git.kraxel.org/qemu branch: work/intel-vgpu Tina Zhang (7): drm/i915/gvt: Add framebuffer decoder support drm: Introduce RGB 64-bit 16:16:16:16 float format drm/i915/gvt: Add RGB 64-bit 16:16:16:16 float f

[PATCH v18 6/6] drm/i915/gvt: Dmabuf support for GVT-g

2017-11-15 Thread Tina Zhang
: - create a management fd for dma-buf operations. (Alex) - alloc gem object's backing storage in gem obj's get_pages() callback. (Chris) Signed-off-by: Tina Zhang <tina.zh...@intel.com> Cc: Alex Williamson <alex.william...@redhat.com> Cc: Chris Wilson <ch...@chris-wilson.co.uk>

[PATCH v18 4/6] drm/i915/gvt: Add opregion support

2017-11-15 Thread Tina Zhang
implementation is to fill the virtual opregion with the content in host's opregion. The original author of this patch is Xiaoguang Chen. v18: - unmap vgpu's opregion when destroying vgpu. v16: - rebase to 4.14.0-rc6. Signed-off-by: Bing Niu <bing@intel.com> Signed-off-by: Tina Zhang &l

[PATCH v18 3/6] drm/i915/gvt: Add RGB 64-bit 16:16:16:16 float format

2017-11-15 Thread Tina Zhang
The RGB 64-bit 16:16:16:16 float pixel format is needed by windows 10 guest VM. This patch is to add this pixel format support to gvt device model. Without this patch, some Apps, e.g. "DXGIGammaVM.exe", will crash and make guest screen black. Signed-off-by: Tina Zhang <tina.zh

[PATCH v18 2/6] drm: Introduce RGB 64-bit 16:16:16:16 float format

2017-11-15 Thread Tina Zhang
by linux host. v14: - add some details about the float pixel format. (Daniel) - add F suffix to the defined name. (Daniel) v12: - send to dri-devel at lists.freedesktop.org. (Ville) v9: - separated from framebuffer decoder patch. (Zhenyu) (Xiaoguang) Signed-off-by: Tina Zhang <tina.zh...@intel.com&

[PATCH v18 5/6] vfio: ABI for mdev display dma-buf operation

2017-11-15 Thread Tina Zhang
: - refine the ABI API VFIO_DEVICE_QUERY_GFX_PLANE. (Alex) (Gerd) v3: - add a field gvt_plane_info in the drm_i915_gem_obj structure to save the decoded plane information to avoid look up while need the plane info. (Gerd) Signed-off-by: Tina Zhang <tina.zh...@intel.com> Cc: Gerd Hoffman

[PATCH v18 0/6] drm/i915/gvt: Dma-buf support for GVT-g

2017-11-15 Thread Tina Zhang
e fd of this dma-buf, userspace can directly handle this buffer. This patch set can be tried with the following example: git://git.kraxel.org/qemu branch: work/intel-vgpu A topic branch with the latest patch set is: https://github.com/intel/gvt-linux.git branch: topic/dmabuf Tina Zhang (

[PATCH v18 1/6] drm/i915/gvt: Add framebuffer decoder support

2017-11-15 Thread Tina Zhang
a bug in decoding primary plane. (Tina) v7: - refine framebuffer decoder code. (Zhenyu) Signed-off-by: Tina Zhang <tina.zh...@intel.com> Cc: Zhenyu Wang <zhen...@linux.intel.com> --- drivers/gpu/drm/i915/gvt/Makefile | 3 +- drivers/gpu/drm/i915/gvt/display.c| 2 +- drivers/

[PATCH v19 1/6] drm/i915/gvt: Add framebuffer decoder support

2017-11-23 Thread Tina Zhang
a bug in decoding primary plane. (Tina) v7: - refine framebuffer decoder code. (Zhenyu) Signed-off-by: Tina Zhang <tina.zh...@intel.com> Cc: Zhenyu Wang <zhen...@linux.intel.com> --- drivers/gpu/drm/i915/gvt/Makefile | 3 +- drivers/gpu/drm/i915/gvt/display.c| 2 +- drivers/

[PATCH v19 5/6] drm/i915/gvt: Dmabuf support for GVT-g

2017-11-23 Thread Tina Zhang
: - create a management fd for dma-buf operations. (Alex) - alloc gem object's backing storage in gem obj's get_pages() callback. (Chris) Signed-off-by: Tina Zhang <tina.zh...@intel.com> Cc: Alex Williamson <alex.william...@redhat.com> Cc: Chris Wilson <ch...@chris-wilson.co.uk>

[PATCH v19 4/6] vfio: ABI for mdev display dma-buf operation

2017-11-23 Thread Tina Zhang
: - refine the ABI API VFIO_DEVICE_QUERY_GFX_PLANE. (Alex) (Gerd) v3: - add a field gvt_plane_info in the drm_i915_gem_obj structure to save the decoded plane information to avoid look up while need the plane info. (Gerd) Signed-off-by: Tina Zhang <tina.zh...@intel.com> Reviewed-by: Gerd Ho

[PATCH v19 0/6] drm/i915/gvt: Dma-buf support for GVT-g

2017-11-23 Thread Tina Zhang
th the latest patch set is: https://github.com/intel/gvt-linux.git branch: topic/dmabuf Tina Zhang (6): drm/i915/gvt: Add framebuffer decoder support drm: Introduce RGB 64-bit 16:16:16:16 float format drm/i915/gvt: Add RGB 64-bit 16:16:16:16 float format vfio: ABI for mdev display

[PATCH v19 2/6] drm: Introduce RGB 64-bit 16:16:16:16 float format

2017-11-23 Thread Tina Zhang
by linux host. v14: - add some details about the float pixel format. (Daniel) - add F suffix to the defined name. (Daniel) v12: - send to dri-devel at lists.freedesktop.org. (Ville) v9: - separated from framebuffer decoder patch. (Zhenyu) (Xiaoguang) Signed-off-by: Tina Zhang <tina.zh...@intel.com&

[PATCH v19 3/6] drm/i915/gvt: Add RGB 64-bit 16:16:16:16 float format

2017-11-23 Thread Tina Zhang
The RGB 64-bit 16:16:16:16 float pixel format is needed by windows 10 guest VM. This patch is to add this pixel format support to gvt device model. Without this patch, some Apps, e.g. "DXGIGammaVM.exe", will crash and make guest screen black. Signed-off-by: Tina Zhang <tina.zh

[PATCH v19 6/6] drm/i915/gvt: Handle orphan dmabuf_objs

2017-11-23 Thread Tina Zhang
dmabuf_obj's destruction relys on GEM release operation, which is managed in i915 driver. And there is a time window between vgpu's destruction and its dmabuf_objs' destruction. This patch is to free the orphan dmabuf_objs correctly after the vgpu passes away. Signed-off-by: Tina Zhang <tina

[PATCH] drm: Introduce RGB 64-bit 16:16:16:16 float format

2017-11-23 Thread Tina Zhang
1:5:10 MSb-sign:exponent: fraction. This patch is to introduce the format to drm, so that the windows guest's framebuffer in this kind of format can be recognized and used by linux host. Tina Zhang (1): drm: Introduce RGB 64-bit 16:16:16:16 float format include/uapi/drm/drm_fourcc.h | 4 1 file

[PATCH] drm: Introduce RGB 64-bit 16:16:16:16 float format

2017-11-23 Thread Tina Zhang
by linux host. v14: - add some details about the float pixel format. (Daniel) - add F suffix to the defined name. (Daniel) v12: - send to dri-devel at lists.freedesktop.org. (Ville) v9: - separated from framebuffer decoder patch. (Zhenyu) (Xiaoguang) Signed-off-by: Tina Zhang <tina.zh...@intel.com&

[PATCH v16 3/6] drm/i915/gvt: Add RGB 64-bit 16:16:16:16 float format

2017-11-05 Thread Tina Zhang
The RGB 64-bit 16:16:16:16 float pixel format is needed by windows 10 guest VM. This patch is to add this pixel format support to gvt device model. Without this patch, some Apps, e.g. "DXGIGammaVM.exe", will crash and make guest screen black. Signed-off-by: Tina Zhang <tina.zh

[PATCH v16 6/6] drm/i915/gvt: Dmabuf support for GVT-g

2017-11-05 Thread Tina Zhang
gem object's backing storage in gem obj's get_pages() callback. (Chris) Signed-off-by: Tina Zhang <tina.zh...@intel.com> Cc: Alex Williamson <alex.william...@redhat.com> Cc: Chris Wilson <ch...@chris-wilson.co.uk> Cc: Daniel Vetter <daniel.vet...@ffwll.ch> Cc: Gerd Hof

[PATCH v16 1/6] drm/i915/gvt: Add framebuffer decoder support

2017-11-05 Thread Tina Zhang
a bug in decoding primary plane. (Tina) v7: - refine framebuffer decoder code. (Zhenyu) Signed-off-by: Tina Zhang <tina.zh...@intel.com> Cc: Zhenyu Wang <zhen...@linux.intel.com> --- drivers/gpu/drm/i915/gvt/Makefile | 3 +- drivers/gpu/drm/i915/gvt/display.c| 2 +- drivers/

[PATCH v16 4/6] drm/i915/gvt: Add opregion support

2017-11-05 Thread Tina Zhang
implementation is to fill the virtual opregion with the content in host's opregion. The original author of this patch is Xiaoguang Chen. v16: - rebase to 4.14.0-rc6 Signed-off-by: Bing Niu <bing@intel.com> Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/gvt

[PATCH v16 0/6] drm/i915/gvt: Dma-buf support for GVT-g

2017-11-05 Thread Tina Zhang
ng storage. Then, export a dma-buf associated with this gem object. With the fd of this dma-buf, userspace can directly handle this buffer. This patch set can be tried with the following example: git://git.kraxel.org/qemu branch: work/intel-vgpu Tina Zhang (6): drm/i915/gvt: Add framebuffer decoder

[PATCH v16 5/6] vfio: ABI for mdev display dma-buf operation

2017-11-05 Thread Tina Zhang
to save the decoded plane information to avoid look up while need the plane info. (Gerd) Signed-off-by: Tina Zhang <tina.zh...@intel.com> Cc: Gerd Hoffmann <kra...@redhat.com> Cc: Alex Williamson <alex.william...@redhat.com> Cc: Daniel Vetter <daniel.vet...@ffwll.ch> --- i

[PATCH v16 2/6] drm: Introduce RGB 64-bit 16:16:16:16 float format

2017-11-05 Thread Tina Zhang
by linux host. v14: - add some details about the float pixel format. (Daniel) - add F suffix to the defined name. (Daniel) v12: - send to dri-devel at lists.freedesktop.org. (Ville) v9: - separated from framebuffer decoder patch. (Zhenyu) (Xiaoguang) Signed-off-by: Tina Zhang <tina.zh...@intel.com&

[PATCH v17 5/6] vfio: ABI for mdev display dma-buf operation

2017-11-09 Thread Tina Zhang
a field gvt_plane_info in the drm_i915_gem_obj structure to save the decoded plane information to avoid look up while need the plane info. (Gerd) Signed-off-by: Tina Zhang <tina.zh...@intel.com> Cc: Gerd Hoffmann <kra...@redhat.com> Cc: Alex Williamson <alex.william...@redhat.

[PATCH v17 1/6] drm/i915/gvt: Add framebuffer decoder support

2017-11-09 Thread Tina Zhang
a bug in decoding primary plane. (Tina) v7: - refine framebuffer decoder code. (Zhenyu) Signed-off-by: Tina Zhang <tina.zh...@intel.com> Cc: Zhenyu Wang <zhen...@linux.intel.com> --- drivers/gpu/drm/i915/gvt/Makefile | 3 +- drivers/gpu/drm/i915/gvt/display.c| 2 +- drivers/

[PATCH v17 0/6] drm/i915/gvt: Dma-buf support for GVT-g

2017-11-09 Thread Tina Zhang
git://git.kraxel.org/qemu branch: work/intel-vgpu Tina Zhang (6): drm/i915/gvt: Add framebuffer decoder support drm: Introduce RGB 64-bit 16:16:16:16 float format drm/i915/gvt: Add RGB 64-bit 16:16:16:16 float format drm/i915/gvt: Add opregion support vfio: ABI for mdev display

[PATCH v17 4/6] drm/i915/gvt: Add opregion support

2017-11-09 Thread Tina Zhang
implementation is to fill the virtual opregion with the content in host's opregion. The original author of this patch is Xiaoguang Chen. v16: - rebase to 4.14.0-rc6 Signed-off-by: Bing Niu <bing@intel.com> Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/gvt

[PATCH v17 6/6] drm/i915/gvt: Dmabuf support for GVT-g

2017-11-09 Thread Tina Zhang
: - create a management fd for dma-buf operations. (Alex) - alloc gem object's backing storage in gem obj's get_pages() callback. (Chris) Signed-off-by: Tina Zhang <tina.zh...@intel.com> Cc: Alex Williamson <alex.william...@redhat.com> Cc: Chris Wilson <ch...@chris-wilson.co.uk>

[PATCH v17 3/6] drm/i915/gvt: Add RGB 64-bit 16:16:16:16 float format

2017-11-09 Thread Tina Zhang
The RGB 64-bit 16:16:16:16 float pixel format is needed by windows 10 guest VM. This patch is to add this pixel format support to gvt device model. Without this patch, some Apps, e.g. "DXGIGammaVM.exe", will crash and make guest screen black. Signed-off-by: Tina Zhang <tina.zh

[PATCH v17 2/6] drm: Introduce RGB 64-bit 16:16:16:16 float format

2017-11-09 Thread Tina Zhang
by linux host. v14: - add some details about the float pixel format. (Daniel) - add F suffix to the defined name. (Daniel) v12: - send to dri-devel at lists.freedesktop.org. (Ville) v9: - separated from framebuffer decoder patch. (Zhenyu) (Xiaoguang) Signed-off-by: Tina Zhang <tina.zh...@intel.com&