public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Fix DP8381x driver to work with mips processors
Date: Mon, 19 Dec 2011 23:49:53 +0100	[thread overview]
Message-ID: <20111219234953.0e57fb3d@wker> (raw)
In-Reply-To: <1319632794-20264-1-git-send-email-laszlo.hegedues@gmail.com>

Hi all,

On Wed, 26 Oct 2011 14:39:54 +0200
Laszlo Heged?s <laszlo.hegedues@gmail.com> wrote:

> Fix for the DP8381x driver to translate the pointers to the receive
> Rinbuffer from a virtual address to the PCI memory space. TxRingPtr
> is translated okay, but no memory translation was done for
> RxRingPtr. This patch fix this error by adding calls to
> "phys_to_bus" in multiple places.
> 
> The Bug:
> ...
> b2004020: 07ff9254 10f01002 00000000 00000000    T...............
> b2004030: 87ff9214 00700020 00000000 00000000    .... .p.........
> 
> The address b2004000 is the base of the on board DP82815. The
> TxRingPtr is located at the register b2004020 while the RxRingPtr
> is at b2004030. As it can be seen, the TxRingPtr is translated
> (the base of the PCI system memory is located at 0x00000000),
> but RxRingPtr is still a virtual address in KSEG0. This prevents
> the nic to write the received packets into the main memory.
> 
> Signed-off-by: Laszlo Hegedues <laszlo.hegedues@gmail.com>
> ---
>  drivers/net/natsemi.c |   12 ++++++------
>  1 files changed, 6 insertions(+), 6 deletions(-)

It would be great if someone could test this patch and
send an Acked-by/Tested-by. Anyone on the list who could
test it?

Thanks,
Anatolij

      reply	other threads:[~2011-12-19 22:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-26 12:39 [U-Boot] [PATCH] Fix DP8381x driver to work with mips processors Laszlo Hegedüs
2011-12-19 22:49 ` Anatolij Gustschin [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=20111219234953.0e57fb3d@wker \
    --to=agust@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox