From: "Trolle Selander" Subject: Re: [Xen-staging] [xen-unstable] [QEMU-DM] Upgrade emulated UART to 16550A. Date: Fri, 7 Dec 2007 20:36:42 +0100 Message-ID: <515922b50712071136r5e550ccfmc3dce8fd3ee672c2@mail.gmail.com> References: <1197048065.6319.3.camel@lappy> <515922b50712070953j6f522b5dxb696fec190c0f19a@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_15004_26496272.1197056202310" Return-path: In-Reply-To: <515922b50712070953j6f522b5dxb696fec190c0f19a@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel , Alex Williamson List-Id: xen-devel@lists.xenproject.org ------=_Part_15004_26496272.1197056202310 Content-Type: multipart/alternative; boundary="----=_Part_15005_16693238.1197056202311" ------=_Part_15005_16693238.1197056202311 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Here's a patch based on Keir's idea. Let's hope this resolves the issue. It also includes the termios.h & sys/ioctl.h include fix discussed earlier, since I didn't see that committed to xen-unstable yet. On Dec 7, 2007 6:53 PM, Trolle Selander wrote: > That sounds like a workable idea, at least for the non-phys-port case. > > > On Dec 7, 2007 6:43 PM, Keir Fraser wrote: > > > On 7/12/07 17:21, "Alex Williamson" < alex.williamson@hp.com> wrote: > > > > > On Wed, 2007-12-05 at 23:07 +0100, Trolle Selander wrote: > > >> This patch fixes the issue. It also changes the name of an > > >> inappropriately named timer. > > > > > > Hi Trolle, > > > > > > Yes, with this patch, my HVM domain will eventually boot. > > > Unfortunately it takes 2 minutes now to get through all the UART > > > timeouts and get to the firmware menu. Prior to the new 16550A UART > > > driver, it took 10 seconds. I think we need to do something smarter > > > than drop characters after some number of timeouts. We're doomed to > > > terrible slowness anytime the console is disconnected that way. > > Thanks, > > > > Perhaps we should latch the first timeout and fast-drop bursts of > > characters > > until the next character that is not immediately rejected? > > > > -- Keir > > > > > > > ------=_Part_15005_16693238.1197056202311 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Here's a patch based on Keir's idea. Let's hope this resolves the issue.
It also includes the termios.h & sys/ioctl.h include fix discussed earlier, since I didn't see that committed to xen-unstable yet.

On Dec 7, 2007 6:53 PM, Trolle Selander <trolle.selander@gmail.com> wrote:
That sounds like a workable idea, at least for the non-phys-port case.


On Dec 7, 2007 6:43 PM, Keir Fraser < Keir.Fraser@cl.cam.ac.uk> wrote:
On 7/12/07 17:21, "Alex Williamson" < alex.williamson@hp.com> wrote:

> On Wed, 2007-12-05 at 23:07 +0100, Trolle Selander wrote:
>> This patch fixes the issue. It also changes the name of an
>> inappropriately named timer.
>
> Hi Trolle,
>
>   Yes, with this patch, my HVM domain will eventually boot.
> Unfortunately it takes 2 minutes now to get through all the UART
> timeouts and get to the firmware menu.  Prior to the new 16550A UART
> driver, it took 10 seconds.  I think we need to do something smarter
> than drop characters after some number of timeouts.  We're doomed to
> terrible slowness anytime the console is disconnected that way.  Thanks,

Perhaps we should latch the first timeout and fast-drop bursts of characters
until the next character that is not immediately rejected?

 -- Keir




------=_Part_15005_16693238.1197056202311-- ------=_Part_15004_26496272.1197056202310 Content-Type: text/x-patch; name=xen-qemudm-serial-retransmit-fix.patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_f9x4c3030 Content-Disposition: attachment; filename=xen-qemudm-serial-retransmit-fix.patch ZGlmZiAtdU5yIHhlbi11bnN0YWJsZS5oZy90b29scy9pb2VtdS9ody9zZXJpYWwuYyB4ZW4tdW5z dGFibGUuaGctcGF0Y2hlZC90b29scy9pb2VtdS9ody9zZXJpYWwuYwotLS0geGVuLXVuc3RhYmxl LmhnL3Rvb2xzL2lvZW11L2h3L3NlcmlhbC5jCTIwMDctMTItMDggMjI6MjM6NTcuMzQ1ODIwNDAw ICswMTAwCisrKyB4ZW4tdW5zdGFibGUuaGctcGF0Y2hlZC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5ID0gMDsKKyAgICB9CiAKKyAgICBzLT5sYXN0X3htaXRfdHMg PSBxZW11X2dldF9jbG9jayh2bV9jbG9jayk7CiAgICAgaWYgKCAhKHMtPmxzciAmIFVBUlRfTFNS X1RIUkUpICkKICAgICAgICAgcWVtdV9tb2RfdGltZXIocy0+dHJhbnNtaXRfdGltZXIsIHMtPmxh c3RfeG1pdF90cyArIHMtPmNoYXJfdHJhbnNtaXRfdGltZSApOwogCg== ------=_Part_15004_26496272.1197056202310 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ------=_Part_15004_26496272.1197056202310--