[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 --- drivers/gp

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

2017-11-05 Thread Tina Zhang
dma-buf operations. (Alex) - alloc gem object's backing storage in gem obj's get_pages() callback. (Chris) Signed-off-by: Tina Zhang Cc: Alex Williamson Cc: Chris Wilson Cc: Daniel Vetter Cc: Gerd Hoffmann --- drivers/gpu/drm/i915/gvt/Makefile | 2 +-

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

2017-11-05 Thread Tina Zhang
fix a bug in decoding primary plane. (Tina) v7: - refine framebuffer decoder code. (Zhenyu) Signed-off-by: Tina Zhang Cc: Zhenyu Wang --- drivers/gpu/drm/i915/gvt/Makefile | 3 +- drivers/gpu/drm/i915/gvt/display.c| 2 +- drivers/gpu/drm/i915/gvt/display.h| 2 + drivers/gpu/drm

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

2017-11-05 Thread Tina Zhang
set vgpu's framebuffer as its backing 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

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

2017-11-05 Thread Tina Zhang
save the decoded plane information to avoid look up while need the plane info. (Gerd) Signed-off-by: Tina Zhang Cc: Gerd Hoffmann Cc: Alex Williamson Cc: Daniel Vetter --- include/uapi/linux/vfio.h | 68 +++ 1 file changed, 68 insertions(+) diff

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

2017-11-05 Thread Tina Zhang
rrent 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 Signed-off-by: Tina Zhang --- drivers/gpu/drm/i915/gvt/hypercall.h | 1 + drivers/gpu/drm/i915/g

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

2017-11-05 Thread Tina Zhang
ed 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 Cc: Ville Syrjäl

[PATCH v5 0/6] Deliver vGPU display refresh event to userspace

2019-08-15 Thread Tina Zhang
Lu (2): drm/i915/gvt: Deliver async primary plane page flip events at vblank drm/i915/gvt: Add cursor plane reg update trap emulation handler Tina Zhang (4): vfio: Define device specific irq type capability vfio: Introduce vGPU display irq type drm/i915/gvt: Register vGPU display event irq

[PATCH v5 5/6] drm/i915/gvt: Deliver async primary plane page flip events at vblank

2019-08-15 Thread Tina Zhang
emulation handler to check bitset. Signed-off-by: Kechen Lu Signed-off-by: Tina Zhang --- drivers/gpu/drm/i915/gvt/cmd_parser.c | 6 -- drivers/gpu/drm/i915/gvt/display.c| 10 ++ drivers/gpu/drm/i915/gvt/gvt.h| 2 ++ drivers/gpu/drm/i915/gvt/handlers.c | 5 +++-- 4 files

[PATCH v5 6/6] drm/i915/gvt: Add cursor plane reg update trap emulation handler

2019-08-15 Thread Tina Zhang
: Kechen Lu Signed-off-by: Tina Zhang --- drivers/gpu/drm/i915/gvt/display.c | 7 +++ drivers/gpu/drm/i915/gvt/handlers.c | 27 --- drivers/gpu/drm/i915/gvt/interrupt.c | 7 +++ drivers/gpu/drm/i915/gvt/interrupt.h | 3 +++ 4 files changed, 41 insertions(+), 3

[PATCH v5 2/6] vfio: Introduce vGPU display irq type

2019-08-15 Thread Tina Zhang
ption. (Alex & Kechen) - Introduce vfio_irq_info_cap_display_plane_events. (Gerd & Alex) Signed-off-by: Tina Zhang --- include/uapi/linux/vfio.h | 21 + 1 file changed, 21 insertions(+) diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h index

[PATCH v5 3/6] drm/i915/gvt: Register vGPU display event irq

2019-08-15 Thread Tina Zhang
t the display interrupt event can be delivered to userspace through eventfd. Signed-off-by: Tina Zhang --- drivers/gpu/drm/i915/gvt/display.c | 10 +++- drivers/gpu/drm/i915/gvt/display.h | 3 ++ drivers/gpu/drm/i915/gvt/gvt.h | 2 + drivers/gpu/drm/i915/gvt/hypercall.h | 1 + drivers/gp

[PATCH v5 4/6] drm/i915/gvt: Deliver vGPU refresh event to userspace

2019-08-15 Thread Tina Zhang
eventfd counter partition are leveraged. v2: - Support vfio_irq_info_cap_display_plane_events. (Tina) Signed-off-by: Tina Zhang Signed-off-by: Kechen Lu --- drivers/gpu/drm/i915/gvt/display.c | 22 drivers/gpu/drm/i915/gvt/gvt.h | 2 + drivers/gpu/drm/i915/gvt/kvmgt.c | 159

[PATCH v5 1/6] vfio: Define device specific irq type capability

2019-08-15 Thread Tina Zhang
Cap the number of irqs with fixed indexes and use capability chains to chain device specific irqs. Signed-off-by: Tina Zhang Signed-off-by: Eric Auger --- include/uapi/linux/vfio.h | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/vfio.h

[PATCH v6 2/6] vfio: Introduce vGPU display irq type

2019-09-23 Thread Tina Zhang
on to VFIO_IRQ_SUBTYPE_GFX_DISPLAY_IRQ and VFIO_IRQ_INFO_CAP_DISPLAY. (Alex & Gerd) v2: - Add VFIO_IRQ_SUBTYPE_GFX_DISPLAY_IRQ description. (Alex & Kechen) - Introduce vfio_irq_info_cap_display_plane_events. (Gerd & Alex) Signed-off-by: Tina Zhang --- include/uapi/linux/vfio.h | 38

[PATCH v6 1/6] vfio: Define device specific irq type capability

2019-09-23 Thread Tina Zhang
Cap the number of irqs with fixed indexes and use capability chains to chain device specific irqs. v2: - Irq capability index starts from 1. Signed-off-by: Tina Zhang Signed-off-by: Eric Auger --- include/uapi/linux/vfio.h | 19 ++- 1 file changed, 18 insertions(+), 1 deletion

[PATCH v6 0/6] Deliver vGPU display refresh event to userspace

2019-09-23 Thread Tina Zhang
emulation handler Tina Zhang (4): vfio: Define device specific irq type capability vfio: Introduce vGPU display irq type drm/i915/gvt: Register vGPU display event irq drm/i915/gvt: Deliver vGPU refresh event to userspace drivers/gpu/drm/i915/gvt/cmd_parser.c | 6 +- drivers/gpu/drm/

[PATCH v6 4/6] drm/i915/gvt: Deliver vGPU refresh event to userspace

2019-09-23 Thread Tina Zhang
eventfd counter partition are leveraged. v3: - make no_pageflip_count be per-vgpu instead of static. (Zhenyu) v2: - Support vfio_irq_info_cap_display_plane_events. (Tina) Signed-off-by: Tina Zhang Signed-off-by: Kechen Lu --- drivers/gpu/drm/i915/gvt/display.c | 20 drivers/gpu/drm/i915

[PATCH v6 6/6] drm/i915/gvt: Add cursor plane reg update trap emulation handler

2019-09-23 Thread Tina Zhang
: Kechen Lu Signed-off-by: Tina Zhang --- drivers/gpu/drm/i915/gvt/display.c | 7 +++ drivers/gpu/drm/i915/gvt/handlers.c | 27 --- drivers/gpu/drm/i915/gvt/interrupt.c | 7 +++ drivers/gpu/drm/i915/gvt/interrupt.h | 3 +++ 4 files changed, 41 insertions(+), 3

[PATCH v6 5/6] drm/i915/gvt: Deliver async primary plane page flip events at vblank

2019-09-23 Thread Tina Zhang
emulation handler to check bitset. Signed-off-by: Kechen Lu Signed-off-by: Tina Zhang --- drivers/gpu/drm/i915/gvt/cmd_parser.c | 6 -- drivers/gpu/drm/i915/gvt/display.c| 10 ++ drivers/gpu/drm/i915/gvt/gvt.h| 2 ++ drivers/gpu/drm/i915/gvt/handlers.c | 5 +++-- 4 files

[PATCH v6 3/6] drm/i915/gvt: Register vGPU display event irq

2019-09-23 Thread Tina Zhang
t the display interrupt event can be delivered to userspace through eventfd. Signed-off-by: Tina Zhang --- drivers/gpu/drm/i915/gvt/display.c | 10 +++- drivers/gpu/drm/i915/gvt/display.h | 3 ++ drivers/gpu/drm/i915/gvt/gvt.h | 2 + drivers/gpu/drm/i915/gvt/hypercall.h | 1 + drivers/gp

[PATCH 2/2] drm/i915/gvt: Support delivering page flip event to userspace

2019-05-27 Thread Tina Zhang
Use the eventfd based signaling mechanism provided by vfio/display to deliver vGPU framebuffer page flip event to userspace. Signed-off-by: Tina Zhang --- drivers/gpu/drm/i915/gvt/dmabuf.c | 31 + drivers/gpu/drm/i915/gvt/dmabuf.h | 1 + drivers/gpu/drm/i915/gvt

[PATCH 0/2] Deliver vGPU page flip event to userspace

2019-05-27 Thread Tina Zhang
This series introduces VFIO_DEVICE_SET_GFX_FLIP_EVENTFD ioctl command to set the eventfd based signaling mechanism in vfio display. vGPU can use this eventfd to deliver the framebuffer page flip event to userspace. Tina Zhang (2): vfio: ABI for setting mdev display flip eventfd drm/i915/gvt

[PATCH 1/2] vfio: ABI for setting mdev display flip eventfd

2019-05-27 Thread Tina Zhang
Add VFIO_DEVICE_SET_GFX_FLIP_EVENTFD ioctl command to set eventfd based signaling mechanism to deliver vGPU framebuffer page flip event to userspace. Signed-off-by: Tina Zhang --- include/uapi/linux/vfio.h | 12 1 file changed, 12 insertions(+) diff --git a/include/uapi/linux

[RFC PATCH v3 3/4] drm/i915/gvt: Register vGPU display vblank irq

2019-06-26 Thread Tina Zhang
that the display interrupt event can be delivered to userspace through eventfd. Signed-off-by: Tina Zhang --- drivers/gpu/drm/i915/gvt/display.c | 10 +-- drivers/gpu/drm/i915/gvt/gvt.h | 2 ++ drivers/gpu/drm/i915/gvt/hypercall.h | 1 + drivers/gpu/drm/i915/gvt/kvmgt.c

[RFC PATCH v3 2/4] vfio: Introduce vGPU display irq type

2019-06-26 Thread Tina Zhang
Introduce vGPU specific irq type VFIO_IRQ_TYPE_GFX, and VFIO_IRQ_SUBTYPE_GFX_DISPLAY_IRQ as the subtype for vGPU display Signed-off-by: Tina Zhang --- include/uapi/linux/vfio.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h index

[RFC PATCH v3 0/4] Deliver vGPU display vblank event to userspace

2019-06-26 Thread Tina Zhang
work.kernel.org/cover/10962341/ Tina Zhang (4): vfio: Define device specific irq type capability vfio: Introduce vGPU display irq type drm/i915/gvt: Register vGPU display vblank irq drm/i915/gvt: Deliver vGPU vblank event to userspace drivers/gpu/drm/i915/gvt/display.c | 14 +- drive

[RFC PATCH v3 1/4] vfio: Define device specific irq type capability

2019-06-26 Thread Tina Zhang
Cap the number of irqs with fixed indexes and use capability chains to chain device specific irqs. Signed-off-by: Tina Zhang --- include/uapi/linux/vfio.h | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux

[RFC PATCH v3 4/4] drm/i915/gvt: Deliver vGPU vblank event to userspace

2019-06-26 Thread Tina Zhang
Deliver the display vblank event to the user land. Userspace can use the irq mask/unmask mechanism to disable or enable the event delivery. Signed-off-by: Tina Zhang --- drivers/gpu/drm/i915/gvt/display.c | 4 + drivers/gpu/drm/i915/gvt/gvt.h | 4 + drivers/gpu/drm/i915/gvt/kvmgt.c

[RFC PATCH v2 3/3] drm/i915/gvt: Send plane flip events to user space

2019-06-04 Thread Tina Zhang
Send the primary plane and the cursor plane flip events to user space. Signed-off-by: Tina Zhang --- drivers/gpu/drm/i915/gvt/handlers.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/gvt/handlers.c b/drivers/gpu/drm/i915/gvt

[RFC PATCH v2 1/3] vfio: Use capability chains to handle device specific irq

2019-06-04 Thread Tina Zhang
Caps the number of irqs with fixed indexes and uses capability chains to chain device specific irqs. VFIO vGPU leverages this mechanism to trigger primary plane and cursor plane page flip event to the user space. Signed-off-by: Tina Zhang --- include/uapi/linux/vfio.h | 23

[RFC PATCH v2 0/3] Deliver vGPU page flip events to userspace

2019-06-04 Thread Tina Zhang
/ Tina Zhang (3): vfio: Use capability chains to handle device specific irq drm/i915/gvt: Leverage irq capability chain to get eventfd drm/i915/gvt: Send plane flip events to user space drivers/gpu/drm/i915/gvt/display.c | 10 +- drivers/gpu/drm/i915/gvt/gvt.h | 4 + drivers/gpu

[RFC PATCH v2 2/3] drm/i915/gvt: Leverage irq capability chain to get eventfd

2019-06-04 Thread Tina Zhang
GVT-g display model leverages vfio irq capability chain to get eventfd from the user space. With the eventfd, GVT-g display model in kernel can deliver a plane update event to user space. Signed-off-by: Tina Zhang --- drivers/gpu/drm/i915/gvt/display.c | 10 +- drivers/gpu/drm/i915/gvt/gvt.h

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

2017-07-05 Thread Tina Zhang
an example program on how to use the 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
a-buf. 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 diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h index ae46105..c92bc69 100644

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

2017-11-15 Thread Tina Zhang
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 A topic branch with the latest patch set is: https://github.com/i

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

2017-11-15 Thread Tina Zhang
fix a bug in decoding primary plane. (Tina) v7: - refine framebuffer decoder code. (Zhenyu) Signed-off-by: Tina Zhang Cc: Zhenyu Wang --- drivers/gpu/drm/i915/gvt/Makefile | 3 +- drivers/gpu/drm/i915/gvt/display.c| 2 +- drivers/gpu/drm/i915/gvt/display.h| 2 + drivers/gpu/drm

[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 --- drivers/gp

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

2017-11-15 Thread Tina Zhang
ed 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 Cc: Ville Syrjäl

[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 Cc: Gerd Hoffmann Cc: Alex Williamson Cc: Daniel

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

2017-11-15 Thread Tina Zhang
rrent 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 Signed-off-by: Tina Zhang --- drivers/g

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

2017-11-15 Thread Tina Zhang
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 Cc: Alex Williamson Cc: Chris Wilson Cc: Daniel Vetter Cc: Gerd Hoffmann ---

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

2017-11-23 Thread Tina Zhang
fix a bug in decoding primary plane. (Tina) v7: - refine framebuffer decoder code. (Zhenyu) Signed-off-by: Tina Zhang Cc: Zhenyu Wang --- drivers/gpu/drm/i915/gvt/Makefile | 3 +- drivers/gpu/drm/i915/gvt/display.c| 2 +- drivers/gpu/drm/i915/gvt/display.h| 2 + drivers/gpu/drm

[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:

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

2017-11-23 Thread Tina Zhang
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 Cc: Alex Williamson Cc: Chris Wilson Cc: Daniel Vetter Cc: Gerd Hoffmann ---

[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 Reviewed-by: Gerd Hoffmann Reviewed-by: Kirti

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

2017-11-23 Thread Tina Zhang
el.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 (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

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

2017-11-23 Thread Tina Zhang
ed 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 Cc: Ville Syrjäl

[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 --- drivers/gp

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

2017-11-23 Thread Tina Zhang
ed 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 Cc: Ville Syrjäl

[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

[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 --- drivers/gp

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

2017-10-10 Thread Tina Zhang
rrent 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 Signed-off-by: Tina Zhang --- drivers/gpu/drm/i915/gvt/hypercall.h | 1 + drivers/gpu/drm/i915/gvt/kvmgt.c

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

2017-10-10 Thread Tina Zhang
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 (7): drm/i915/gvt: Add framebuffer decoder support drm: Introduce RGB 64-bit 16:16:16:16 float format

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

2017-10-10 Thread Tina Zhang
I 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 Cc: Gerd Hoffmann Cc: Alex Williamson Cc: Daniel V

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

2017-10-10 Thread Tina Zhang
changed for this kind of gem object. (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.

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

2017-10-10 Thread Tina Zhang
shing 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:

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

2017-10-10 Thread Tina Zhang
plane. (Tina) v7: - refine framebuffer decoder code. (Zhenyu) Signed-off-by: Tina Zhang Cc: Zhenyu Wang --- drivers/gpu/drm/i915/gvt/Makefile | 3 +- drivers/gpu/drm/i915/gvt/display.c| 2 +- drivers/gpu/drm/i915/gvt/display.h| 2 + drivers/gpu/drm/i915/gvt/fb_decoder.c

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

2017-10-10 Thread Tina Zhang
ed 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 Cc: Ville Syrjäl

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

2017-07-03 Thread Tina Zhang
a-buf. 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 diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h index ae46105..c92bc69 100644

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

2017-11-09 Thread Tina Zhang
fix a bug in decoding primary plane. (Tina) v7: - refine framebuffer decoder code. (Zhenyu) Signed-off-by: Tina Zhang Cc: Zhenyu Wang --- drivers/gpu/drm/i915/gvt/Makefile | 3 +- drivers/gpu/drm/i915/gvt/display.c| 2 +- drivers/gpu/drm/i915/gvt/display.h| 2 + drivers/gpu/drm

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

2017-11-09 Thread Tina Zhang
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 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

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

2017-11-09 Thread Tina Zhang
rrent 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 Signed-off-by: Tina Zhang --- drivers/gpu/drm/i915/gvt/hypercall.h | 1 + drivers/gpu/drm/i915/g

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

2017-11-09 Thread Tina Zhang
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 Cc: Alex Williamson Cc: Chris Wilson Cc: Daniel Vetter Cc: Gerd Hoffmann ---

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

2017-11-09 Thread Tina Zhang
ed 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 Cc: Ville Syrjäl

[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 --- drivers/gp

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

2017-11-09 Thread Tina Zhang
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 Cc: Gerd Hoffmann Cc: Alex Williamson Cc: Daniel Vetter --- include/uapi/linux/vfio.h | 64