From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 7/8] drm/irq: Implement a generic vblank_wait function Date: Wed, 30 Jul 2014 17:06:38 +0200 Message-ID: <20140730150637.GS4747@phenom.ffwll.local> References: <1406669543-31213-1-git-send-email-daniel.vetter@ffwll.ch> <1406669543-31213-8-git-send-email-daniel.vetter@ffwll.ch> <20140730142405.GP29590@ulmo> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by gabe.freedesktop.org (Postfix) with ESMTP id E97F06E647 for ; Wed, 30 Jul 2014 08:06:29 -0700 (PDT) Received: by mail-wi0-f176.google.com with SMTP id bs8so7703108wib.15 for ; Wed, 30 Jul 2014 08:06:28 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140730142405.GP29590@ulmo> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Thierry Reding Cc: Daniel Vetter , Intel Graphics Development , DRI Development List-Id: intel-gfx@lists.freedesktop.org On Wed, Jul 30, 2014 at 04:24:06PM +0200, Thierry Reding wrote: > On Tue, Jul 29, 2014 at 11:32:22PM +0200, Daniel Vetter wrote: > [...] > > diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c > [...] > > + ret = wait_event_timeout(dev->vblank[crtc].queue, > > + C, msecs_to_jiffies(100)); > > 100 milliseconds looks like a very arbitrary choice. Theoretically we > support things like crtc->mode.vrefresh = 5, so I wonder if we should > parameterize this on the refresh rate, or simply increase it further? Once we have 10Hz panels I think we can pump/fix this. In i915 we've used 50ms everywhere, and never hit this. Except when driver bugs, ofc. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch