mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Hironobu Ishii" <hishii@soft.fujitsu.com>
To: "Russell King" <rmk+lkml@arm.linux.org.uk>
Cc: "Taku Izumi" <izumi2005@soft.fujitsu.com>, <akpm@osdl.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: performance-improvement-of-serial-console-via-virtual.patch added to -mm tree
Date: Tue, 13 Sep 2005 21:18:43 +0900	[thread overview]
Message-ID: <00df01c5b85d$49a003e0$dba0220a@CARREN> (raw)
In-Reply-To: <20050913125326.A14342@flint.arm.linux.org.uk>

Hi Russel,
> 
> The problem is that the console write method may be called prior to
> autoconfig() being run for the port in question, so tx_loadsz may be
> uninitialised.

Thank you for explanation.

>> > * if it has been initialised
>> > * how much data is already contained in the FIFO
>> 
>> Right, we can't know how many byte exist in the FIFO.
>> So this patch is waiting the FIFO becomes empty at first
>> by calling "wait_for_xmitr(up)".
>> (This is the same logic with original.)
>> 
>> After TX FIFO become empty, we can decide the available 
>> TX FIFO depth by up->tx_loadsize.
> 
> Only if you ignore the fact that tx_loadsz may not be initialised.

OK.
Before initialization, does tx_loadsz left 0?
If so, we can easily solve the problem:

   tx_loadsz = (up->tx_loadsz ? up->tx_loadsz : 1); <-----
   for (i = 0; i < count; ) {
           int     fifo;

           wait_for_xmitr(up);
           fifo = tx_loadsz;        <------
            .
            .
            .


Best regards,
Hironobu Ishii

      parent reply	other threads:[~2005-09-13 12:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200509072146.j87LkNv8004076@shell0.pdx.osdl.net>
     [not found] ` <20050907224911.H19199@flint.arm.linux.org.uk>
2005-09-08  7:47   ` Taku Izumi
2005-09-13  8:17     ` Russell King
2005-09-13 11:44       ` Hironobu Ishii
2005-09-13 11:53         ` Russell King
2005-09-13 12:02           ` Russell King
2005-09-13 13:07             ` Hironobu Ishii
2005-09-15  5:20               ` Taku Izumi
2005-09-13 12:18           ` Hironobu Ishii [this message]

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='00df01c5b85d$49a003e0$dba0220a@CARREN' \
    --to=hishii@soft.fujitsu.com \
    --cc=akpm@osdl.org \
    --cc=izumi2005@soft.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk+lkml@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®