From: Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: Alex Williamson <alex.williamson@hp.com>,
rmk+serial@arm.linux.org.uk,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] 8250 UART backup timer
Date: Wed, 13 Sep 2006 17:18:05 -0300 [thread overview]
Message-ID: <20060913201805.GB4787@cathedrallabs.org> (raw)
In-Reply-To: <44A183C5.6050002@zytor.com>
> Alex Williamson wrote:
> > The patch below works around a minor bug found in the UART of the
> >remote management card used in many HP ia64 and parisc servers (aka the
> >Diva UARTs). The problem is that the UART does not reassert the THRE
> >interrupt if it has been previously cleared and the IIR THRI bit is
> >re-enabled. This can produce a very annoying failure mode when used as
> >a serial console, allowing a boot/reboot to hang indefinitely until an
> >RX interrupt kicks it into working again (ie. an unattended reboot could
> >stall).
> >
> > To solve this problem, a backup timer is introduced that runs
> >alongside the standard interrupt driven mechanism. This timer wakes up
> >periodically, checks for a hang condition and gets characters moving
> >again. This backup mechanism is only enabled if the UART is detected as
> >having this problem, so systems without these UARTs will have no
> >additional overhead.
> >
> > This version of the patch incorporates previous comments from Pavel
> >and removes races in the bug detection code. The test is now done
> >before the irq linking to prevent races with interrupt handler clearing
> >the THRE interrupt. Short delays and syncs are also added to ensure the
> >device is able to update register state before the result is tested.
> >Comments? Thanks,
> >
>
> I have seen this same bug in soft UART IP from "a major vendor."
did you had chance to test this patch on these machines to see if it
solves the problem?
Thanks,
--
Aristeu
next prev parent reply other threads:[~2006-09-13 20:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-27 19:04 Alex Williamson
2006-06-27 19:15 ` H. Peter Anvin
2006-06-27 19:32 ` Alex Williamson
2006-09-13 20:18 ` Aristeu Sergio Rozanski Filho [this message]
2006-07-05 3:39 ` Alex Williamson
2006-09-13 20:16 ` Aristeu Sergio Rozanski Filho
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=20060913201805.GB4787@cathedrallabs.org \
--to=aris@cathedrallabs.org \
--cc=alex.williamson@hp.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk+serial@arm.linux.org.uk \
/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®