Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752605Ab0HYINq (ORCPT ); Wed, 25 Aug 2010 04:13:46 -0400 Received: from silver.sucs.swan.ac.uk ([137.44.10.1]:35421 "EHLO silver.sucs.swan.ac.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752220Ab0HYINo (ORCPT ); Wed, 25 Aug 2010 04:13:44 -0400 Date: Wed, 25 Aug 2010 09:13:36 +0100 From: Sitsofe Wheeler To: Jesse Barnes Cc: intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org Subject: Re: [PATCH] drm/i915: fix vblank wait test condition Message-ID: <20100825081336.GA30504@sucs.org> References: <20100824113116.249c13b4@virtuousgeek.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100824113116.249c13b4@virtuousgeek.org> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1355 Lines: 27 On Tue, Aug 24, 2010 at 11:31:16AM -0700, Jesse Barnes wrote: > When converting this to the new wait_for macro I inverted the wait > condition, which causes all sorts of problems. So correct it to fix > several failures caused by the bad wait (flickering, bad output > detection, tearing, etc.). Further testing has shown this fixed one set of cases where strange behaviour happened on my EeePC but there are other triggers. I've found the following: With this patch booting without a battery in the machine will lead to a stable system without lots of errors appearing in dmesg (just one "Insufficient FIFO" at boot). Doing "watch --differences=cumulative xrandr" always shows the same outputs. VT switching occasionally causes the occasional "*ERROR* vblank wait timed out" message. However doing a suspend/resume brings back all the problems, dmesg starts filling up with FIFO errors and xrandr starts reporting different outputs every time it is called. Additionally, booting with a battery inside the machine at boot will always lead to the quirky behaviour too. -- Sitsofe | http://sucs.org/~sits/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/