From: Matteo Fortini <matteo.fortini@sadel.it>
To: linux-kernel@vger.kernel.org
Subject: v2.6.34: IDE on IRQ15 starving Serial on IRQ10, not on v2.4
Date: Wed, 20 Oct 2010 12:18:28 +0200 [thread overview]
Message-ID: <4CBEC1F4.9080700@sadel.it> (raw)
Hi,
we were having serial buffer overruns on a 4800bps 16550A with a Geode
GX1 SBC,
the serial port is on IRQ10, so it should have higher priority than IDE
(which is on IRQ15).
The PIC is in XT-PIC-XT mode, we have no APIC unfortunately.
The overruns are triggered easily with a dd if=/dev/hda of=/dev/null
IDE is a CF card using PIO mode 4, no DMA enabled.
We tried various build options, like preemption etc., and we tried both
ide and libata.
We traced this down to the fact that the IDE subsystem is keeping the
serial IRQ pending for the whole max request time, which is 256 requests
in our current setup.
We fixed it by changing the value at drivers/ide/ide-probe.c:751 from
256 to e.g. 32, which gave the IDE disk less time to keep the others
pending, but we feel this could be some other issue.
The unmaskirq option as in hdparm -u1 /dev/hda was not fixing the
problem, and changing the transfer mode to 32bit w/sync didn't either.
The strange thing is that the behavior is completely different in Linux
2.4.x: we can see with a scope that the IDE request is continuously
interrupted by the serial port, which should be the default with the
8259 PIC.
Thank you,
Matteo
reply other threads:[~2010-10-20 10:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4CBEC1F4.9080700@sadel.it \
--to=matteo.fortini@sadel.it \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.