From: Thomas Gleixner <tglx@linutronix.de>
To: jrjang@gmail.com
Cc: Jason Cooper <jason@lakedaemon.net>,
Marc Zyngier <marc.zyngier@arm.com>,
LKML <linux-kernel@vger.kernel.org>,
Paul Burton <paul.burton@imgtec.com>,
Matt Redfearn <matt.redfearn@imgtec.com>,
Ralf Baechle <ralf@linux-mips.org>
Subject: Re: [PATCH v2] irqchip/mips-gic: Add missing shared interrupt handler
Date: Thu, 6 Jul 2017 14:03:59 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.20.1707061402350.1771@nanos> (raw)
In-Reply-To: <20170706092058.20079-1-jrjang@gmail.com>
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
>
next prev parent reply other threads:[~2017-07-06 12:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-05 17:41 [PATCH] " jrjang
2017-07-06 7:47 ` Thomas Gleixner
2017-07-06 8:09 ` Jun-Ru Chang
2017-07-06 9:20 ` [PATCH v2] " jrjang
2017-07-06 12:03 ` Thomas Gleixner [this message]
2017-07-06 16:36 ` Paul Burton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.20.1707061402350.1771@nanos \
--to=tglx@linutronix.de \
--cc=jason@lakedaemon.net \
--cc=jrjang@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marc.zyngier@arm.com \
--cc=matt.redfearn@imgtec.com \
--cc=paul.burton@imgtec.com \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®