Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3226036ybd; Fri, 28 Jun 2019 05:08:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHkWOVYhwRMpVW0D0o9T7UN+CpUXyjPBjp/QcHavqvPR2MmeGf/GQCmIshd5aRBzHnO31u X-Received: by 2002:a17:90a:37e9:: with SMTP id v96mr12530391pjb.10.1561723682357; Fri, 28 Jun 2019 05:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561723682; cv=none; d=google.com; s=arc-20160816; b=ATsqhbjXl6IA5uOafoE8WmJrcYLjlk8TR3eCM6uXzZ8l/hanYe4mgtb+pqYSkfRVyq 6hPC/EaFRksS1QxY8gPvDnd3dHz/QG/9HKYYzDYOB6sK4m0n1ADpIU/CCYosukepRQ35 N9XjRAkMFKRRlcOTFzc1pGajcTLWhwRjJ2mjk0u5I3zveTBwpquK899jEJam3cNQ2SFh EAK4aGd7qG1VIrtSP/t71CmFE1KUFa9t1lqE2I+RHpADuGk0uVuPNAsa/r1aamkNhZQZ 7h0exUajJ2xfnHc291TKUAN14xSDC3ruGYTUjP+zFnK3sF4jY34FQwPkDQANWOTqQUZC zjbg== 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=REdaw5vQWrtitq24VW20RkJPrAGJKKCYBrlFrpfnqRs=; b=rdjlxAWeYr5UbYrTUnLLd9yYD6D+dFIXMrDhEHxFTre3HTxs0N6M3SQov7qq8zkOAO VtuOez/1dMNPa6f/v5K+my0tDff0cRrEt2OJlTHJkdHrYHfR7JOGSRMbCtPCrxIbnHed euJj7xhZ0qBoK0dBseYDLfr/DDAh/QgOBvY1O5DnCXw8WyBg7b0HLHrDbZS5zgazbSB2 M2sGftrDkhtKZNim6PLa1xIU0T7R2B76sbDpoRXeKKSsBQ4Fjia55VK4oCGpJcPO7yxR zOSD8RjPAMRnw7VEjpvQ5Hw1U7JoguyYLHHZGkX1VBYzlG4fKgsC9uTPvhoJQnvTft3/ OOrQ== 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 m10si2245546pjl.77.2019.06.28.05.07.38; Fri, 28 Jun 2019 05:08:02 -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 S1726942AbfF1MGD (ORCPT + 99 others); Fri, 28 Jun 2019 08:06:03 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:53974 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726514AbfF1MGD (ORCPT ); Fri, 28 Jun 2019 08:06:03 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: bbeckett) with ESMTPSA id 93077263955 From: Robert Beckett To: dri-devel@lists.freedesktop.org Cc: Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org, Philipp Zabel , Robert Beckett Subject: [PATCH v4 0/2] handle vblank when disabling ctc with interrupt disabled Date: Fri, 28 Jun 2019 13:05:30 +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 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. 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 | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) -- 2.18.0