From patchwork Tue Oct 18 17:32:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 9382755 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D0A35600CA for ; Tue, 18 Oct 2016 17:32:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3BD8296C7 for ; Tue, 18 Oct 2016 17:32:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B6F3C296C9; Tue, 18 Oct 2016 17:32:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4A4A8296C7 for ; Tue, 18 Oct 2016 17:32:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 63CCC6E7B0; Tue, 18 Oct 2016 17:32:40 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qt0-f194.google.com (mail-qt0-f194.google.com [209.85.216.194]) by gabe.freedesktop.org (Postfix) with ESMTPS id 78D5D6E7B0 for ; Tue, 18 Oct 2016 17:32:39 +0000 (UTC) Received: by mail-qt0-f194.google.com with SMTP id f6so22629qtd.1 for ; Tue, 18 Oct 2016 10:32:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rhe4N2e1Mv4Zj3HtqJoeHsBhZE3WFEUBImi2uf+FckY=; b=Jvd0n4or/qu1SE2v66eb748YUlowCC6vxvQfGhHXHjIfq49EW4n3DbddRr6ZIpk4eT ROvsWVlaLGmqbfonrHunDahnAshOPbNs3CMxSwN/tOqTPAF4g2uC477rPvN/r9NX+bwS bvUcQlusjRqMlB6TJPtsQ6hCTmzNpVc2Etc4bj2km8tsNpclxocybOOVYJoHgsh28XC9 WB2YeaaVDgqOTMGInNLC8XzCJSHjVGE92cRC7CFLzyH84mf49MS/QKFMvIBIKCSMfC0Q 00oayUnKpxHXV3VFLnDL4Hh/IpM42CdcrQnEFRYlPc6pQEwokqNnvRqKLYyHMu8NW808 2HZQ== X-Gm-Message-State: AA6/9Rk4qq22oBBUaoFNto0KK1i53NegLybOQv+KuiLRp5JR+fmkLY+p13j/C5Loq9wR2Q== X-Received: by 10.200.39.140 with SMTP id w12mr1672913qtw.28.1476811958499; Tue, 18 Oct 2016 10:32:38 -0700 (PDT) Received: from jade.localdomain (189-46-184-178.dsl.telesp.net.br. [189.46.184.178]) by smtp.gmail.com with ESMTPSA id y55sm18551152qty.23.2016.10.18.10.32.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Oct 2016 10:32:37 -0700 (PDT) From: Gustavo Padovan To: dri-devel@lists.freedesktop.org Subject: [PATCH v2] virtio-gpu: fix vblank events Date: Tue, 18 Oct 2016 15:32:30 -0200 Message-Id: <1476811950-29476-1-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1476359705-12589-1-git-send-email-kraxel@redhat.com> References: <1476359705-12589-1-git-send-email-kraxel@redhat.com> Cc: Gerd Hoffmann X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Gerd Hoffmann virtio-gpu sends vblank events in virtio_gpu_crtc_atomic_flush, and because of that it must be called for disabled planes too. Ask drm_atomic_helper_commit_planes to do that. v2: update to use new drm_atomic_helper_commit_planes() API. Signed-off-by: Gerd Hoffmann Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/virtio/virtgpu_display.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_display.c b/drivers/gpu/drm/virtio/virtgpu_display.c index 6848651..64facc8 100644 --- a/drivers/gpu/drm/virtio/virtgpu_display.c +++ b/drivers/gpu/drm/virtio/virtgpu_display.c @@ -340,8 +340,7 @@ static void vgdev_atomic_commit_tail(struct drm_atomic_state *state) drm_atomic_helper_commit_modeset_disables(dev, state); drm_atomic_helper_commit_modeset_enables(dev, state); - drm_atomic_helper_commit_planes(dev, state, - DRM_PLANE_COMMIT_ACTIVE_ONLY); + drm_atomic_helper_commit_planes(dev, state, 0); drm_atomic_helper_commit_hw_done(state);