From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Mon, 19 Dec 2011 23:49:53 +0100 Subject: [U-Boot] [PATCH] Fix DP8381x driver to work with mips processors In-Reply-To: <1319632794-20264-1-git-send-email-laszlo.hegedues@gmail.com> References: <1319632794-20264-1-git-send-email-laszlo.hegedues@gmail.com> Message-ID: <20111219234953.0e57fb3d@wker> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi all, On Wed, 26 Oct 2011 14:39:54 +0200 Laszlo Heged?s 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 > --- > 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