From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759891Ab0JHVvV (ORCPT ); Fri, 8 Oct 2010 17:51:21 -0400 Received: from www.tglx.de ([62.245.132.106]:47703 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757503Ab0JHVvT (ORCPT ); Fri, 8 Oct 2010 17:51:19 -0400 Date: Fri, 8 Oct 2010 23:50:42 +0200 (CEST) From: Thomas Gleixner To: Yinghai Lu cc: Grant Likely , Russell King - ARM Linux , LKML , linux-arch@vger.kernel.org, Linus Torvalds , Andrew Morton , x86@kernel.org, Peter Zijlstra , Benjamin Herrenschmidt , Paul Mundt , David Woodhouse , Jesse Barnes , "Eric W. Biederman" Subject: Re: [patch 00/47] Sparse irq rework In-Reply-To: <4CAD4EC3.5060809@kernel.org> Message-ID: References: <20100930221351.682772535@linutronix.de> <20101003112312.GB9844@angua.secretlab.ca> <20101003112920.GB32736@n2100.arm.linux.org.uk> <4CACFC23.4080504@kernel.org> <4CAD082B.40908@kernel.org> <4CAD1154.3080403@kernel.org> <4CAD4EC3.5060809@kernel.org> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 6 Oct 2010, Yinghai Lu wrote: > On 10/06/2010 09:01 PM, Thomas Gleixner wrote: > > Well, I'm not too happy about this preallocated stuff anyway, which is > > the reason for the warning below. > > > >> [ 80.726176] WARNING: at drivers/pci/intr_remapping.c:67 irq_2_iommu_alloc+0x52/0xdc() > >> [ 80.745935] Hardware name: Sun Fire X4800 > >> [ 80.746179] irq_2_iommu!=NULL irq 8 > > > > no, irq_2_iommu are all dynamically allocated even for irq < 16. I know. I was talking about the preallocated irq descriptors and the handling of it in general. Nevertheless, that irq_2_iommu stuff does not need it's own allocation function. It's bound to a specific irq_cfg anyway, so the next logical step is to move irq_2_iommu into struct irq_cfg and get rid of the extra allocation/free in intr_remapping.c. Thanks, tglx