From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Subject: Re: [PATCH 03/15] drm/i915: port i965_irq_uninstall go INTEL_IRQ_REG_RESET Date: Mon, 29 Jul 2013 14:47:55 +0300 Message-ID: <20130729114755.GP5004@intel.com> References: <1374618835-28120-1-git-send-email-przanoni@gmail.com> <1374618835-28120-4-git-send-email-przanoni@gmail.com> <20130724111103.GC3299@cantiga.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id 47C15E6851 for ; Mon, 29 Jul 2013 04:48:20 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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: Paulo Zanoni Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org On Wed, Jul 24, 2013 at 11:14:57AM -0300, Paulo Zanoni wrote: > 2013/7/24 Chris Wilson : > > On Tue, Jul 23, 2013 at 07:33:43PM -0300, Paulo Zanoni wrote: > >> From: Paulo Zanoni > >> > >> The problem here is that we have the PIPESTAT registers between IER > >> and IIR, so when we use intel_irq_reg_reset we flip the order used to > >> reset IIR and PIPESTAT. That should be safe since after we clear > >> IMR/IER we won't get any other IIR/PIPESTAT interrupts. Still, the > >> change is on its own patch, so it should be easy to bisect and revert > >> if needed. > > > > This is wrong. PIPESTAT needs to be cleared before IIR. > = > Yeah, you're right. I see that if we want to make all the code > touching pipestat consistent we could probably dedicate a full patch > series to it. The fact that PIPESTAT needs to be disabled after > IER/IMR but before IIR also kinda breaks my macros, I'll have to > rethink them now. Why would it need to be cleared before IMR/IER? Clearing PIPESTAT first, them IER/IMR, and finally IIR should be OK. -- = Ville Syrj=E4l=E4 Intel OTC