From nobody Mon Feb 9 16:19:54 2026 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1578911987; cv=none; d=zohomail.com; s=zohoarc; b=K/l7FpRsLxoqXNh642wEnKcxIhx6cxcowELgGKyzQiLstbgExp4pu5ycFwZhUHkzEh53y9C9G/hYrLbBCN4aB2uJpCeeUe3VmpgmZ7iEGmYa1p0fxm+obE5PZYLSWfVKC2mPKHLtBofzO85M6+k/SCt6slA9ZopmC/7yY5TbjW4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578911987; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ntCGX6oVymCmnDTkqz+6QIBp1dVx4l0B0TIEJuamBN8=; b=jnl4YWaZ0Iwumg/6bA+RJQCx+xctOc/R7pVjjHA6CSul789lX9emzGZSpeRuLX9Jbr+/ogVcYP1CNmr8Q4aC524gHAkgRbLNfS1Xj2iIX877oD1dmAD+7plJYUwLI9mfctatDS4Dcod1jme8kWK3HsAZO5kynJQfetJIXKtQj1k= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1578911987071930.5958736678988; Mon, 13 Jan 2020 02:39:47 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iqx7r-0007bk-L0; Mon, 13 Jan 2020 10:39:15 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iqx7I-0007Zt-6Z for xen-devel@lists.xenproject.org; Mon, 13 Jan 2020 10:38:40 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id d74f2484-35f0-11ea-b89f-bc764e2007e4; Mon, 13 Jan 2020 10:38:31 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id BC717B150; Mon, 13 Jan 2020 10:38:29 +0000 (UTC) X-Inumbo-ID: d74f2484-35f0-11ea-b89f-bc764e2007e4 X-Virus-Scanned: by amavisd-new at test-mx.suse.de From: Thomas Zimmermann To: airlied@linux.ie, daniel@ffwll.ch, kraxel@redhat.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, hdegoede@redhat.com, david@lechnology.com, noralf@tronnes.org, sean@poorly.run, oleksandr_andrushchenko@epam.com, sam@ravnborg.org, laurent.pinchart@ideasonboard.com, emil.velikov@collabora.com Date: Mon, 13 Jan 2020 11:38:21 +0100 Message-Id: <20200113103822.24473-4-tzimmermann@suse.de> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200113103822.24473-1-tzimmermann@suse.de> References: <20200113103822.24473-1-tzimmermann@suse.de> MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 13 Jan 2020 10:39:14 +0000 Subject: [Xen-devel] [PATCH v2 3/4] drm/cirrus: Let DRM core send VBLANK events X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: xen-devel@lists.xenproject.org, dri-devel@lists.freedesktop.or, Thomas Zimmermann , virtualization@lists.linux-foundation.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" In drm_atomic_helper_fake_vblank(), the DRM core sends out VBLANK events if struct drm_crtc_state.no_vblank is enabled. Replace cirrus' VBLANK events with the DRM core's functionality. v2: * set struct_drm_crtc_state.no_vblank in cirrus_pipe_check() Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/cirrus/cirrus.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/cirrus/cirrus.c b/drivers/gpu/drm/cirrus/cirru= s.c index 248c9f765c45..5ff15e8a2a0a 100644 --- a/drivers/gpu/drm/cirrus/cirrus.c +++ b/drivers/gpu/drm/cirrus/cirrus.c @@ -38,7 +38,6 @@ #include #include #include -#include =20 #define DRIVER_NAME "cirrus" #define DRIVER_DESC "qemu cirrus vga" @@ -404,6 +403,8 @@ static int cirrus_pipe_check(struct drm_simple_display_= pipe *pipe, { struct drm_framebuffer *fb =3D plane_state->fb; =20 + crtc_state->no_vblank =3D true; + if (!fb) return 0; return cirrus_check_size(fb->width, fb->height, fb); @@ -434,13 +435,6 @@ static void cirrus_pipe_update(struct drm_simple_displ= ay_pipe *pipe, =20 if (drm_atomic_helper_damage_merged(old_state, state, &rect)) cirrus_fb_blit_rect(pipe->plane.state->fb, &rect); - - if (crtc->state->event) { - spin_lock_irq(&crtc->dev->event_lock); - drm_crtc_send_vblank_event(crtc, crtc->state->event); - crtc->state->event =3D NULL; - spin_unlock_irq(&crtc->dev->event_lock); - } } =20 static const struct drm_simple_display_pipe_funcs cirrus_pipe_funcs =3D { --=20 2.24.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel