Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp4035475ybd; Tue, 25 Jun 2019 12:52:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyiRrF8mJd+QuNb7sCOOQ5GbY5DdVtdd74QBo4Jqax5dHmmCkMnIXZ9/pCpEuLw3BoP9qa X-Received: by 2002:a17:902:9896:: with SMTP id s22mr490943plp.4.1561492358621; Tue, 25 Jun 2019 12:52:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561492358; cv=none; d=google.com; s=arc-20160816; b=nCVbhCl011AC3Tb68AIbFK3kyoJ4vtHtmZxSS7kYNDbmXyMc+tY0bT3carNvMzY1j5 Bn6NoNrzJuT65mhcSefvrJFC/Bx63WhTo/u4lNVyroft5EXIK02rbArZooqrUjhzHsrE thyMebBE2p6D0kfYBgQoWZwx3f0+gWozw+kimy95sFsKMkouujG3T69kjRI08nOaZJf1 dn5TnWG4/9K1ZMbVTva+paZDsYdidzfebNrBsy95QWE8gdfoEXdOPxoQNw/n40a/2ppe IQEKO0ST+VnuaU9njh9/JNMdB5TF2+aPXSAxBfJJA+lb/TFHij1r3aiFft1PgXre78pm FaXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=cf1jH1QihS8BDHAO7STmkCzuvZ8V7FdKRZmRxI4ECgo=; b=XHwvD0Y15ba8tyj60XL0JITOWgXAsln+iYjoQ3Z2SfLDmG3+JdISxjwj4lkPUP7zxz b6LPjaSMIKLVApUt+LRaA+sMPYGUur2AELY9bLrhYx48qBrr21wPDKwf8lnSQIP76qFw twqWMW43pnAIsaObfOZDm7UPvFlnD7uwUei/QuwRhEmuXChFR7tOplGLxugyaFgPdmgR PfDV55BCSqk6deCXpY6L/MOtnwBjvqVWqleVR5HHPniFBhLfGMFonH1c+R51/DNaZKKZ 1LaN4PIF8K8/9ZbuennW7W6ysd89UW+Rf4SlwMwvBRHLBBK63TannJic/zzqN3QulOEY xpfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m22si13506136pgv.303.2019.06.25.12.52.22; Tue, 25 Jun 2019 12:52:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732765AbfFYSCi (ORCPT + 99 others); Tue, 25 Jun 2019 14:02:38 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:58736 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727233AbfFYSCi (ORCPT ); Tue, 25 Jun 2019 14:02:38 -0400 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 Cc: Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Daniel Vetter , Philipp Zabel , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Robert Beckett 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.18.0