[Intel-gfx] [PATCH] drm/modes: Prevent division by zero htotal

2019-01-22 Thread Tina Zhang
This patch prevents division by zero htotal. Signed-off-by: Tina Zhang Cc: Adam Jackson Cc: Dave Airlie Cc: Daniel Vetter --- drivers/gpu/drm/drm_modes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index

[Intel-gfx] [RFC PATCH 2/7] drm/i915/gvt: Use meta fbs to stand for vGPU's planes

2018-12-02 Thread Tina Zhang
pipe one */ cat plane_index_id //dump the id for plane 0 of pipe 1 Then userspace can use this id with the exsting KMS IOCTL, e.g. drmModeSetPlane, to assign a physical plane to this virtual plane. Signed-off-by: Tina Zhang Cc: Zhenyu Wang Cc: Zhi Wang --- drivers/gpu/drm/i

[Intel-gfx] [RFC PATCH 6/7] drm/i915/gvt: Enable guest direct page flip

2018-12-02 Thread Tina Zhang
Use the vGPU direct plane flip framework do the guest direct page flip. Signed-off-by: Tina Zhang Cc: Zhenyu Wang Cc: Zhi Wang --- drivers/gpu/drm/i915/gvt/handlers.c | 38 + 1 file changed, 38 insertions(+) diff --git a/drivers/gpu/drm/i915/gvt/handlers.c

[Intel-gfx] [RFC PATCH 3/7] drm/i915: Introduce async plane update to i915

2018-12-02 Thread Tina Zhang
of this series try to extend this idea to support other planes. Signed-off-by: Tina Zhang Cc: Gustavo Padovan Cc: Enric Balletbo i Serra Cc: Helen Koike Cc: Daniel Vetter Cc: Ville Syrjälä --- drivers/gpu/drm/i915/intel_atomic_plane.c | 69 +++ drivers/gpu/drm/i915

[Intel-gfx] [RFC PATCH 7/7] drm/i915/gvt: Introduce HW Vblank interrupt to vGPU

2018-12-02 Thread Tina Zhang
For each physical crtc, Gvt-g has a kernel thread to get the HW vblank event on time and inject the interrupt event to the vGPUs which the display planes of the crtc are assigned to. Signed-off-by: Tina Zhang Cc: Zhenyu Wang Cc: Zhi Wang --- drivers/gpu/drm/i915/gvt/display.c | 30

[Intel-gfx] [RFC PATCH 5/7] drm/i915/gvt: Introduce vGPU plane page flip framework

2018-12-02 Thread Tina Zhang
as much as possible. Signed-off-by: Tina Zhang Cc: Zhenyu Wang Cc: Zhi Wang --- drivers/gpu/drm/i915/gvt/display.c | 265 + drivers/gpu/drm/i915/gvt/display.h | 18 +++ 2 files changed, 283 insertions(+) diff --git a/drivers/gpu/drm/i915/gvt/display.c b

[Intel-gfx] [RFC PATCH 4/7] drm/i915: Extend async plane update to other planes

2018-12-02 Thread Tina Zhang
Extend async plane update idea to more planes. Signed-off-by: Tina Zhang Cc: Gustavo Padovan Cc: Enric Balletbo i Serra Cc: Helen Koike Cc: Daniel Vetter Cc: Ville Syrjälä --- drivers/gpu/drm/i915/intel_atomic_plane.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [RFC PATCH 1/7] drm/i915: Introduce meta framebuffer

2018-12-02 Thread Tina Zhang
is used by host i915 to describe the framebuffer pinned to the GGTT space by guest OS. Signed-off-by: Tina Zhang Signed-off-by: Zhi Wang Cc: Ville Syrjälä Cc: Daniel Vetter --- drivers/gpu/drm/i915/intel_drv.h| 15 +++ drivers/gpu/drm/i915/intel_sprite.c | 19 ++- 2

