[U-Boot] [PATCH] Fix DP8381x driver to work with mips processors

Anatolij Gustschin agust at denx.de
Mon Dec 19 23:49:53 CET 2011


Hi all,

On Wed, 26 Oct 2011 14:39:54 +0200
Laszlo Hegedüs <laszlo.hegedues at 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 at 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


More information about the U-Boot mailing list