All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] very slow netconsole
Date: Thu, 20 Mar 2008 14:44:59 +0100	[thread overview]
Message-ID: <47E26A5B.90708@denx.de> (raw)
In-Reply-To: <20080320115111.12128.qmail@kasko.it>

Antonello Lombardinilo wrote:
> I just now:
>  - switched to Intel IXDPG425 board (to have a "standard" board reference);
>  - downloaded and compiled u-Boot 1.3.2 with NetConsole support; 
> 
> Even in this scenario the communication is slow ! 

Take a look at your ethernet driver (I think cpu/ixp/npe.c). The
eth_halt and eth_init functions are called before each transfer, even
for single character.

In npe_halt:

        debug("%s\n", __FUNCTION__);

        /* Delay to give time for recovery of mbufs */
        for (i = 0; i < 100; i++) {
                npe_poll(p_npe->eth_id);
                udelay(100);
        }

The delay seems strictly correlated to the slowness you report. Check
the npe_init function, too. If the ethernet is reinitialized after each
transfer, the result is a very slow connection.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

      reply	other threads:[~2008-03-20 13:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-20 10:30 [U-Boot-Users] very slow netconsole Antonello Lombardinilo
2008-03-20 11:17 ` Wolfgang Denk
2008-03-20 11:51   ` Antonello Lombardinilo
2008-03-20 13:44     ` Stefano Babic [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=47E26A5B.90708@denx.de \
    --to=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    /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.