From: Thomas Gleixner <tglx@linutronix.de>
To: Kohji Okuno <okuno.kohji@jp.panasonic.com>
Cc: marc.zyngier@arm.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] genirq: Fix bad IRQ_ONSHOT in forced IRQ setting
Date: Sat, 19 Sep 2015 22:24:15 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.11.1509192211570.3951@nanos> (raw)
In-Reply-To: <20150920.003356.1191254663935857851.okuno.kohji@jp.panasonic.com>
On Sun, 20 Sep 2015, Kohji Okuno wrote:
> From: Thomas Gleixner <tglx@linutronix.de>
> Date: Fri, 18 Sep 2015 16:46:24 +0200
> > On Fri, 18 Sep 2015, Kohji Okuno wrote:
> >>
> >> irq thread(runs sdhci_thread_irq()) is waiting on
> >> drivers/mmc/core/core.c:mmc_wait_for_req_done() in order to access
> >> a SDIO register. And, this thread shoud be woken up from
> >> sdhci_irq() after the completion of the register access.
> >> But, since the IRQ is masked, sdhci_irq() is not called and irq
> >> thread can not wake up. This is root cause, I think.
> >> What do you think about this?
> >
> > Ah, that explains it. Let me think about it a bit.
>
> If something is not clear please let me know.
> By the way, even if other issue exists, we should change
> irq_setup_forced_threading() as my patch, I think.
No, we can't. We can only do that if the interrupt is not shared.
Assume the following scenario:
request_irq(irq, handler, IRQF_SHARED, "devA", devidA);
In case of force threading that sets the oneshot flag for the irq
descriptor.
Now the sdhci driver is initialized
request_thread_irq(irq, handler, thandler, IRQF_SHARED,
"sdhci", devidSDHCI);
The oneshot flag sticks and you run into exactly the same issue as
now.
Shared interrupts are a major pain, but we have to deal with them.
I'm working on a solution for that issue.
Thanks,
tglx
next prev parent reply other threads:[~2015-09-19 20:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-17 7:13 Kohji Okuno
2015-09-17 7:59 ` Thomas Gleixner
2015-09-17 8:21 ` Kohji Okuno
2015-09-17 9:48 ` Kohji Okuno
2015-09-17 21:10 ` Thomas Gleixner
2015-09-18 0:35 ` Kohji Okuno
2015-09-18 9:04 ` Thomas Gleixner
2015-09-18 9:22 ` Kohji Okuno
2015-09-18 10:03 ` Marc Zyngier
2015-09-18 10:56 ` Kohji Okuno
2015-09-18 14:46 ` Thomas Gleixner
2015-09-19 15:33 ` Kohji Okuno
2015-09-19 20:24 ` Thomas Gleixner [this message]
2015-09-20 0:21 ` Kohji Okuno
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.11.1509192211570.3951@nanos \
--to=tglx@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=marc.zyngier@arm.com \
--cc=okuno.kohji@jp.panasonic.com \
/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®