Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751989AbdGFS72 (ORCPT ); Thu, 6 Jul 2017 14:59:28 -0400 Received: from mga01.intel.com ([192.55.52.88]:16865 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751751AbdGFS72 (ORCPT ); Thu, 6 Jul 2017 14:59:28 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,318,1496127600"; d="scan'208";a="1169335944" Date: Thu, 6 Jul 2017 21:59:21 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Keith Packard Cc: Daniel Vetter , Linux Kernel Mailing List , Dave Airlie , dri-devel Subject: Re: [PATCH 3/3] drm: Add CRTC_GET_SEQUENCE and CRTC_QUEUE_SEQUENCE ioctls Message-ID: <20170706185921.GB12629@intel.com> References: <20170705221013.27940-1-keithp@keithp.com> <20170705221013.27940-4-keithp@keithp.com> <20170706075313.bn2exiklfabgc25t@phenom.ffwll.local> <20170706101604.GY12629@intel.com> <20170706140805.GZ12629@intel.com> <86tw2pbkcn.fsf@keithp.com> <20170706175940.GA12629@intel.com> <86fue9bf2k.fsf@keithp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86fue9bf2k.fsf@keithp.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 611 Lines: 17 On Thu, Jul 06, 2017 at 11:22:43AM -0700, Keith Packard wrote: > Ville Syrj?l? writes: > > > I was mostly thinking of the 'seq = query(); wait(seq + n);' pattern > > where we can avoid doing the full update more than once if we enable > > the interrupt already during the query. > > Don't we still wait 5 seconds before disabling vblank? In that case, the > chances of hitting an idle vblank are pretty slim if the application is > actually busy. With the disable_immediate thing we only wait until the next vblank before disabling the irq again. -- Ville Syrj?l? Intel OTC