From: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
To: kvm-ppc@vger.kernel.org
Subject: Re: Serial stdio overwhelming interrupts
Date: Wed, 13 Aug 2008 12:46:38 +0000 [thread overview]
Message-ID: <48A2D7AE.80109@linux.vnet.ibm.com> (raw)
In-Reply-To: <E20ABADA5792574791053954EC20B5952C59A4@zch01exm26.fsl.freescale.net>
Liu Yu wrote:
> Hi guys,
>
> In my kvm machine, I use serial as its default stdio.
> But when display a number of characters, e.g. cat a big ascii file,
> the serial always hangs as encount overwhelming interrupts, and then output a kernel log "serial8250: too much work for irq 42".
>
> I found that the serial in qemu is primitive so that it generate a interrupt on every single character.
> This make it easier to reach the threshold of reporting "too much work".
>
> I had to use the patch below to get this issue walked arroud.
>
> Have you guys ever met the serial hanging problem before?
>
We had that some times in the beginning while we brought up interrupts.
But since that time it did never occur again and I thought we fixed it.
Maybe your use case of catting a file to it is stressing it now to a new
extend triggering it again.
> ---
> diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
> index be95e55..af3e569 100644
> --- a/drivers/serial/8250.c
> +++ b/drivers/serial/8250.c
> @@ -70,7 +70,7 @@ static unsigned int nr_uarts = CONFIG_SERIAL_8250_RUNTIME_UARTS;
> #define DEBUG_INTR(fmt...) do { } while (0)
> #endif
>
> -#define PASS_LIMIT 256
> +#define PASS_LIMIT 65535
>
> /*
> * We default to IRQ0 for the "no irq" hack. Some
>
> Best Regards.
>
> Yu
> N�����r��y���b�X��ǧv�^�)޺{.n�+����jir)���w*\x1fjg���\x1e�����ݢj/���z�ޖ��2�ޙ���&�)ߡ�a��\x7f��\x1e�G���h�\x0f�j:+v���w�٥
--
Grüsse / regards,
Christian Ehrhardt
IBM Linux Technology Center, Open Virtualization
next prev parent reply other threads:[~2008-08-13 12:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-13 7:27 Serial stdio overwhelming interrupts Liu Yu
2008-08-13 12:46 ` Christian Ehrhardt [this message]
2008-08-15 2:08 ` Liu Yu
2008-08-18 16:07 ` Hollis Blanchard
2008-08-19 10:12 ` Liu Yu
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=48A2D7AE.80109@linux.vnet.ibm.com \
--to=ehrhardt@linux.vnet.ibm.com \
--cc=kvm-ppc@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.