[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH v4 15/15] drm/xen: Explicitly disable automatic sending of vblank event
- To: Thomas Zimmermann <tzimmermann@xxxxxxx>, "airlied@xxxxxxxx" <airlied@xxxxxxxx>, "daniel@xxxxxxxx" <daniel@xxxxxxxx>, "kraxel@xxxxxxxxxx" <kraxel@xxxxxxxxxx>, "maarten.lankhorst@xxxxxxxxxxxxxxx" <maarten.lankhorst@xxxxxxxxxxxxxxx>, "mripard@xxxxxxxxxx" <mripard@xxxxxxxxxx>, "hdegoede@xxxxxxxxxx" <hdegoede@xxxxxxxxxx>, "david@xxxxxxxxxxxxxx" <david@xxxxxxxxxxxxxx>, "noralf@xxxxxxxxxxx" <noralf@xxxxxxxxxxx>, "sean@xxxxxxxxxx" <sean@xxxxxxxxxx>, "sam@xxxxxxxxxxxx" <sam@xxxxxxxxxxxx>, "laurent.pinchart@xxxxxxxxxxxxxxxx" <laurent.pinchart@xxxxxxxxxxxxxxxx>, "emil.velikov@xxxxxxxxxxxxx" <emil.velikov@xxxxxxxxxxxxx>
- From: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
- Date: Mon, 27 Jan 2020 09:53:43 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CMaM88l1fKCgcP4KVh6PjyYClz8fp+jtBabRhkdUgKU=; b=VvWupL8BzsjdgsAM4TnUCYAhFUdhDQ5Tfd4/gJnVPL9GME6J30LehOakz0iXhL+OoC82eo4Ln0K+GtHK/FqUT9Gl1AOKIIfP+QnMjBGNOqiFv3Zllng3iKx7c+InTxuU5pXJ7bNTqxh1h7KS5CNgehM8XofsrtTux8aLI9jHdrhVMwxlnfaBsSvWLB9hKZ70yYPXk/JxmFoEGYzUEqcEBziH4Ec4FEardOVlRrWTkY+oVrDFyUHNgnDwO0cYttq16ad/MfsiqWqDEY0sA3JCQYCb53dqodIc7DmyILfHH8yhsDDHl5wfVnlWhJHacRu6VnnOu7HzckbHPSRYGBEVUw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bwk4V4k0QnwfP24QhoAkPppRKha/XM8rWFt/qqjr2avYWaBQCWjK5jwSG1ENbfFdkGRSju+FXV2FcNJJUL+kqT5ycaaB4JdpVBIxYhqZwnW4f2UwV4bB/LDvYEYQH92041DwlL306f71yNfLNV0Ww/TYB6v6kvc5icrNBIGg0uu3Ag45LiUc04vHyLGB4R7kEspAiarZ4gGmerkfbD6S5CLW+OUo2hsioeQbl7c0rB5ExXY3675cwBrJfGlg7srJW/YSYdEZpyf6MYP6vMz9hBQYbilG/po9KcFdWpWTrFp4cm2qVCxv4dT+BVFthnHkvrXsZ/KURat3f+6evR2BQQ==
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Oleksandr_Andrushchenko@xxxxxxxx;
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "dri-devel@xxxxxxxxxxxxxxxxxxxxx" <dri-devel@xxxxxxxxxxxxxxxxxxxxx>, "virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx" <virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Mon, 27 Jan 2020 09:54:01 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHV0c6CEXRqkijnAkKuyerYilRMX6f+S7MA
- Thread-topic: [PATCH v4 15/15] drm/xen: Explicitly disable automatic sending of vblank event
Sorry for jumping in late
On 1/23/20 11:21 AM, Thomas Zimmermann wrote:
> The atomic helpers automatically send out fake VBLANK events if no
> vblanking has been initialized. This would apply to xen, but xen has
> its own vblank logic. To avoid interfering with the atomic helpers,
> disable automatic vblank events explictly.
>
> v4:
> * separate commit from core vblank changes
>
> Signed-off-by: Thomas Zimmermann <tzimmermann@xxxxxxx>
> Acked-by: Gerd Hoffmann <kraxel@xxxxxxxxxx>
Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
> ---
> drivers/gpu/drm/xen/xen_drm_front_kms.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/drivers/gpu/drm/xen/xen_drm_front_kms.c
> b/drivers/gpu/drm/xen/xen_drm_front_kms.c
> index 4f34c5208180..efde4561836f 100644
> --- a/drivers/gpu/drm/xen/xen_drm_front_kms.c
> +++ b/drivers/gpu/drm/xen/xen_drm_front_kms.c
> @@ -220,6 +220,18 @@ static bool display_send_page_flip(struct
> drm_simple_display_pipe *pipe,
> return false;
> }
>
> +static int display_check(struct drm_simple_display_pipe *pipe,
> + struct drm_plane_state *plane_state,
> + struct drm_crtc_state *crtc_state)
> +{
> + /* Make sure that DRM helpers don't send VBLANK events
Could you please put the comment on a separate line?
> + * automatically. Xen has it's own logic to do so.
> + */
> + crtc_state->no_vblank = false;
And it is still confusing, e.g. comment says
"Make sure that DRM helpers don't send VBLANK"
and we set "no_vblank" flag to false...
> +
> + return 0;
> +}
> +
> static void display_update(struct drm_simple_display_pipe *pipe,
> struct drm_plane_state *old_plane_state)
> {
> @@ -284,6 +296,7 @@ static const struct drm_simple_display_pipe_funcs
> display_funcs = {
> .enable = display_enable,
> .disable = display_disable,
> .prepare_fb = drm_gem_fb_simple_display_pipe_prepare_fb,
> + .check = display_check,
> .update = display_update,
> };
>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|