public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Tina Zhang <tina.zhang@intel.com>,
	intel-gfx@lists.freedesktop.org,
	intel-gvt-dev@lists.freedesktop.org,
	dri-devel@lists.freedesktop.org, ville.syrjala@linux.intel.com,
	zhenyuw@linux.intel.com, zhiyuan.lv@intel.com,
	zhi.a.wang@intel.com, alex.williamson@redhat.com,
	chris@chris-wilson.co.uk, daniel@ffwll.ch, kwankhede@nvidia.com,
	kevin.tian@intel.com
Subject: Re: [PATCH v13 5/7] vfio: ABI for mdev display dma-buf operation
Date: Fri, 28 Jul 2017 10:27:27 +0200	[thread overview]
Message-ID: <1501230447.10943.9.camel@redhat.com> (raw)
In-Reply-To: <1500974900-31030-6-git-send-email-tina.zhang@intel.com>

  Hi,

> +/**
> + * VFIO_DEVICE_QUERY_GFX_PLANE - _IOW(VFIO_TYPE, VFIO_BASE + 14,
> struct vfio_device_query_gfx_plane)
> + *
> + * Set the drm_plane_type and retrieve information about the gfx
> plane.
+ *
> + * Return: 0 on success, -errno on failure.

I think this should be more verbose, especially documenting that the
"guest driver didn't initialize the display yet" case isn't and error
and fields should be set to zero then (as discussed on the list).

> + */
> +struct vfio_device_gfx_plane_info {
> +	__u32 argsz;
> +	__u32 flags;
> +	/* in */
> +	__u32 drm_plane_type;	/* type of plane:
> DRM_PLANE_TYPE_* */
> +	/* out */
> +	__u32 drm_format;	/* drm format of plane */
> +	__u64 drm_format_mod;   /* tiled mode */
> +	__u32 width;	/* width of plane */
> +	__u32 height;	/* height of plane */
> +	__u32 stride;	/* stride of plane */
> +	__u32 size;	/* size of plane in bytes, align on
> page*/
> +	__u32 x_pos;	/* horizontal position of cursor plane,
> upper left corner in pixels */
> +	__u32 y_pos;	/* vertical position of cursor plane,
> upper left corner in lines*/
> +	__u32 region_index;
> +	__s32 fd;	/* dma-buf fd */
> +};

Looks good to me.

Unfortunately I havn't been able to test the whole series yet due to
being busy with other stuff, and I'm about to leave for my summer
vacation.  Will be back online on Aug 21st.

cheers,
  Gerd


_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-07-28  8:27 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-25  9:28 [PATCH v13 0/7] drm/i915/gvt: Dma-buf support for GVT-g Tina Zhang
2017-07-25  9:28 ` [PATCH v13 1/7] drm/i915/gvt: Add framebuffer decoder support Tina Zhang
2017-07-25  9:28 ` [PATCH v13 2/7] drm: Introduce RGB 64-bit 16:16:16:16 float format Tina Zhang
2017-08-15 14:49   ` Daniel Vetter
2017-08-16  3:16     ` Zhang, Tina
2017-08-16  7:31       ` Daniel Vetter
2017-07-25  9:28 ` [PATCH v13 3/7] drm/i915/gvt: Add RGB 64-bit 16:16:16:16 float format support Tina Zhang
2017-07-25  9:28 ` [PATCH v13 4/7] drm/i915/gvt: Add opregion support Tina Zhang
2017-07-25  9:28 ` [PATCH v13 5/7] vfio: ABI for mdev display dma-buf operation Tina Zhang
2017-07-28  8:27   ` Gerd Hoffmann [this message]
2017-07-31  0:31     ` Zhang, Tina
2017-08-01 21:18   ` Alex Williamson
2017-08-02 15:56     ` Kirti Wankhede
2017-08-03  3:17     ` Zhang, Tina
2017-08-03  3:37       ` Alex Williamson
2017-08-03  7:08         ` Zhang, Tina
2017-08-03 14:42           ` Alex Williamson
2017-08-07  3:22             ` Zhang, Tina
2017-08-07  8:11             ` Zhang, Tina
2017-08-07 17:43               ` Alex Williamson
2017-08-08  8:48                 ` Kirti Wankhede
2017-08-08 18:07                   ` Alex Williamson
2017-08-09 13:57                     ` Kirti Wankhede
2017-08-09  8:31                 ` Zhang, Tina
2017-08-09 16:57                   ` Alex Williamson
2017-08-22  8:24                     ` Gerd Hoffmann
2017-07-25  9:28 ` [PATCH v13 6/7] drm/i915: Introduce GEM proxy Tina Zhang
2017-08-07  8:24   ` [Intel-gfx] " Joonas Lahtinen
2017-08-09  6:25     ` Zhang, Tina
2017-07-25  9:28 ` [PATCH v13 7/7] drm/i915/gvt: Dmabuf support for GVT-g Tina Zhang
2017-07-25  9:55 ` ✗ Fi.CI.BAT: warning for drm/i915/gvt: Dma-buf " Patchwork

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=1501230447.10943.9.camel@redhat.com \
    --to=kraxel@redhat.com \
    --cc=alex.williamson@redhat.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-gvt-dev@lists.freedesktop.org \
    --cc=kevin.tian@intel.com \
    --cc=kwankhede@nvidia.com \
    --cc=tina.zhang@intel.com \
    --cc=ville.syrjala@linux.intel.com \
    --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