From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pb0-f51.google.com (mail-pb0-f51.google.com [209.85.160.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 9F218B6FE8 for ; Fri, 20 Apr 2012 04:42:44 +1000 (EST) Received: by pbcwy12 with SMTP id wy12so133332pbc.38 for ; Thu, 19 Apr 2012 11:42:42 -0700 (PDT) Sender: Grant Likely From: Grant Likely Subject: Re: [PATCH v5 06/27] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead To: Benjamin Herrenschmidt In-Reply-To: <1334180248.2984.39.camel@pasglop> References: <1329383368-12122-1-git-send-email-grant.likely@secretlab.ca> <1329383368-12122-7-git-send-email-grant.likely@secretlab.ca> <20120402202848.1EB833E02A7@localhost> <20120402215524.GM24211@n2100.arm.linux.org.uk> <1333406005.30734.61.camel@pasglop> <20120402225223.GN24211@n2100.arm.linux.org.uk> <1333409927.30734.62.camel@pasglop> <1333755470.3040.38.camel@pasglop> <1334106834.2984.17.camel@pasglop> <1334107996.2984.20.camel@pasglop> <1334122182.2984.33.camel@pasglop> <20120411205707.68AC13E08B6@localhost> <1334180248.2984.39.camel@pasglop> Date: Thu, 19 Apr 2012 12:42:38 -0600 Message-Id: <20120419184238.4A6973E0700@localhost> Cc: Russell King - ARM Linux , devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, Rob Herring , Andreas Schwab , Milton Miller , Thomas Gleixner , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 12 Apr 2012 07:37:28 +1000, Benjamin Herrenschmidt wrote: > On Wed, 2012-04-11 at 14:57 -0600, Grant Likely wrote: > > > > Yeah, I've got a different way to fix it though. There is exactly one > > user of irq_virq_count in-tree right now: PS3. Also, irq_virq_count > > is only useful for the NOMAP mapping. So, instead of having a single > > global irq_virq_count values, I've dropped it entirely and added a > > max_irq argument to irq_domain_add_nomap(). That makes it a property > > of an individual nomap irq domain instead of a global system settting. > > > > Hopefully I'll have a draft patch ready today. > > That works for me. I'll send patches for cleanup MPIC as well. Okay, I'll wait on these. The MPIC fixes will need to be applied before I can apply the automatic revmapping and hint removal patches. Those patches will also need testing before I apply to linux-next. g.