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
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 +-
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
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
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
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
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
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
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
: 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
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
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
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
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
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
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
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/
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
: 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
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
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
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
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
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
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
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
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
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
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
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
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
/
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
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
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
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
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
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
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
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
:
- 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
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
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
---
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
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:
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
---
:
- 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
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
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
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
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
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
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
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
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
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
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.
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:
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
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
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
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
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
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
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
---
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
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
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
67 matches
Mail list logo