Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1283281 > unrolled thread
| Started by | Yunhong Jiang <yunhong.jiang@linux.intel.com> |
|---|---|
| First post | 2015-12-03 20:30 +0100 |
| Last post | 2015-12-04 00:00 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
Can we conditionally force threading irq with primary and thread handler? Yunhong Jiang <yunhong.jiang@linux.intel.com> - 2015-12-03 20:30 +0100
Re: Can we conditionally force threading irq with primary and thread handler? Thomas Gleixner <tglx@linutronix.de> - 2015-12-03 23:40 +0100
Re: Can we conditionally force threading irq with primary and thread handler? Yunhong Jiang <yunhong.jiang@linux.intel.com> - 2015-12-04 00:00 +0100
| From | Yunhong Jiang <yunhong.jiang@linux.intel.com> |
|---|---|
| Date | 2015-12-03 20:30 +0100 |
| Subject | Can we conditionally force threading irq with primary and thread handler? |
| Message-ID | <qBHJN-QO-35@gated-at.bofh.it> |
Hi, Thomas
On Commit 2a1d3ab8986d1b2 ("genirq: Handle force threading of irqs
with primary and thread handler"), even if the caller of
request_threaded_irq() provides a primary handler, that primary handler will
be invoked in thread context. This may cause some latency issue for high
real time requirement.
I checked the discussion on https://lkml.org/lkml/2015/9/19/372 with
Okuno and seems we need this change only if the irq is shared, otherwise, we
can still use Okuno's mechanism, am I right? Do you think it's ok to force
the primary handler for shared IRQ, otherwise, clear the IRQF_ONESHOT?
If yes, I will cook a patch for it.
Thanks
--jyh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Thomas Gleixner <tglx@linutronix.de> |
|---|---|
| Date | 2015-12-03 23:40 +0100 |
| Message-ID | <qBKHD-2Fu-1@gated-at.bofh.it> |
| In reply to | #1283281 |
Yunhong,
On Thu, 3 Dec 2015, Yunhong Jiang wrote:
> Hi, Thomas
> On Commit 2a1d3ab8986d1b2 ("genirq: Handle force threading of irqs
> with primary and thread handler"), even if the caller of
> request_threaded_irq() provides a primary handler, that primary handler will
> be invoked in thread context. This may cause some latency issue for high
> real time requirement.
>
> I checked the discussion on https://lkml.org/lkml/2015/9/19/372 with
> Okuno and seems we need this change only if the irq is shared, otherwise, we
> can still use Okuno's mechanism, am I right? Do you think it's ok to force
> the primary handler for shared IRQ, otherwise, clear the IRQF_ONESHOT?
If you want to avoid that the primary handler is force threaded, then
you can indicate that with IRQF_NO_THREAD.
Thanks,
tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Yunhong Jiang <yunhong.jiang@linux.intel.com> |
|---|---|
| Date | 2015-12-04 00:00 +0100 |
| Message-ID | <qBL0Z-2LR-3@gated-at.bofh.it> |
| In reply to | #1283424 |
On Thu, Dec 03, 2015 at 11:33:14PM +0100, Thomas Gleixner wrote:
> Yunhong,
>
> On Thu, 3 Dec 2015, Yunhong Jiang wrote:
>
> > Hi, Thomas
> > On Commit 2a1d3ab8986d1b2 ("genirq: Handle force threading of irqs
> > with primary and thread handler"), even if the caller of
> > request_threaded_irq() provides a primary handler, that primary handler will
> > be invoked in thread context. This may cause some latency issue for high
> > real time requirement.
> >
> > I checked the discussion on https://lkml.org/lkml/2015/9/19/372 with
> > Okuno and seems we need this change only if the irq is shared, otherwise, we
> > can still use Okuno's mechanism, am I right? Do you think it's ok to force
> > the primary handler for shared IRQ, otherwise, clear the IRQF_ONESHOT?
>
> If you want to avoid that the primary handler is force threaded, then
> you can indicate that with IRQF_NO_THREAD.
Thaks for reply.
Sure, will do that way. Just feel a bit weird with a valid thread_fn and a
IRQF_NO_THREAD flags.
Thanks
--jyh
>
> Thanks,
>
> tglx
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web