From: Daniel Vetter Subject: Re: [PATCH] [RFC] drm/i915: Warning when reads or writes are dropped Date: Tue, 17 Jan 2012 12:08:57 +0100 Message-ID: <20120117110857.GJ4093@phenom.ffwll.local> References: <1320451434-16655-1-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-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) by gabe.freedesktop.org (Postfix) with ESMTP id E3B189F5FD for ; Tue, 17 Jan 2012 03:09:02 -0800 (PST) Received: by werm13 with SMTP id m13so1966403wer.36 for ; Tue, 17 Jan 2012 03:09:02 -0800 (PST) Content-Disposition: inline In-Reply-To: <1320451434-16655-1-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 Fri, Nov 04, 2011 at 05:03:54PM -0700, Ben Widawsky wrote: > The GTFIFODBG register gives us 3 error types when the fifo is accessed > and full. Whenever we do a forcewake_put we can check this register to > see if any of the CPU related errors occurred. > > Of more interest is perhaps the bit I am not checking which tells when > some other part of the chip makes a request and the FIFO is full. I > couldn't really decide on a good place to put that check. > > This patch seems to have value to me, but I'm not sure it's worth the > cost of the extra MMIO read`. (I've yet to see this occur, but I haven't > actually been running with it for very long). > This looks like a nice little patch here. Care to update it for spinlocked and multithreaded forcewake and maybe also check the other errors? And also add it to the error_state output (just base it on top of danvet/my-next to avoid conflicts with the oustanding error_state cleanup). Thanks, Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48