From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ecfrec.frec.bull.fr (ecfrec.frec.bull.fr [129.183.4.8]) by ozlabs.org (Postfix) with ESMTP id 2FA07DDF1A for ; Wed, 24 Sep 2008 22:37:35 +1000 (EST) Date: Wed, 24 Sep 2008 14:35:52 +0200 From: Sebastien Dugue To: benh@kernel.crashing.org Subject: Re: [PATCH HACK] powerpc: quick hack to get a functional eHEA with hardirq preemption Message-ID: <20080924143552.29a14f10@bull.net> In-Reply-To: <1222251467.8277.73.camel@pasglop> References: <200809231743.23828.ossthema@de.ibm.com> <20080915100406.342e027a@bull.net> <200809240958.m8O9wM7k010996@sullivan.realtime.net> <1222251467.8277.73.camel@pasglop> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linux-kernel@vger.kernel.org, Milton Miller , linuxppc-dev@ozlabs.org, Christoph Raisch , Paul Mackerras , Jan-Bernd Themann List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Ben, On Wed, 24 Sep 2008 20:17:47 +1000 Benjamin Herrenschmidt wrote: > On Wed, 2008-09-24 at 04:58 -0500, Milton Miller wrote: > > The per-interrupt mask and unmask calls have to go through RTAS, a > > single-threaded global context, which in addition to increasing > > path length will really limit scalability. The interrupt controller > > poll and reject facilities are accessed through hypervisor calls > > which are comparable to a fast syscall, and parallel to all cpus. > > Note also that the XICS code thus assumes, iirc, as does the cell IIC > code, that eoi is called on the -same- cpu that fetched the interrupt > initially. That assumption can be broken with IRQ threads no ? No, the fetch and the eoi are both done in interrupt context before the hardirq thread is woken up. On the other hand, the mask+eoi and the unmask may well happen on different cpus as there's only one hardirq thread per irq on the system. Don't know if this is a problem with the XICS though. Thanks, Sebastien. > > Ben. > > >