From: Daniel Vetter Subject: Re: [PATCH v2 1/4] drm/i915: add warning for unidle GPU Date: Sun, 25 Sep 2011 12:16:36 +0200 Message-ID: <20110925101636.GB2852@phenom.ffwll.local> References: <1316902987-24774-1-git-send-email-ben@bwidawsk.net> <1316902987-24774-2-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wy0-f177.google.com (mail-wy0-f177.google.com [74.125.82.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 4A9A39F702 for ; Sun, 25 Sep 2011 03:16:04 -0700 (PDT) Received: by wyi11 with SMTP id 11so4299852wyi.36 for ; Sun, 25 Sep 2011 03:16:03 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1316902987-24774-2-git-send-email-ben@bwidawsk.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Ben Widawsky Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Sat, Sep 24, 2011 at 03:23:04PM -0700, Ben Widawsky wrote: > When we attempt to idle the GPU we take a shortcut by checking if our > lists are empty and if so, avoid doing a synchronizing flush. The > warning will let us know if this assumption turns out to not be correct. > > Cc: Chris Wilson > Signed-off-by: Ben Widawsky I've just discussed this quickly with Chris on irc and it's probabbly best to just kill the list_empty early bailout. gpu_idle isn't a fastpath, so who cares. One candidate where we emit commands to the ring without adding anything onto these lists is e.g. pageflip. There're probably more. Also it looks like this causes us to no properly idle the gpu on suspend/resume. Might fix issues especially on gen2/3 where we put an MI_WAIT in front of the flip, hence enlarging the window to up to 20 ms. -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48