Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-29 Thread Tomasz Nowicki
On 29.01.2015 16:29, Catalin Marinas wrote: On Tue, Jan 27, 2015 at 04:12:08PM +, Grant Likely wrote: On Fri, Jan 16, 2015 at 2:37 PM, Marc Zyngier wrote: @@ -78,6 +79,10 @@ void __init set_handle_irq(void (*handle_irq)(struct pt_regs *)) void __init init_IRQ(void) {

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-29 Thread Catalin Marinas
On Tue, Jan 27, 2015 at 04:12:08PM +, Grant Likely wrote: > On Fri, Jan 16, 2015 at 2:37 PM, Marc Zyngier wrote: > @@ -78,6 +79,10 @@ void __init set_handle_irq(void (*handle_irq)(struct > pt_regs *)) > void __init init_IRQ(void) > { > irqchip_init(); > +

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-29 Thread Catalin Marinas
On Tue, Jan 27, 2015 at 04:12:08PM +, Grant Likely wrote: On Fri, Jan 16, 2015 at 2:37 PM, Marc Zyngier marc.zyng...@arm.com wrote: @@ -78,6 +79,10 @@ void __init set_handle_irq(void (*handle_irq)(struct pt_regs *)) void __init init_IRQ(void) { irqchip_init(); + + if

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-29 Thread Tomasz Nowicki
On 29.01.2015 16:29, Catalin Marinas wrote: On Tue, Jan 27, 2015 at 04:12:08PM +, Grant Likely wrote: On Fri, Jan 16, 2015 at 2:37 PM, Marc Zyngier marc.zyng...@arm.com wrote: @@ -78,6 +79,10 @@ void __init set_handle_irq(void (*handle_irq)(struct pt_regs *)) void __init init_IRQ(void)

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-27 Thread Grant Likely
On Fri, Jan 16, 2015 at 2:37 PM, Marc Zyngier wrote: @@ -78,6 +79,10 @@ void __init set_handle_irq(void (*handle_irq)(struct pt_regs *)) void __init init_IRQ(void) { irqchip_init(); + + if (!handle_arch_irq) + acpi_gic_init(); + >>>

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-27 Thread Grant Likely
On Fri, Jan 16, 2015 at 2:37 PM, Marc Zyngier marc.zyng...@arm.com wrote: @@ -78,6 +79,10 @@ void __init set_handle_irq(void (*handle_irq)(struct pt_regs *)) void __init init_IRQ(void) { irqchip_init(); + + if (!handle_arch_irq) + acpi_gic_init(); + Why isn't this

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-23 Thread Hanjun Guo
On 2015年01月22日 22:46, Marc Zyngier wrote: Hi Hanjun, On 22/01/15 12:46, Hanjun Guo wrote: Hi Marc, We (Tomasz, Suravee and me) are working on supporting stacked domain on ACPI, and rework GIC ACPI related patch, before we going further, we need your guidance to see if we are going the right

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-23 Thread Hanjun Guo
On 2015年01月22日 22:46, Marc Zyngier wrote: Hi Hanjun, On 22/01/15 12:46, Hanjun Guo wrote: Hi Marc, We (Tomasz, Suravee and me) are working on supporting stacked domain on ACPI, and rework GIC ACPI related patch, before we going further, we need your guidance to see if we are going the right

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-22 Thread Marc Zyngier
Hi Hanjun, On 22/01/15 12:46, Hanjun Guo wrote: > Hi Marc, > > We (Tomasz, Suravee and me) are working on supporting stacked domain on > ACPI, and rework GIC ACPI related patch, before we going further, we > need your guidance to see if we are going the right direction. > >- You said that

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-22 Thread Hanjun Guo
Hi Marc, We (Tomasz, Suravee and me) are working on supporting stacked domain on ACPI, and rework GIC ACPI related patch, before we going further, we need your guidance to see if we are going the right direction. - You said that we spread GIC related code every where, so how about put all

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-22 Thread Hanjun Guo
Hi Marc, We (Tomasz, Suravee and me) are working on supporting stacked domain on ACPI, and rework GIC ACPI related patch, before we going further, we need your guidance to see if we are going the right direction. - You said that we spread GIC related code every where, so how about put all

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-22 Thread Marc Zyngier
Hi Hanjun, On 22/01/15 12:46, Hanjun Guo wrote: Hi Marc, We (Tomasz, Suravee and me) are working on supporting stacked domain on ACPI, and rework GIC ACPI related patch, before we going further, we need your guidance to see if we are going the right direction. - You said that we

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-20 Thread Jon Masters
On 01/20/2015 05:40 AM, Tomasz Nowicki wrote: > Hi Marc, > > On 16.01.2015 12:15, Marc Zyngier wrote: >> On 14/01/15 15:05, Hanjun Guo wrote: >>> From: Tomasz Nowicki >>> >>> ACPI kernel uses MADT table for proper GIC initialization. It needs to >>> parse GIC related subtables, collect CPU

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-20 Thread Tomasz Nowicki
Hi Marc, On 16.01.2015 12:15, Marc Zyngier wrote: On 14/01/15 15:05, Hanjun Guo wrote: From: Tomasz Nowicki ACPI kernel uses MADT table for proper GIC initialization. It needs to parse GIC related subtables, collect CPU interface and distributor addresses and call driver initialization

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-20 Thread Tomasz Nowicki
Hi Marc, On 16.01.2015 12:15, Marc Zyngier wrote: On 14/01/15 15:05, Hanjun Guo wrote: From: Tomasz Nowicki tomasz.nowi...@linaro.org ACPI kernel uses MADT table for proper GIC initialization. It needs to parse GIC related subtables, collect CPU interface and distributor addresses and call

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-20 Thread Jon Masters
On 01/20/2015 05:40 AM, Tomasz Nowicki wrote: Hi Marc, On 16.01.2015 12:15, Marc Zyngier wrote: On 14/01/15 15:05, Hanjun Guo wrote: From: Tomasz Nowicki tomasz.nowi...@linaro.org ACPI kernel uses MADT table for proper GIC initialization. It needs to parse GIC related subtables, collect

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-16 Thread Marc Zyngier
On 16/01/15 13:54, Grant Likely wrote: > On Fri, Jan 16, 2015 at 11:15 AM, Marc Zyngier wrote: >> On 14/01/15 15:05, Hanjun Guo wrote: >>> From: Tomasz Nowicki >>> >>> ACPI kernel uses MADT table for proper GIC initialization. It needs to >>> parse GIC related subtables, collect CPU interface

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-16 Thread Grant Likely
On Fri, Jan 16, 2015 at 11:15 AM, Marc Zyngier wrote: > On 14/01/15 15:05, Hanjun Guo wrote: >> From: Tomasz Nowicki >> >> ACPI kernel uses MADT table for proper GIC initialization. It needs to >> parse GIC related subtables, collect CPU interface and distributor >> addresses and call driver

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-16 Thread Marc Zyngier
On 14/01/15 15:05, Hanjun Guo wrote: > From: Tomasz Nowicki > > ACPI kernel uses MADT table for proper GIC initialization. It needs to > parse GIC related subtables, collect CPU interface and distributor > addresses and call driver initialization function (which is hardware > abstraction

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-16 Thread Marc Zyngier
On 14/01/15 15:05, Hanjun Guo wrote: From: Tomasz Nowicki tomasz.nowi...@linaro.org ACPI kernel uses MADT table for proper GIC initialization. It needs to parse GIC related subtables, collect CPU interface and distributor addresses and call driver initialization function (which is hardware

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-16 Thread Grant Likely
On Fri, Jan 16, 2015 at 11:15 AM, Marc Zyngier marc.zyng...@arm.com wrote: On 14/01/15 15:05, Hanjun Guo wrote: From: Tomasz Nowicki tomasz.nowi...@linaro.org ACPI kernel uses MADT table for proper GIC initialization. It needs to parse GIC related subtables, collect CPU interface and

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-16 Thread Marc Zyngier
On 16/01/15 13:54, Grant Likely wrote: On Fri, Jan 16, 2015 at 11:15 AM, Marc Zyngier marc.zyng...@arm.com wrote: On 14/01/15 15:05, Hanjun Guo wrote: From: Tomasz Nowicki tomasz.nowi...@linaro.org ACPI kernel uses MADT table for proper GIC initialization. It needs to parse GIC related

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-15 Thread Mark Langsdorf
On 01/14/2015 09:05 AM, Hanjun Guo wrote: From: Tomasz Nowicki ACPI kernel uses MADT table for proper GIC initialization. It needs to parse GIC related subtables, collect CPU interface and distributor addresses and call driver initialization function (which is hardware abstraction agnostic).

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-15 Thread Mark Langsdorf
On 01/14/2015 09:05 AM, Hanjun Guo wrote: From: Tomasz Nowicki tomasz.nowi...@linaro.org ACPI kernel uses MADT table for proper GIC initialization. It needs to parse GIC related subtables, collect CPU interface and distributor addresses and call driver initialization function (which is hardware

[PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-14 Thread Hanjun Guo
From: Tomasz Nowicki ACPI kernel uses MADT table for proper GIC initialization. It needs to parse GIC related subtables, collect CPU interface and distributor addresses and call driver initialization function (which is hardware abstraction agnostic). In a similar way, FDT initialize GICv1/2.

[PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-14 Thread Hanjun Guo
From: Tomasz Nowicki tomasz.nowi...@linaro.org ACPI kernel uses MADT table for proper GIC initialization. It needs to parse GIC related subtables, collect CPU interface and distributor addresses and call driver initialization function (which is hardware abstraction agnostic). In a similar way,