[Intel-gfx] [RFC PATCH 0/7] drm/i915/gvt: Enable vGPU local display direct flip

2018-12-02 Thread Tina Zhang
like the PLANE_SURF in the series. Tina Zhang (7): drm/i915: Introduce meta framebuffer drm/i915/gvt: Use meta fbs to stand for vGPU's planes drm/i915: Introduce async plane update to i915 drm/i915: Extend async plane update to other planes drm/i915/gvt: Introduce vGPU plane page flip framework

[Intel-gfx] [PATCH v5] drm/i915/gvt: Deliver guest cursor hotspot info

2018-05-14 Thread Tina Zhang
ersion. v2->v3: - add validate_hotspot(). (Zhenyu) v1->v2: - name as cursor_x_hot/cursor_y_hot. (Zhenyu) - use i915_reg_t definition instead of magic numbers. (Zhenyu) Signed-off-by: Tina Zhang <tina.zh...@intel.com> Cc: Zhenyu Wang <zhen...@linux.intel.com> Cc: Zhi Wang <zhi

[Intel-gfx] [PATCH v4] drm/i915/gvt: Deliver guest cursor hotspot info

2018-04-15 Thread Tina Zhang
otspot(). (Zhenyu) v1->v2: - name as cursor_x_hot/cursor_y_hot. (Zhenyu) - use i915_reg_t definition instead of magic numbers. (Zhenyu) Signed-off-by: Tina Zhang <tina.zh...@intel.com> Cc: Zhenyu Wang <zhen...@linux.intel.com> Cc: Zhi Wang <zhi.a.w...@intel.com> Cc: Gerd

[Intel-gfx] [PATCH v3] drm/i915/gvt: Deliver guest cursor hotspot info

2018-04-15 Thread Tina Zhang
v1->v2: - name as cursor_x_hot/cursor_y_hot. (Zhenyu) - use i915_reg_t definition instead of magic numbers. (Zhenyu) Signed-off-by: Tina Zhang <tina.zh...@intel.com> Cc: Zhenyu Wang <zhen...@linux.intel.com> Cc: Zhi Wang <zhi.a.w...@intel.com> Cc: Gerd Hoffmann <kra...@re

