From: Remy Bohmer <linux@bohmer.net>
To: Aras Vaichas <arasv@magellan-technology.com>
Cc: David Brownell <david-b@pacbell.net>,
ARM Linux Mailing List <linux-arm-kernel@lists.arm.linux.org.uk>,
linux-rt-users <linux-rt-users@vger.kernel.org>
Subject: Re: [PATCH]: Atmel Serial Console interrupt handler splitup
Date: Fri, 29 Oct 2010 15:52:46 +0200 [thread overview]
Message-ID: <AANLkTim1aj1Pc33qJ66AbnAf+SQQxoSVk--a1d=hpgNn@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=TyvXEtoZGatP5pxymLSna9g6ULV46i72bYgc4@mail.gmail.com>
Hi,
2010/10/29 Aras Vaichas <arasv@magellan-technology.com>:
>> > On AT91 David Brownell noticed several months
>> > ago that the DBGU can miss some characters on NO_HZ. I would expect
>> > that this would be better now due to the shorter interrupt handler,
>> > although it was not my goal to solve it with these patches.
>> The current (kernel.org git) AT91 timer handler incorporates a bugfix
>> in that area, which seemed to resolve most of those problems.
>> - Dave
>
> Hello,
>
> I'm sorry to bother you two off-list, but I'm trying to avoid too much
> noise on the lists.
Please, always at least CC to the mailinglist as well.
> My issue is related to these two posts (and the re: above):
>
> http://www.mail-archive.com/linux-rt-users@vger.kernel.org/msg02115.html
> http://permalink.gmane.org/gmane.linux.ports.arm.kernel/94652
>
> If I change the Atmel serial interrupt to IRQF_NODELAY, then *most* of
> the overruns go away and DBGU works as it should.
>
> --- A/drivers/serial/atmel_serial.c 2010-08-03 03:27:18.000000000 +1000
> +++ B/drivers/serial/atmel_serial.c 2010-10-29 10:24:54.000000000 +1100
> @@ -808,7 +818,7 @@
> /*
> * Allocate the IRQ
> */
> - retval = request_irq(port->irq, atmel_interrupt, IRQF_SHARED,
> + retval = request_irq(port->irq, atmel_interrupt, IRQF_NODELAY,
> tty ? tty->name : "atmel_serial", port);
> if (retval) {
> printk("atmel_serial: atmel_startup - Can't get irq\n");
>
>
> But shouldn't the DBGU interrupt already be running in NODELAY context
> according to Remy's post? I understand that NODELAY has many other
> complications, this is just a test to get an idea of which direction
> to move in.
On preempt-RT this driver always has NODELAY set by default. AFAIK, it
is not in mainline.
Notice that on recent kernels also the request_threaded_irq()
mechanism can be used, which is much cleaner compared to the NODELAY
change.
So, I guess the NODELAY change will never hit mainline since this
better solution exist.
Kind regards,
Remy
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next parent reply other threads:[~2010-10-29 13:52 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTi=TyvXEtoZGatP5pxymLSna9g6ULV46i72bYgc4@mail.gmail.com>
2010-10-29 13:52 ` Remy Bohmer [this message]
2007-12-07 15:24 [PATCH]: Atmel Serial Console interrupt handler splitup Remy Bohmer
2007-12-07 18:31 ` David Brownell
2007-12-07 19:57 ` Andrew Victor
2007-12-07 20:38 ` Remy Bohmer
2007-12-07 21:16 ` Remy Bohmer
2007-12-12 21:10 ` Steven Rostedt
2007-12-12 22:29 ` Remy Bohmer
2007-12-13 16:40 ` Remy Bohmer
2007-12-13 17:33 ` Andrew Victor
2007-12-13 20:32 ` Remy Bohmer
2007-12-13 20:35 ` Remy Bohmer
2007-12-14 11:46 ` Remy Bohmer
2007-12-17 12:17 ` Haavard Skinnemoen
2007-12-17 18:13 ` Haavard Skinnemoen
2007-12-17 20:56 ` Remy Bohmer
2007-12-17 23:12 ` Haavard Skinnemoen
2007-12-18 7:32 ` Remy Bohmer
2007-12-17 23:49 ` Russell King - ARM Linux
2007-12-18 9:07 ` Haavard Skinnemoen
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='AANLkTim1aj1Pc33qJ66AbnAf+SQQxoSVk--a1d=hpgNn@mail.gmail.com' \
--to=linux@bohmer.net \
--cc=arasv@magellan-technology.com \
--cc=david-b@pacbell.net \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-rt-users@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;
as well as URLs for NNTP newsgroup(s).