[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [RFC PATCH v3 16/18] xen/arm: ITS: Handle LPI interrupts



On Mon, 2015-06-22 at 17:31 +0530, vijay.kilari@xxxxxxxxx wrote:
> From: Vijaya Kumar K <Vijaya.Kumar@xxxxxxxxxxxxxxxxxx>
> 
> Handle and route LPI interrupts
> 
> Signed-off-by: Vijaya Kumar K <Vijaya.Kumar@xxxxxxxxxxxxxxxxxx>
> ---
>  xen/arch/arm/gic.c |    5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c
> index 091f7e5..802f82f 100644
> --- a/xen/arch/arm/gic.c
> +++ b/xen/arch/arm/gic.c
> @@ -665,6 +665,11 @@ void gic_interrupt(struct cpu_user_regs *regs, int 
> is_fiq)
>      do  {
>          /* Reading IRQ will ACK it */
>          irq = gic_hw_ops->read_irq();
> +        if ( is_lpi(irq) ) {
> +            /* TODO: Enable irqs */

What was the problem with just doing that?

> +            do_IRQ(regs, irq, is_fiq);
> +            continue;

Either this should be folded with the SPI/PPI handling case below or it
should be part of the same if/if else/else chain as the other cases.
Ideally the former (i.e. fix the interrupt enabling problem).

> +        }
>  
>          if ( likely(irq >= 16 && irq < 1020) )
>          {



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.