From: Greg KH <gregkh@linuxfoundation.org>
To: Andrey Zhizhikin <andrey.z@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] uio: Allow to take irq bottom-half into irq_handler with additional dt-binding
Date: Wed, 6 Dec 2017 16:31:13 +0100 [thread overview]
Message-ID: <20171206153113.GB29623@kroah.com> (raw)
In-Reply-To: <1512572140-48009-1-git-send-email-andrey.z@gmail.com>
On Wed, Dec 06, 2017 at 03:55:40PM +0100, Andrey Zhizhikin wrote:
> Certain Kernel preemption models are using threaded interrupt handlers,
> which is in general quite beneficial. However, threaded handlers
> introducing additional scheduler overhead, when the bottom-half thread
> should be woken up and scheduled for execution. This can result is
> additional latency, which in certain cases is not desired.
>
> UIO driver with Generic IRQ handler, that wraps a HW block might suffer
> a small degradation when it's bottom half is executed, since it needs
> its bottom half to be woken up by the scheduler every time INT is
> delivered. For high rate INT signals, this also bring additional
> undesired load on the scheduler itself.
>
> Since the actual ACK is performed in the top-half, and bottom-half of
> the UIO driver with Generic IRQ handler is relatively slick (only flag
> is set based on the INT reception), it might be beneficial to move this
> bottom-half to the irq_handler itself, rather than to have a separate
> thread to service it.
>
> This patch aims to address the task above, and in addition introduces
> a new dt-binding which could be configured on a per-node basis. That
> means developers utilizing the UIO driver could decide which UIO
> instance is critical in terms of interrupt processing, and move their
> corresponding bottom-halves to the irq_handler to fight additional
> scheduling latency.
>
> New DT binding:
> - no-threaded-irq: when present, request_irq() is called with
> IRQF_NO_THREAD flag set, effectively skipping threaded interrupt
> handler and taking bottom-half into irq_handler
>
> Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
For new DT bindings, don't you have to add them to the in-kernel
documentation and get an ack from the DT maintainers? Please do that
here.
ALso, how much does this really save in latency/delay by not allowing a
threaded irq? What about systems that run all irqs in threaded mode?
Will that break something here?
thanks,
greg k-h
next prev parent reply other threads:[~2017-12-06 15:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-06 14:55 Andrey Zhizhikin
2017-12-06 15:31 ` Greg KH [this message]
2017-12-06 16:59 ` Andrey Zhizhikin
2017-12-07 9:16 ` Greg KH
2017-12-07 11:17 ` Andrey Zhizhikin
2017-12-07 14:46 ` [PATCH v2 0/2] " Andrey Zhizhikin
2017-12-07 14:46 ` [PATCH v2 1/2] " Andrey Zhizhikin
2017-12-07 14:46 ` [PATCH v2 2/2] uio: Introduce UIO driver dt-binding documentation Andrey Zhizhikin
2017-12-07 23:42 ` Rob Herring
2017-12-08 12:52 ` Andrey Zhizhikin
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=20171206153113.GB29623@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=andrey.z@gmail.com \
--cc=linux-kernel@vger.kernel.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®