Re: [Patch] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-09-23 Thread Jiang Liu
On 2014/9/23 17:43, Joe.C wrote: > On Mon, 2014-09-22 at 16:17 +0800, Jiang Liu wrote: >> @@ -388,7 +389,6 @@ EXPORT_SYMBOL_GPL(irq_create_direct_mapping); >> unsigned int irq_create_mapping(struct irq_domain *domain, >> irq_hw_number_t hwirq) >> { >> -unsigned

Re: [Patch] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-09-23 Thread Jiang Liu
Thanks Randy! I will fix these issues in next version. Regards! Gerry On 2014/9/23 1:30, Randy Dunlap wrote: > On 09/22/14 01:17, Jiang Liu wrote: >> --- >> Documentation/IRQ-domain.txt | 71 + >> include/linux/irq.h |3 + >> include/linux/irqdomain.h| 86 ++

Re: [Patch] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-09-23 Thread Jiang Liu
Thanks Randy! I will fix these issues in next version. Regards! Gerry On 2014/9/23 1:30, Randy Dunlap wrote: On 09/22/14 01:17, Jiang Liu wrote: --- Documentation/IRQ-domain.txt | 71 + include/linux/irq.h |3 + include/linux/irqdomain.h| 86 ++

Re: [Patch] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-09-23 Thread Jiang Liu
On 2014/9/23 17:43, Joe.C wrote: On Mon, 2014-09-22 at 16:17 +0800, Jiang Liu wrote: @@ -388,7 +389,6 @@ EXPORT_SYMBOL_GPL(irq_create_direct_mapping); unsigned int irq_create_mapping(struct irq_domain *domain, irq_hw_number_t hwirq) { -unsigned int hint;

Re: [Patch] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-09-22 Thread Randy Dunlap
On 09/22/14 01:17, Jiang Liu wrote: > --- > Documentation/IRQ-domain.txt | 71 + > include/linux/irq.h |3 + > include/linux/irqdomain.h| 86 ++ > kernel/irq/Kconfig |3 + > kernel/irq/chip.c|3 + > kernel/irq/irqdomain.c |

[Patch] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-09-22 Thread Jiang Liu
We plan to use hierarchy irqdomain to suppport CPU vector assignment, interrupt remapping controller, IO-APIC controller, MSI interrupt and hypertransport interrupt etc on x86 platforms. So extend irqdomain interfaces to support hierarchy irqdomain. There are already many clients of current

[Patch] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-09-22 Thread Jiang Liu
We plan to use hierarchy irqdomain to suppport CPU vector assignment, interrupt remapping controller, IO-APIC controller, MSI interrupt and hypertransport interrupt etc on x86 platforms. So extend irqdomain interfaces to support hierarchy irqdomain. There are already many clients of current

Re: [Patch] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-09-22 Thread Randy Dunlap
On 09/22/14 01:17, Jiang Liu wrote: --- Documentation/IRQ-domain.txt | 71 + include/linux/irq.h |3 + include/linux/irqdomain.h| 86 ++ kernel/irq/Kconfig |3 + kernel/irq/chip.c|3 + kernel/irq/irqdomain.c | 360

Re: [RFC Patch] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-08-27 Thread Thomas Gleixner
Jiang, On Wed, 27 Aug 2014, Jiang Liu wrote: > >> Third, a special value IRQDOMAIN_AUTO_ASSIGN_HWIRQ is defined out of > >> irq_hw_number_t, which indicates that irqdomain callbacks should > >> automatically hardware interrupt number for clients. This will be used > >> to support CPU vector

Re: [RFC Patch] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-08-27 Thread Jiang Liu
Hi Thomas, Thanks for your great comments! Please refer to inline comments below. Regards! Gerry On 2014/8/27 5:06, Thomas Gleixner wrote: > Jiang, > > On Fri, 1 Aug 2014, Jiang Liu wrote: > >> First, architecture needs to define struct irq_map_info, which will be >> used to pass

Re: [RFC Patch] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-08-27 Thread Jiang Liu
Hi Thomas, Thanks for your great comments! Please refer to inline comments below. Regards! Gerry On 2014/8/27 5:06, Thomas Gleixner wrote: Jiang, On Fri, 1 Aug 2014, Jiang Liu wrote: First, architecture needs to define struct irq_map_info, which will be used to pass architecture

Re: [RFC Patch] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-08-27 Thread Thomas Gleixner
Jiang, On Wed, 27 Aug 2014, Jiang Liu wrote: Third, a special value IRQDOMAIN_AUTO_ASSIGN_HWIRQ is defined out of irq_hw_number_t, which indicates that irqdomain callbacks should automatically hardware interrupt number for clients. This will be used to support CPU vector allocation and

Re: [RFC Patch] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-08-26 Thread Thomas Gleixner
Jiang, On Fri, 1 Aug 2014, Jiang Liu wrote: > First, architecture needs to define struct irq_map_info, which will be > used to pass architecture specific information to controller specific > callbacks. We should not have another "universal" data structure which needs to fit various levels of

Re: [RFC Patch] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-08-26 Thread Thomas Gleixner
Jiang, On Fri, 1 Aug 2014, Jiang Liu wrote: First, architecture needs to define struct irq_map_info, which will be used to pass architecture specific information to controller specific callbacks. We should not have another universal data structure which needs to fit various levels of the

[RFC Patch] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-08-01 Thread Jiang Liu
We plan to use hierarchy irqdomain to suppport CPU vector assignment, interrupt remapping controller, IO-APIC controller, MSI interrupt and hypertransport interrupt etc on x86 platforms. So extend irqdomain interfaces to support hierarchy irqdomain. There are already many clients of current

[RFC Patch] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-08-01 Thread Jiang Liu
We plan to use hierarchy irqdomain to suppport CPU vector assignment, interrupt remapping controller, IO-APIC controller, MSI interrupt and hypertransport interrupt etc on x86 platforms. So extend irqdomain interfaces to support hierarchy irqdomain. There are already many clients of current