From: "George Spelvin" <linux@horizon.com>
To: jp.tosoni@acksys.fr
Cc: linux@horizon.com, linux-serial@vger.kernel.org
Subject: Re: serial8250_interrupt idea
Date: Mon, 17 Nov 2008 05:56:21 -0500 [thread overview]
Message-ID: <20081117105621.27946.qmail@science.horizon.com> (raw)
In-Reply-To: <B98538A31FB14FC2A64239FC940CA0C1@acksys.local>
"Tosoni" <jp.tosoni@acksys.fr> wrote:
> When I put this kind of improvement in my serial drivers I usually run into
> the following problem:
>
> If several ports are very busy receiving at the same time, one of them gets
> served much more often than the others, and the others start losing data.
>
> Do your changes take this into account ?
>
> Sorry, I didn't take the time to go through your code (I'm working on un
> unrelated project right now).
I don't quite understand.
First of all, the patch only affects serial ports sharing the same
interrupt. Are you talking about serial ports sharing the same interrupt,
or serial ports with different interrupts?
If you're talking about the latter, this patch will have no effect; it only
affects the way that multiple ports share the same interrupt.
And I don't understand how a problem like you describe can happen when
an interrupt is shared. In that case, the hardware requires that all of
them are checked on every interrupt, and the driver has always done that.
Further, ports that have data waiting the first time they are checked
have to be re-checked until they are empty. All the patch does is try
to reduce the number of times that idle ports are re-checked.
If there's a problem, though, perhaps I can figure it out while I'm
looking at this part of the code. Can you describe it in greater detail?
next prev parent reply other threads:[~2008-11-17 10:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-13 15:03 serial8250_interrupt idea George Spelvin
2008-11-14 5:30 ` [PATCH 1/2] serial/8250.c: Change to singly linked handler chain George Spelvin
2008-11-14 5:33 ` [PATCH 2/2] serial/8250.c: Use self-adjusting list for port poll order George Spelvin
2008-11-17 9:51 ` serial8250_interrupt idea Tosoni
2008-11-17 10:56 ` George Spelvin [this message]
2008-11-17 12:45 ` Tosoni
2008-11-17 13:45 ` George Spelvin
2008-11-17 14:08 ` Chris Doré
2008-11-17 15:25 ` Tosoni
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=20081117105621.27946.qmail@science.horizon.com \
--to=linux@horizon.com \
--cc=jp.tosoni@acksys.fr \
--cc=linux-serial@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