Re: [RFC Patch Part1 V1 00/30] use irqdomain to dynamically allocate IRQ for IOAPIC pin

2014-05-19 Thread Thomas Gleixner
Jiang, On Mon, 19 May 2014, Thomas Gleixner wrote: > > We may build hierarchy irqdomains as below for x86, > > [IOAPIC] [MSI/MSI-x] [HPET] [DMAR] [Legacy] > > || | | | > > vv v | | > > [ Remapping

Re: [RFC Patch Part1 V1 00/30] use irqdomain to dynamically allocate IRQ for IOAPIC pin

2014-05-19 Thread Thomas Gleixner
Jiang, On Sun, 18 May 2014, Jiang Liu wrote: > On 2014/5/16 23:28, Thomas Gleixner wrote: > >> Patch 1-17 are trivial code improvements, bugfixes and preparation. > > > > Can you please move the bugfixes before the other changes, so we can > > pick them up independently from the outcome? > Sure,

Re: [RFC Patch Part1 V1 00/30] use irqdomain to dynamically allocate IRQ for IOAPIC pin

2014-05-18 Thread Jiang Liu
Hi Thomas, Thanks for review and please refer to inline comments below. On 2014/5/16 23:28, Thomas Gleixner wrote: > Jiang, > > On Fri, 16 May 2014, Jiang Liu wrote: > >> On x86 platforms, IRQ number are statically allocated to IOAPIC pins at boot. >> There are two issues with this desig

Re: [RFC Patch Part1 V1 00/30] use irqdomain to dynamically allocate IRQ for IOAPIC pin

2014-05-18 Thread Jiang Liu
On 2014/5/16 23:01, Yinghai Lu wrote: > On Fri, May 16, 2014 at 1:05 AM, Jiang Liu wrote: >> On x86 platforms, IRQ number are statically allocated to IOAPIC pins at boot. >> There are two issues with this design. First it causes trouble to IOAPIC >> hotplug because we need to allocate a block of

Re: [RFC Patch Part1 V1 00/30] use irqdomain to dynamically allocate IRQ for IOAPIC pin

2014-05-16 Thread Thomas Gleixner
Jiang, On Fri, 16 May 2014, Jiang Liu wrote: > On x86 platforms, IRQ number are statically allocated to IOAPIC pins at boot. > There are two issues with this design. First it causes trouble to IOAPIC > hotplug because we need to allocate a block of IRQ numbers for each IOAPIC. > Second it may was

Re: [RFC Patch Part1 V1 00/30] use irqdomain to dynamically allocate IRQ for IOAPIC pin

2014-05-16 Thread Yinghai Lu
On Fri, May 16, 2014 at 1:05 AM, Jiang Liu wrote: > On x86 platforms, IRQ number are statically allocated to IOAPIC pins at boot. > There are two issues with this design. First it causes trouble to IOAPIC > hotplug because we need to allocate a block of IRQ numbers for each IOAPIC. > Second it may

[RFC Patch Part1 V1 00/30] use irqdomain to dynamically allocate IRQ for IOAPIC pin

2014-05-16 Thread Jiang Liu
On x86 platforms, IRQ number are statically allocated to IOAPIC pins at boot. There are two issues with this design. First it causes trouble to IOAPIC hotplug because we need to allocate a block of IRQ numbers for each IOAPIC. Second it may waste IRQ nubmers even if some IOAPIC pins are not used be