From: Keir Fraser <keir.xen@gmail.com>
To: Tomasz Wroblewski <tomasz.wroblewski@citrix.com>,
xen-devel@lists.xen.org
Cc: JBeulich@suse.com
Subject: Re: [PATCH] V4 pci uart - better cope with UART being temporarily unavailable
Date: Tue, 27 Aug 2013 19:06:43 +0100 [thread overview]
Message-ID: <CE42A943.5B983%keir.xen@gmail.com> (raw)
In-Reply-To: <1377612358-13249-1-git-send-email-tomasz.wroblewski@citrix.com>
On 27/08/2013 15:05, "Tomasz Wroblewski" <tomasz.wroblewski@citrix.com>
wrote:
> This happens for example when dom0 disables ioport responses during PCI
> subsystem initialisation. If a __ns16550_poll() happens to be scheduled during
> that time, Xen hangs. Detect and exit that condition.
>
> Amended ns16550_ioport_invalid function to only check IER register, which
> contins 3 reserved (always 0) bits, therefore it's sufficient for that test.
>
> Changes since V3:
> * readded invalid port test in the loop in __ns16550, moved it before
> serial_rx_interrupt call
>
> Changes since V2:
> * pulled out invalid port test before the loop in __ns16550_poll
> * coding style/patch size fixes
>
> Changes since V1:
> * added invalid port test in getc()
> * changed ns16550_tx_ready to return -EIO and code in serial.[ch] to cope with
> that error condition. If port is temporarily unavailable tx_ready will return
> -EIO and serial driver code will attempt to buffer the character instead of
> dropping it.
>
> Signed-off-by: Tomasz Wroblewski <tomasz.wroblewski@citrix.com>
> ---
Acked-by: Keir Fraser <keir@xen.org>
next prev parent reply other threads:[~2013-08-27 18:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-27 14:05 [PATCH] V4 pci uart - better cope with UART being temporarily unavailable Tomasz Wroblewski
2013-08-27 14:15 ` Tomasz Wroblewski
2013-08-27 18:06 ` Keir Fraser [this message]
2013-08-28 11:15 ` Julien Grall
2013-08-28 11:16 ` Tomasz Wroblewski
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=CE42A943.5B983%keir.xen@gmail.com \
--to=keir.xen@gmail.com \
--cc=JBeulich@suse.com \
--cc=tomasz.wroblewski@citrix.com \
--cc=xen-devel@lists.xen.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.