[Intel-gfx] [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&

[Intel-gfx] [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

[Intel-gfx] [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

[Intel-gfx] [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&

[Intel-gfx] [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

[Intel-gfx] [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>

[Intel-gfx] [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

[Intel-gfx] [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

[Intel-gfx] [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/

[Intel-gfx] [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

[Intel-gfx] [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>

[Intel-gfx] [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

[Intel-gfx] [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

[Intel-gfx] [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/

[Intel-gfx] [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&

[Intel-gfx] [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 (

[Intel-gfx] [PATCH v4] drm/i915: Object w/o backing stroage is banned by -ENXIO

2017-11-12 Thread Tina Zhang
ject to just mention objects w/o backing storage, instead of "GEM proxy". (Joonas) Signed-off-by: Tina Zhang <tina.zh...@intel.com> Reviewed-by: Chris Wilson <ch...@chris-wilson.co.uk> v1 --- drivers/gpu/drm/i915/i915_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 dele

[Intel-gfx] [PATCH v3] drm/i915: Introduce GEM proxy

2017-11-12 Thread Tina Zhang
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 Zhang <tina.zh...@intel.com> Reviewed-by: Joonas Lahtinen <joonas

[Intel-gfx] [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>

[Intel-gfx] [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

[Intel-gfx] [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.

[Intel-gfx] [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/

[Intel-gfx] [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&

[Intel-gfx] [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

[Intel-gfx] [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

[Intel-gfx] [PATCH v3] drm/i915: Object w/o backing stroage is banned by -ENXIO

2017-11-06 Thread Tina Zhang
e, instead of "GEM proxy". (Joonas) Reviewed-by: Chris Wilson <ch...@chris-wilson.co.uk> Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/i915_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_gem.c b

[Intel-gfx] [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&

[Intel-gfx] [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

[Intel-gfx] [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

[Intel-gfx] [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

[Intel-gfx] [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

[Intel-gfx] [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

[Intel-gfx] [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/

[Intel-gfx] [PATCH v2 1/2] drm/i915: Introduce GEM proxy

2017-11-01 Thread Tina Zhang
ing 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 Zhang <tina.zh...@intel.com> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Reviewed-by: Chr

[Intel-gfx] [PATCH v2 2/2] drm/i915: Object w/o backing stroage is banned by -ENXIO

2017-11-01 Thread Tina Zhang
-ENXIO should be returned when operations are banned from changing backing storage of objects without backing storage. v2: - update the patch description and subject to just mention objects w/o backing storage, instead of "GEM proxy". (Joonas) Signed-off-by: Tina Zhang <tina.zh

[Intel-gfx] [PATCH v2 0/2] drm/i915: Introduce GEM proxy

2017-11-01 Thread Tina Zhang
n 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/d

[Intel-gfx] [PATCH v2 0/2] drm/i915: Introduce GEM proxy

2017-11-01 Thread Tina Zhang
n 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/d

[Intel-gfx] [PATCH v1 2/2] drm/i915: Changing GEM proxy backing storage is banned with ENXIO

2017-10-16 Thread Tina Zhang
GEM proxy is a kind of GEM object whose backing storage cannot be changed by host i915 driver. -ENXIO should be returned when operations are banned from changing backing storage of this kind of GEM object. Signed-off-by: Tina Zhang <tina.zh...@intel.com> Cc: Joonas Lahtinen <joo

[Intel-gfx] [PATCH v1 1/2] drm/i915: Introduce GEM proxy

2017-10-16 Thread Tina Zhang
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 Zhang <tina.zh...@intel.com> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Cc: Danie

[Intel-gfx] [PATCH v1 0/2] drm/i915: Introduce GEM proxy

2017-10-16 Thread Tina Zhang
(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

[Intel-gfx] [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

[Intel-gfx] [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

[Intel-gfx] [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

[Intel-gfx] [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&

[Intel-gfx] [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

[Intel-gfx] [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&

[Intel-gfx] [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

[Intel-gfx] [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

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

2017-08-18 Thread Tina Zhang
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.com>

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

2017-08-18 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...@int

[Intel-gfx] [PATCH v14 7/7] drm/i915/gvt: Dmabuf support for GVT-g

2017-08-18 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>

[Intel-gfx] [PATCH v14 4/7] drm/i915/gvt: Add opregion support

2017-08-18 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> diff --git a/drivers/gpu/drm/i915/gvt/hypercall.h b/dri

[Intel-gfx] [PATCH v14 6/7] drm/i915: Introduce GEM proxy

2017-08-18 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

[Intel-gfx] [PATCH v14 1/7] drm/i915/gvt: Add framebuffer decoder support

2017-08-18 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> diff --git a/drivers/gpu/drm/i915/gvt/Makefile b/drivers/gpu/drm/i915/gvt/Makefile index f5486cb9..019d596 100644 --- a/drivers/gpu/

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

2017-08-18 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&

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

2017-08-18 Thread Tina Zhang
dering or other operations. This patch set can be tried with the following example: https://github.com/01org/Igvtg-qemu branch: topic/dmabuf 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

[Intel-gfx] [PATCH v9 2/3] drm/i915: Enable guest i915 full ppgtt functionality

2017-08-09 Thread Tina Zhang
i915 full ppgtt functionality". (Tina) Change since v3: - Add some comments about pvinfo caps and version. (Joonas) Change since v4: - Tested by Tina Zhang. Change since v5: - Add limitation about supporting 32bit full ppgtt. Change since v6: - Change the fallback to 48bit full ppgtt if i915.ppg

[Intel-gfx] [PATCH v8 1/3] drm/i915/gvt: Add shadow context descriptor updating

2017-08-09 Thread Tina Zhang
riptor update its addressing mode on demand. This patch fixes GPU HANG issue which happends after changing the grub parameter i915.enable_ppgtt form 0x01 to 0x03 or vice versa and then rebooting the guest. Signed-off-by: Tina Zhang <tina.zh...@intel.com> Signed-off-by: Kechen Lu <kechen...@i

[Intel-gfx] [PATCH v8 0/3] drm/i915/gvt: Enable guest i915 48bit full ppgtt support

2017-08-09 Thread Tina Zhang
This patch set is used to enable guest i915 48bit full ppgtt support. v8: 1) CC intel-gfx on i915 change. (Zhenyu) v7: 1) Include a new patch for fixing reboot GPU hang issue. (Kechen) Kechen Lu (1): drm/i915/gvt: Add shadow context descriptor updating Tina Zhang (2): drm/i915/gvt: Fix

[Intel-gfx] [PATCH v8 2/3] drm/i915/gvt: Fix guest i915 full ppgtt blocking issue

2017-08-09 Thread Tina Zhang
Tina) Changes since v3: - Rebase to the latest branch. Changes since v4: - Tested by Tina Zhang. Changes since v5: - Rebase to the latest branch. Signed-off-by: Tina Zhang <tina.zh...@intel.com> diff --git a/drivers/gpu/drm/i915/gvt/gtt.c b/drivers/gpu/drm/i915/gvt/gtt.c index 6166e34..27

[Intel-gfx] [PATCH v8 3/3] drm/i915: Enable guest i915 full ppgtt functionality

2017-08-09 Thread Tina Zhang
i915 full ppgtt functionality". (Tina) Change since v3: - Add some comments about pvinfo caps and version. (Joonas) Change since v4: - Tested by Tina Zhang. Change since v5: - Add limitation about supporting 32bit full ppgtt. Change since v6: - Change the fallback to 48bit full ppgtt if i915.ppg

[Intel-gfx] [PATCH v13 7/7] drm/i915/gvt: Dmabuf support for GVT-g

2017-07-25 Thread Tina Zhang
This patch introduces a guest's framebuffer sharing mechanism based on dma-buf subsystem. With this sharing mechanism, guest's framebuffer can be shared between guest VM and host. Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/gvt/Makefile | 2 +- drive

[Intel-gfx] [PATCH v13 6/7] drm/i915: Introduce GEM proxy

2017-07-25 Thread Tina Zhang
is introduced to ban host from changing the backing storage of GEM proxy. Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/i915_gem.c| 24 +++- drivers/gpu/drm/i915/i915_gem_object.h | 7 +++ drivers/gpu/drm/i915/i915_gem_tiling.

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

2017-07-25 Thread Tina Zhang
. Host User mode can check the value of fd and to see if it needs to create 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> --- include/uapi/linux/vfio.h | 28 1 file chang

[Intel-gfx] [PATCH v13 4/7] drm/i915/gvt: Add opregion support

2017-07-25 Thread Tina Zhang
ed-off-by: Xiaoguang Chen <xiaoguang.c...@intel.com> Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/gvt/hypercall.h | 1 + drivers/gpu/drm/i915/gvt/kvmgt.c | 109 ++- drivers/gpu/drm/i915/gvt/mpt.h | 15 + driver

[Intel-gfx] [PATCH v13 3/7] drm/i915/gvt: Add RGB 64-bit 16:16:16:16 float format support

2017-07-25 Thread Tina Zhang
t;xiaoguang.c...@intel.com> Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/gvt/fb_decoder.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/i915/gvt/fb_decoder.c b/drivers/gpu/drm/i915/gvt/fb_decoder.c index 2bd5b3c..739ca81 100644 --- a/dr

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

2017-07-25 Thread Tina Zhang
The RGB 64-bit 16:16:16:16 float pixel format is needed by windows guest VM. This patch is to introduce the format to drm. v1: Suggested by Ville to submit this patch to dri-devel. Signed-off-by: Xiaoguang Chen <xiaoguang.c...@intel.com> Signed-off-by: Tina Zhang <tina.zh...@

[Intel-gfx] [PATCH v13 1/7] drm/i915/gvt: Add framebuffer decoder support

2017-07-25 Thread Tina Zhang
Framebuffer decoder returns guest framebuffer information. Guest framebuffer includes primary, cursor and sprite plane. Signed-off-by: Xiaoguang Chen <xiaoguang.c...@intel.com> Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/gvt/Makefile | 3 +- dri

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

2017-07-25 Thread Tina Zhang
his dma-buf fd to do render or other operations. 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 format support drm/i915/gvt: Add opregion support vfio: ABI for mdev display dma-buf

[Intel-gfx] [PATCH v12 6/6] drm/i915: Introduce GEM proxy

2017-07-19 Thread Tina Zhang
Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/i915_gem.c| 26 +- drivers/gpu/drm/i915/i915_gem_object.h | 9 + drivers/gpu/drm/i915/i915_gem_tiling.c | 5 + 3 files changed, 39 insertions(+), 1 deletion(-) diff

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

2017-07-19 Thread Tina Zhang
. Host User mode can check the value of fd and to see if it needs to create 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> --- include/uapi/linux/vfio.h | 28 1 file chang

[Intel-gfx] [PATCH v12 4/6] drm/i915/gvt: add opregion support

2017-07-19 Thread Tina Zhang
ed-off-by: Xiaoguang Chen <xiaoguang.c...@intel.com> Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/gvt/hypercall.h | 1 + drivers/gpu/drm/i915/gvt/kvmgt.c | 109 ++- drivers/gpu/drm/i915/gvt/mpt.h | 15 + driver

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

2017-07-19 Thread Tina Zhang
The RGB 64-bit 16:16:16:16 float pixel format is needed by windows guest VM. This patch is to introduce the format to drm. v1: Suggested by Ville to submit this patch to dri-devel. Signed-off-by: Xiaoguang Chen <xiaoguang.c...@intel.com> Signed-off-by: Tina Zhang <tina.zh...@

[Intel-gfx] [PATCH v12 3/6] drm/i915/gvt: Add RGB 64-bit 16:16:16:16 float format support

2017-07-19 Thread Tina Zhang
t;xiaoguang.c...@intel.com> Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/gvt/fb_decoder.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/i915/gvt/fb_decoder.c b/drivers/gpu/drm/i915/gvt/fb_decoder.c index 2bd5b3c..739ca81 100644 --- a/dr

[Intel-gfx] [PATCH v12 1/6] drm/i915/gvt: Add framebuffer decoder support

2017-07-19 Thread Tina Zhang
Framebuffer decoder returns guest framebuffer information. Guest framebuffer includes primary, cursor and sprite plane. Signed-off-by: Xiaoguang Chen <xiaoguang.c...@intel.com> Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/gvt/Makefile | 3 +- dri

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

2017-07-19 Thread Tina Zhang
iptor to user space. And user can use this dma-buf fd to do render or other operations. 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 support drm/i915/gvt: add opre

[Intel-gfx] [PATCH v12 1/6] drm/i915/gvt: Add framebuffer decoder support

2017-07-19 Thread Tina Zhang
Framebuffer decoder returns guest framebuffer information. Guest framebuffer includes primary, cursor and sprite plane. Signed-off-by: Xiaoguang Chen <xiaoguang.c...@intel.com> Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/gvt/Makefile | 3 +- dri

[Intel-gfx] [PATCH v12 3/6] drm/i915/gvt: Add RGB 64-bit 16:16:16:16 float format support

2017-07-19 Thread Tina Zhang
t;xiaoguang.c...@intel.com> Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/gvt/fb_decoder.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/i915/gvt/fb_decoder.c b/drivers/gpu/drm/i915/gvt/fb_decoder.c index 2bd5b3c..739ca81 100644 --- a/dr

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

2017-07-19 Thread Tina Zhang
iptor to user space. And user can use this dma-buf fd to do render or other operations. 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 support drm/i915/gvt: add opre

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

2017-07-19 Thread Tina Zhang
The RGB 64-bit 16:16:16:16 float pixel format is needed by windows guest VM. This patch is to introduce the format to drm. v1: Suggested by Ville to submit this patch to dri-devel. Signed-off-by: Xiaoguang Chen <xiaoguang.c...@intel.com> Signed-off-by: Tina Zhang <tina.zh...@

[Intel-gfx] [PATCH v12 3/6] drm/i915/gvt: Add RGB 64-bit 16:16:16:16 float format support

2017-07-19 Thread Tina Zhang
t;xiaoguang.c...@intel.com> Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/gvt/fb_decoder.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/i915/gvt/fb_decoder.c b/drivers/gpu/drm/i915/gvt/fb_decoder.c index 2bd5b3c..739ca81 100644 --- a/dr

[Intel-gfx] [PATCH v12 1/6] drm/i915/gvt: Add framebuffer decoder support

2017-07-19 Thread Tina Zhang
Framebuffer decoder returns guest framebuffer information. Guest framebuffer includes primary, cursor and sprite plane. Signed-off-by: Xiaoguang Chen <xiaoguang.c...@intel.com> Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/gvt/Makefile | 3 +- dri

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

2017-07-19 Thread Tina Zhang
iptor to user space. And user can use this dma-buf fd to do render or other operations. 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 support drm/i915/gvt: add opre

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

2017-07-19 Thread Tina Zhang
The RGB 64-bit 16:16:16:16 float pixel format is needed by windows guest VM. This patch is to introduce the format to drm. v1: Suggested by Ville to submit this patch to dri-devel. Signed-off-by: Xiaoguang Chen <xiaoguang.c...@intel.com> Signed-off-by: Tina Zhang <tina.zh...@

[Intel-gfx] [PATCH v2 3/3] drm/i915/gvt: Add RGB 64-bit 16:16:16:16 float format support

2017-07-16 Thread Tina Zhang
t;xiaoguang.c...@intel.com> Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/gvt/fb_decoder.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/i915/gvt/fb_decoder.c b/drivers/gpu/drm/i915/gvt/fb_decoder.c index 2bd5b3c..739ca81 100644 --- a/dr

[Intel-gfx] [PATCH v2 2/3] drm: Introduce RGB 64-bit 16:16:16:16 float format

2017-07-16 Thread Tina Zhang
The RGB 64-bit 16:16:16:16 float pixel format is needed by windows guest VM. This patch is to introduce the format to drm. v1: Suggested by Ville to submit this patch to dri-devel. Signed-off-by: Xiaoguang Chen <xiaoguang.c...@intel.com> Signed-off-by: Tina Zhang <tina.zh...@

[Intel-gfx] [PATCH v2 1/3] drm/i915/gvt: Add framebuffer decoder support

2017-07-16 Thread Tina Zhang
Framebuffer decoder returns guest framebuffer information. Guest framebuffer includes primary, cursor and sprite plane. Signed-off-by: Xiaoguang Chen <xiaoguang.c...@intel.com> Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- drivers/gpu/drm/i915/gvt/Makefile | 3 +- dri

[Intel-gfx] [PATCH v2 0/3] drm/i915/gvt: Introduce framebuffer decoder

2017-07-16 Thread Tina Zhang
Framebuffer decoder is used by gvt device model to get the display plane information, which can be used for local and spice remote display. This patch set is used to introduce the framebuffer decoder to gvt. v1->v2: Rebase to the latest staging branch. Tina Zhang (3): drm/i915/gvt:

  1   2   >