Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1682377

Re: [PATCH v2] irqchip/mips-gic: Add missing shared interrupt handler

From Thomas Gleixner <tglx@linutronix.de>
Newsgroups linux.kernel
Subject Re: [PATCH v2] irqchip/mips-gic: Add missing shared interrupt handler
Date 2017-07-06 14:10 +0200
Message-ID <u0dLB-49t-31@gated-at.bofh.it> (permalink)
References <u09HX-1nl-1@gated-at.bofh.it> <u0bgK-2oC-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, 6 Jul 2017, jrjang@gmail.com wrote:

CC+ MIPS folks. There is a reason WHY I added them to my previous reply.

> From: Jun-Ru Chang <jrjang@gmail.com>
> 
> Commit b87281e7f205 ("irqchip/mips-gic: Remove device IRQ domain")
> removes the device IRQ domain and uses gic_irq_domain_alloc() to
> allocate the shared/local domain. However, the shared interrupt handler
> is not set after allocating. It causes that the system hangs with
> "unexpected IRQ" messages disaply.
> 
> And commit 8ada00a650ec ("irqchip/mips-gic: Replace static map with
> dynamic") renames gic_irq_domain_alloc() to gic_irq_domain_map() to set
> up the handler and chip. Fix this by setting the handle_level_irq
> handler for shared interrupts.
> 
> Fixes: b87281e7f205 ("irqchip/mips-gic: Remove device IRQ domain")
> Signed-off-by: Jun-Ru Chang <jrjang@gmail.com>
> ---
> Change in v2:
> - changed commit message
> 
>  drivers/irqchip/irq-mips-gic.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/irqchip/irq-mips-gic.c b/drivers/irqchip/irq-mips-gic.c
> index 929f8558bf1c..0a5fb30deb17 100644
> --- a/drivers/irqchip/irq-mips-gic.c
> +++ b/drivers/irqchip/irq-mips-gic.c
> @@ -716,6 +716,7 @@ static int gic_irq_domain_map(struct irq_domain *d, unsigned int virq,
>  		if (err)
>  			return err;
>  
> +		irq_set_handler(virq, handle_level_irq);
>  		return gic_shared_irq_domain_map(d, virq, hwirq, 0);
>  	}
>  
> -- 
> 2.13.2
> 

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] irqchip/mips-gic: Add missing shared interrupt handler jrjang@gmail.com - 2017-07-05 19:50 +0200
  Re: [PATCH] irqchip/mips-gic: Add missing shared interrupt handler Thomas Gleixner <tglx@linutronix.de> - 2017-07-06 09:50 +0200
    Re: [PATCH] irqchip/mips-gic: Add missing shared interrupt handler Jun-Ru Chang <jrjang@gmail.com> - 2017-07-06 10:10 +0200
    [PATCH v2] irqchip/mips-gic: Add missing shared interrupt handler jrjang@gmail.com - 2017-07-06 11:30 +0200
      Re: [PATCH v2] irqchip/mips-gic: Add missing shared interrupt  handler Thomas Gleixner <tglx@linutronix.de> - 2017-07-06 14:10 +0200
        Re: [PATCH v2] irqchip/mips-gic: Add missing shared interrupt handler Paul Burton <paul.burton@imgtec.com> - 2017-07-06 18:40 +0200

csiph-web