Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1685471
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | "Zhang, Tina" <tina.zhang@intel.com> |
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH v10] vfio: ABI for mdev display dma-buf operation |
| Date | Wed, 12 Jul 2017 04:50:02 +0200 |
| Message-ID | <u2fSW-2cb-3@gated-at.bofh.it> (permalink) |
| References | <u017H-3ZA-17@gated-at.bofh.it> <u1WwW-74G-23@gated-at.bofh.it> |
| X-Original-To | Gerd Hoffmann <kraxel@redhat.com>, "alex.williamson@redhat.com" <alex.williamson@redhat.com>, "chris@chris-wilson.co.uk" <chris@chris-wilson.co.uk>, "zhenyuw@linux.intel.com" <zhenyuw@linux.intel.com>, "Lv, Zhiyuan" <zhiyuan.lv@intel.com>, "Wang, Zhi A" <zhi.a.wang@intel.com>, "Tian, Kevin" <kevin.tian@intel.com>, "daniel@ffwll.ch" <daniel@ffwll.ch>, "kwankhede@nvidia.com" <kwankhede@nvidia.com> |
| X-Extloop1 | 1 |
| X-Ironport-Av | E=Sophos;i="5.40,347,1496127600"; d="scan'208";a="126030574" |
| Thread-Topic | [PATCH v10] vfio: ABI for mdev display dma-buf operation |
| Thread-Index | AQHS9d72/JOqiz5kqkOIoMWmOT5rIKJNpiqAgAHcaTA= |
| Accept-Language | en-US |
| Content-Language | en-US |
| Dlp-Product | dlpe-windows |
| Dlp-Version | 10.0.102.7 |
| Dlp-Reaction | no-action |
| X-Originating-IP | [10.239.127.40] |
| Content-Type | text/plain; charset="utf-8" |
| Content-Transfer-Encoding | base64 |
| MIME-Version | 1.0 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 35 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | "intel-gfx@lists.freedesktop.org" <intel-gfx@lists.freedesktop.org>, "intel-gvt-dev@lists.freedesktop.org" <intel-gvt-dev@lists.freedesktop.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> |
| X-Original-Date | Wed, 12 Jul 2017 02:43:46 +0000 |
| X-Original-Message-ID | <237F54289DF84E4997F34151298ABEBC7C57BFA1@SHSMSX101.ccr.corp.intel.com> |
| X-Original-References | <1499293795-6265-1-git-send-email-tina.zhang@intel.com> <1499753263.8257.1.camel@redhat.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1685471 |
Show key headers only | View raw
> -----Original Message-----
> From: Gerd Hoffmann [mailto:kraxel@redhat.com]
> Sent: Tuesday, July 11, 2017 2:08 PM
> To: Zhang, Tina <tina.zhang@intel.com>; alex.williamson@redhat.com;
> chris@chris-wilson.co.uk; zhenyuw@linux.intel.com; Lv, Zhiyuan
> <zhiyuan.lv@intel.com>; Wang, Zhi A <zhi.a.wang@intel.com>; Tian, Kevin
> <kevin.tian@intel.com>; daniel@ffwll.ch; kwankhede@nvidia.com
> Cc: intel-gfx@lists.freedesktop.org; intel-gvt-dev@lists.freedesktop.org; linux-
> kernel@vger.kernel.org
> Subject: Re: [PATCH v10] vfio: ABI for mdev display dma-buf operation
>
> > +/**
> > + * VFIO_DEVICE_QUERY_GFX_PLANE - _IOW(VFIO_TYPE, VFIO_BASE + 14,
> > + * struct vfio_device_query_gfx_plane)
> > + * Return: 0 on success, -errno on failure.
> > + */
> > +
> > +struct vfio_device_gfx_plane_info {
> > + __u64 start;
> > + __u64 drm_format_mod;
> > + __u32 drm_format;
> > + __u32 width;
> > + __u32 height;
> > + __u32 stride;
> > + __u32 size;
> > + __u32 x_pos;
> > + __u32 y_pos;
> > +};
>
> Do we want keep that as separate struct? Given we now have only a single
> struct using that as sub-struct it looks pointless, at least from a API point of view.
> Does the driver use the struct internally?
Driver has another struct which is super-set of these fields. Yes, we can move all these fields into struct vfio_device_query_gfx_plane. Also, we can remove some of these fields which may seem useless for user mode.
Thanks.
Tina
>
> > +
> > +struct vfio_device_query_gfx_plane {
> > + __u32 argsz;
> > + __u32 flags;
> > + struct vfio_device_gfx_plane_info plane_info;
> > + __u32 plane_type;
> > + __s32 fd; /* dma-buf fd */
> > + __u32 plane_id;
>
> What is plane_id?
I cannot figure out the mean of plane_id either. If I remember correctly, it was asked by region usage. Of course, if no one needs it, I'd like to remove it.
Thanks.
Tina
>
> cheers,
> Gerd
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v10] vfio: ABI for mdev display dma-buf operation Tina Zhang <tina.zhang@intel.com> - 2017-07-06 00:40 +0200
Re: [PATCH v10] vfio: ABI for mdev display dma-buf operation Kirti Wankhede <kwankhede@nvidia.com> - 2017-07-06 16:10 +0200
Re: [PATCH v10] vfio: ABI for mdev display dma-buf operation Gerd Hoffmann <kraxel@redhat.com> - 2017-07-11 08:20 +0200
Re: [PATCH v10] vfio: ABI for mdev display dma-buf operation Daniel Vetter <daniel@ffwll.ch> - 2017-07-11 11:20 +0200
RE: [PATCH v10] vfio: ABI for mdev display dma-buf operation "Zhang, Tina" <tina.zhang@intel.com> - 2017-07-12 04:40 +0200
Re: [PATCH v10] vfio: ABI for mdev display dma-buf operation Daniel Vetter <daniel@ffwll.ch> - 2017-07-12 09:50 +0200
Re: [PATCH v10] vfio: ABI for mdev display dma-buf operation Kirti Wankhede <kwankhede@nvidia.com> - 2017-07-12 14:50 +0200
RE: [PATCH v10] vfio: ABI for mdev display dma-buf operation "Zhang, Tina" <tina.zhang@intel.com> - 2017-07-14 03:40 +0200
Re: [PATCH v10] vfio: ABI for mdev display dma-buf operation Kirti Wankhede <kwankhede@nvidia.com> - 2017-07-14 12:20 +0200
Re: [PATCH v10] vfio: ABI for mdev display dma-buf operation Gerd Hoffmann <kraxel@redhat.com> - 2017-07-14 14:10 +0200
Re: [PATCH v10] vfio: ABI for mdev display dma-buf operation Kirti Wankhede <kwankhede@nvidia.com> - 2017-07-14 14:20 +0200
Re: [PATCH v10] vfio: ABI for mdev display dma-buf operation Gerd Hoffmann <kraxel@redhat.com> - 2017-07-17 13:10 +0200
Re: [PATCH v10] vfio: ABI for mdev display dma-buf operation Gerd Hoffmann <kraxel@redhat.com> - 2017-07-14 12:10 +0200
Re: [PATCH v10] vfio: ABI for mdev display dma-buf operation Kirti Wankhede <kwankhede@nvidia.com> - 2017-07-14 12:20 +0200
Re: [PATCH v10] vfio: ABI for mdev display dma-buf operation Gerd Hoffmann <kraxel@redhat.com> - 2017-07-14 14:20 +0200
Re: [PATCH v10] vfio: ABI for mdev display dma-buf operation Zhenyu Wang <zhenyuw@linux.intel.com> - 2017-07-12 05:30 +0200
RE: [PATCH v10] vfio: ABI for mdev display dma-buf operation "Zhang, Tina" <tina.zhang@intel.com> - 2017-07-12 04:30 +0200
Re: [PATCH v10] vfio: ABI for mdev display dma-buf operation Gerd Hoffmann <kraxel@redhat.com> - 2017-07-11 08:10 +0200
RE: [PATCH v10] vfio: ABI for mdev display dma-buf operation "Zhang, Tina" <tina.zhang@intel.com> - 2017-07-12 04:50 +0200
Re: [PATCH v10] vfio: ABI for mdev display dma-buf operation Daniel Vetter <daniel@ffwll.ch> - 2017-07-11 11:20 +0200
RE: [PATCH v10] vfio: ABI for mdev display dma-buf operation "Zhang, Tina" <tina.zhang@intel.com> - 2017-07-12 05:20 +0200
csiph-web