RE: [PATCH] x86/ioapic: Fix that not all allocated irqs are ioapic type irqs

2012-10-18 Thread Liu, Chuansheng
> -Original Message- > From: yhlu.ker...@gmail.com [mailto:yhlu.ker...@gmail.com] On Behalf Of > Yinghai Lu > impossible ! > > where is the irq_desc coming from. ? Any other chip can call function irq_alloc_descs/irq_alloc_desc() to get irq_desc, and other chip can has their own chip da

RE: [PATCH] x86/ioapic: Fix that not all allocated irqs are ioapic type irqs

2012-10-18 Thread Liu, Chuansheng
inux.intel.com; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] x86/ioapic: Fix that not all allocated irqs are ioapic > type > irqs > > On Fri, Oct 19, 2012 at 3:41 AM, Chuansheng Liu > wrote: > > > > When debugging our system issues related with __setup_vect

Re: [PATCH] x86/ioapic: Fix that not all allocated irqs are ioapic type irqs

2012-10-18 Thread Yinghai Lu
On Fri, Oct 19, 2012 at 3:41 AM, Chuansheng Liu wrote: > > When debugging our system issues related with __setup_vector_irq(), > found there is a real wrong code that: > for_each_active_irq(irq) { > cfg = irq_get_chip_data(irq); > if (!cfg) >

[PATCH] x86/ioapic: Fix that not all allocated irqs are ioapic type irqs

2012-10-18 Thread Chuansheng Liu
When debugging our system issues related with __setup_vector_irq(), found there is a real wrong code that: for_each_active_irq(irq) { cfg = irq_get_chip_data(irq); if (!cfg) continue; These codes presume all allocated irqs are ioapic