From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <17724.15919.790114.628418@cargo.ozlabs.ibm.com> Date: Mon, 23 Oct 2006 13:59:43 +1000 From: Paul Mackerras To: Scott Wood Subject: Re: [PATCH] qe_ic: Do a sync when masking interrupts. In-Reply-To: <20061019180308.GA24256@ld0162-tx32.am.freescale.net> References: <20061019180308.GA24256@ld0162-tx32.am.freescale.net> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Scott Wood writes: > This patch causes a sync do be done after masking a QE interrupt, to > ensure that the masking has completed before interrupts are enabled. > This allows the masking of the cascade IRQ to be removed without causing > spurious interrupts. Hmmm. In general a sync having completed doesn't mean that previous MMIO stores have actually got to the device. Reading from a device register generally does ensure that previous writes have actually got to the device though - could you do that instead? I'm concerned that adding the sync is not a robust fix and is possibly only working due to fortuitous timing. Paul.