From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50478) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiToS-0006d4-4X for qemu-devel@nongnu.org; Tue, 11 Dec 2012 12:40:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiToP-0008DF-Fd for qemu-devel@nongnu.org; Tue, 11 Dec 2012 12:40:12 -0500 Date: Tue, 11 Dec 2012 11:39:51 -0600 From: Scott Wood References: <1354974282-1915-1-git-send-email-agraf@suse.de> <1354974282-1915-3-git-send-email-agraf@suse.de> <1355182459.5334.17@snotra> <76470F4C-C382-4D8E-8C34-95C96B0D0091@suse.de> In-Reply-To: <76470F4C-C382-4D8E-8C34-95C96B0D0091@suse.de> (from agraf@suse.de on Tue Dec 11 02:14:42 2012) Message-ID: <1355247591.13481.6@snotra> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; delsp=Yes; format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH 02/19] mpic: Unify numbering scheme List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: "qemu-ppc@nongnu.org List" , qemu-devel qemu-devel On 12/11/2012 02:14:42 AM, Alexander Graf wrote: >=20 >=20 > On 11.12.2012, at 00:34, Scott Wood wrote: >=20 > > On 12/08/2012 07:44:25 AM, Alexander Graf wrote: > >> +/* These are available through separate regions, but > >> + for simplicity's sake mapped into the same number space */ > >> +#define MPIC_TMR_IRQ 0xf3 > >> +#define MPIC_IPI_IRQ 0xfb > > > > Please don't do this, or at least choose different numbers. 0xf3 =20 > is a > > valid MSI on p4080 (not to mention T4240 which goes beyond 256). >=20 > Ah, that's where I was wondering myself too. I copied the above logic =20 > from Linux, which maps tmr and ipi to max_irq-x. But I agree that it =20 > sounds off. Yeah, Linux was buggy and has since been fixed (specifically, we turned =20 on MPIC_LARGE_VECTORS so that max_irq is large enough to not conflict). -Scott=