From: "Zhang, Tina" <tina.zhang@intel.com>
To: Zhenyu Wang <zhenyuw@linux.intel.com>, Gerd Hoffmann <kraxel@redhat.com>
Cc: "Tian, Kevin" <kevin.tian@intel.com>,
"alex.williamson@redhat.com" <alex.williamson@redhat.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"joonas.lahtinen@linux.intel.com"
<joonas.lahtinen@linux.intel.com>,
"Wang, Zhi A" <zhi.a.wang@intel.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"kwankhede@nvidia.com" <kwankhede@nvidia.com>,
"Lv, Zhiyuan" <zhiyuan.lv@intel.com>,
"daniel@ffwll.ch" <daniel@ffwll.ch>,
"chris@chris-wilson.co.uk" <chris@chris-wilson.co.uk>,
"intel-gvt-dev@lists.freedesktop.org"
<intel-gvt-dev@lists.freedesktop.org>,
"Yuan, Hang" <hang.yuan@intel.com>
Subject: RE: [PATCH v18 0/6] drm/i915/gvt: Dma-buf support for GVT-g
Date: Thu, 23 Nov 2017 07:51:28 +0000 [thread overview]
Message-ID: <237F54289DF84E4997F34151298ABEBC7C63AF43@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <20171123061232.7kfquhnlkdctfsdp@zhen-hp.sh.intel.com>
> -----Original Message-----
> From: intel-gvt-dev [mailto:intel-gvt-dev-bounces@lists.freedesktop.org] On
> Behalf Of Zhenyu Wang
> Sent: Thursday, November 23, 2017 2:13 PM
> To: Gerd Hoffmann <kraxel@redhat.com>
> Cc: Tian, Kevin <kevin.tian@intel.com>; alex.williamson@redhat.com; intel-
> gfx@lists.freedesktop.org; joonas.lahtinen@linux.intel.com; Wang, Zhi A
> <zhi.a.wang@intel.com>; linux-kernel@vger.kernel.org;
> zhenyuw@linux.intel.com; Zhang, Tina <tina.zhang@intel.com>;
> kwankhede@nvidia.com; Lv, Zhiyuan <zhiyuan.lv@intel.com>; daniel@ffwll.ch;
> chris@chris-wilson.co.uk; intel-gvt-dev@lists.freedesktop.org; Yuan, Hang
> <hang.yuan@intel.com>
> Subject: Re: [PATCH v18 0/6] drm/i915/gvt: Dma-buf support for GVT-g
>
> On 2017.11.15 11:49:00 +0100, Gerd Hoffmann wrote:
> > On Wed, Nov 15, 2017 at 05:11:49PM +0800, Tina Zhang wrote:
> > > v17->v18:
> > > 1) unmap vgpu's opregion when destroying vgpu.
> > > 2) update comments for VFIO_DEVICE_GET_GFX_DMABUF. (Alex)
> >
> > > This patch set adds the dma-buf support for intel GVT-g.
> > >
> > > dma-buf is an uniform mechanism to share DMA buffers across
> > > different devices and subsystems. dma-buf for intel GVT-g is mainly
> > > used to share the vgpu's framebuffer to userspace to leverage
> > > userspace graphics stacks to render the framebuffer to the display monitor.
> > >
> > > The main idea is that we create a gem object and 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
> > >
> > > A topic branch with the latest patch set is:
> > > https://github.com/intel/gvt-linux.git branch: topic/dmabuf
> >
> > Tested-by: Gerd Hoffmann <kraxel@redhat.com>
> >
>
> After debugging with Tina on one left race that fixed by
> https://lists.freedesktop.org/archives/intel-gvt-dev/2017-
> November/002505.html
The next version of this patch set will include this patch.
Thanks.
BR,
Tina
>
> I still need below qemu fix for proper cursor handling, otherwise qemu just
> crashed when I click in my terminal program which hides cursor then.
>
> diff --git a/hw/vfio/display.c b/hw/vfio/display.c index
> e500ec2cb1..d9a044b080 100644
> --- a/hw/vfio/display.c
> +++ b/hw/vfio/display.c
> @@ -169,8 +169,9 @@ static void vfio_display_dmabuf_update(void *opaque)
> cursor = vfio_display_get_dmabuf(vdev, DRM_PLANE_TYPE_CURSOR);
> if (vdev->cursor != cursor) {
> vdev->cursor = cursor;
> - dpy_gl_cursor_dmabuf(vdev->display_con,
> - &cursor->buf);
> + if (cursor)
> + dpy_gl_cursor_dmabuf(vdev->display_con,
> + &cursor->buf);
> free_bufs = true;
> }
> if (cursor != NULL) {
>
> And with these it seems pretty fine now that I'll queue them up for -next pull.
>
> thanks
>
> --
> Open Source Technology Center, Intel ltd.
>
> $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
prev parent reply other threads:[~2017-11-23 7:51 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-15 9:11 Tina Zhang
2017-11-15 9:11 ` [PATCH v18 1/6] drm/i915/gvt: Add framebuffer decoder support Tina Zhang
2017-11-15 9:11 ` [PATCH v18 2/6] drm: Introduce RGB 64-bit 16:16:16:16 float format Tina Zhang
2017-11-15 9:11 ` [PATCH v18 3/6] drm/i915/gvt: Add " Tina Zhang
2017-11-15 9:11 ` [PATCH v18 4/6] drm/i915/gvt: Add opregion support Tina Zhang
2017-11-15 9:11 ` [PATCH v18 5/6] vfio: ABI for mdev display dma-buf operation Tina Zhang
2017-11-15 10:47 ` Gerd Hoffmann
2017-11-15 18:48 ` Alex Williamson
2017-11-16 3:21 ` Zhenyu Wang
2017-11-16 4:11 ` Alex Williamson
2017-11-18 15:30 ` Alex Williamson
2017-11-18 17:59 ` Kirti Wankhede
2017-11-18 18:13 ` Alex Williamson
2017-11-15 9:11 ` [PATCH v18 6/6] drm/i915/gvt: Dmabuf support for GVT-g Tina Zhang
2017-11-15 10:49 ` [PATCH v18 0/6] drm/i915/gvt: Dma-buf " Gerd Hoffmann
2017-11-15 22:48 ` Alex Williamson
2017-11-16 9:33 ` Gerd Hoffmann
2017-11-23 6:12 ` Zhenyu Wang
2017-11-23 7:51 ` Zhang, Tina [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=237F54289DF84E4997F34151298ABEBC7C63AF43@SHSMSX101.ccr.corp.intel.com \
--to=tina.zhang@intel.com \
--cc=alex.williamson@redhat.com \
--cc=chris@chris-wilson.co.uk \
--cc=daniel@ffwll.ch \
--cc=hang.yuan@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-gvt-dev@lists.freedesktop.org \
--cc=joonas.lahtinen@linux.intel.com \
--cc=kevin.tian@intel.com \
--cc=kraxel@redhat.com \
--cc=kwankhede@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zhenyuw@linux.intel.com \
--cc=zhi.a.wang@intel.com \
--cc=zhiyuan.lv@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®