From patchwork Fri Jun 28 14:15:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bob Beckett X-Patchwork-Id: 11022505 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 4AFB01575 for ; Fri, 28 Jun 2019 14:17:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37FD6284C5 for ; Fri, 28 Jun 2019 14:17:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26B26285C3; Fri, 28 Jun 2019 14:17:58 +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 D4475284C5 for ; Fri, 28 Jun 2019 14:17:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CF3026E92B; Fri, 28 Jun 2019 14:17:54 +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 [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by gabe.freedesktop.org (Postfix) with ESMTPS id 73B3C6E92B for ; Fri, 28 Jun 2019 14:17:53 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: bbeckett) with ESMTPSA id C19B827D85C From: Robert Beckett To: dri-devel@lists.freedesktop.org Subject: [PATCH v5 0/2] handle vblank when disabling ctc with interrupt disabled Date: Fri, 28 Jun 2019 15:15:34 +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 , =?utf-8?q?Michel_D=C3=A4nzer?= , David Airlie , Dhinakaran Pandiyan , Rodrigo Vivi , Sean Paul MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add warning when about to send stale vblank. Revert change that stops vblank info being updated if interrupts already disabled. This fixes a stale vblank timestamp issue seen on drm/imx. 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. Changes since v3: Update cover letter text to describe remaining actions. Drop drm/imx patches as they have now been merged. Replace vblank info estimation patch with a revert of the issue that caused the need for estimation. Changes since v4: Updated doc for drm_crtc_send_vblank_event() based on feedback. Confirmed that htmldoc looks good. Robert Beckett (2): drm/vblank: warn on sending stale event Revert "drm/vblank: Do not update vblank count if interrupts are already disabled." drivers/gpu/drm/drm_vblank.c | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-)