From patchwork Tue Jun 25 17:59:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bob Beckett X-Patchwork-Id: 11016265 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 68E5814E5 for ; Tue, 25 Jun 2019 18:02:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BCE52846C for ; Tue, 25 Jun 2019 18:02:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4FD6728475; Tue, 25 Jun 2019 18:02:40 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY 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 08CE82846C for ; Tue, 25 Jun 2019 18:02:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4C4EE6E1C4; Tue, 25 Jun 2019 18:02:39 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by gabe.freedesktop.org (Postfix) with ESMTPS id 032676E1BD for ; Tue, 25 Jun 2019 18:02:38 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: bbeckett) with ESMTPSA id 776DF2606DF From: Robert Beckett To: dri-devel@lists.freedesktop.org Subject: [PATCH v3 0/4] handle vblank when disabling ctc with interrupt disabled (was [PATCH v2] drm/imx: correct order of crtc disable) Date: Tue, 25 Jun 2019 18:59:11 +0100 Message-Id: X-Mailer: git-send-email 2.18.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Robert Beckett , Maxime Ripard , Shawn Guo , linux-kernel@vger.kernel.org, David Airlie , NXP Linux Team , Sean Paul , Pengutronix Kernel Team , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Handle vblank event sent to signal crtc disable while the backend vblank interrupt has already been disabled by vblank_disable_fn. Fixes: a474478642d5 ("drm/imx: fix crtc vblank state regression") Fixes: 68036b08b91bc ("drm/vblank: Do not update vblank count if interrupts are already disabled.") Fixes: 5f2f911578fb ("drm/imx: atomic phase 3 step 1: Use atomic configuration") Changes since v2: Split up the patch in to smaller pieces. Add warning when about to send bogus vblank event. Update vblank to best guess info during drm_vblank_disable_and_save. Robert Beckett (4): drm/vblank: warn on sending stale event drm/imx: notify drm core before sending event during crtc disable drm/vblank: estimate vblank while disabling vblank if interrupt disabled drm/imx: only send event on crtc disable if kept disabled drivers/gpu/drm/drm_vblank.c | 33 +++++++++++++++++++++++++++++++- drivers/gpu/drm/imx/ipuv3-crtc.c | 6 +++--- 2 files changed, 35 insertions(+), 4 deletions(-)