public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] Mvbge driver broken on kirkwood platforms after ARM relocation
Date: Wed, 06 Oct 2010 16:43:55 +0200	[thread overview]
Message-ID: <4CAC8B2B.9020708@free.fr> (raw)
In-Reply-To: <F766E4F80769BD478052FB6533FA745D19A69E25E0@SC-VEXCH4.marvell.com>

Le 06/10/2010 16:14, Prafulla Wadaskar a ?crit :
>
>
>> -----Original Message-----
>> From: u-boot-bounces at lists.denx.de
>> [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Albert ARIBAUD
>> Sent: Wednesday, October 06, 2010 7:26 PM
>> To: Albert ARIBAUD
>> Cc: u-boot at lists.denx.de; Ashish Karkare; Prabhanjan Sarnaik
>> Subject: Re: [U-Boot] Mvbge driver broken on kirkwood
>> platforms after ARM relocation
>>
>> Le 06/10/2010 15:54, Albert ARIBAUD a ?crit :
>>
>>>>> Have you tested this on edminv2 platform?
>>>>> If it is working at your end? Can you please cross check
>> the same with Kirkwood platform?
>>>
>>> I am positive that mvgbe driver works, because it initially
>> did not on
>>> my edminiv2, and I traced the root cause to gd being trashed between
>>> board_init_f and board_init_r; that was fixed before I
>> submitted this patch.
>>>
>>> I will test on the openrd platform.
>>
>> BTW: Prafulla, what toolchain are you using for your kirkwood
>> platforms?
>
> Hi Albert
>
> I tried with Gcc ver 4.1.2 (Red Hat 4.1.2-33.fa1) and gcc ver 4.4.1 (Sourcery G++ Lite 2009q3-68)
> In both the cases it fails.
>
> Further I debugged the issue and found that- it fails in drivers/net/mvgbe.c at mvgbe_send() in while loop.
> It is clear that the Scheduled tx DMA xter is not getting completed, nor reporting error.
>
> Then I checked with other board having switch instead of phy, and it works !!.
>
> Whereas any release earlier to ARM relocation patches works very well (i.e. diff against u-boot-marvell.git/master and u-boot-arm.git)
>
> So I am unable to figure out whom to address?
>
> For me this happened since I moved to new ARM relocation code base. So initial doubt goes there.
>
> If you have openrd_base you can give a try
>
> Regards..
> Prafulla . .

This is suspiciously similar to the symptoms I had, which were: the loop 
checking for end of TX would never exit, because the TX descriptor's 
state word would never reflect the ownership change from DMA back to MPU 
that should happen at end of transfer, because the controllers BAR that 
was assumed to give it access to DRAM was trashed, because gd was 
trashed in the first place.

OTOH, if the same code works or not depending on whether you have a 
switch or phy, it rules out gd trashing.

Still... Please check the BARs in the controller.

I'll try on my openrd board. It has a phy, so I should be able to 
witness the issue.

Amicalement,
-- 
Albert.

  reply	other threads:[~2010-10-06 14:43 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-04 22:22 [U-Boot] [PATCH] orion5x: optimize window size computation Albert Aribaud
2010-10-05  5:57 ` Prafulla Wadaskar
2010-10-05 21:40   ` Chris Moore
2010-10-06  5:51     ` Albert ARIBAUD
2010-10-06  9:34       ` Prafulla Wadaskar
2010-10-06 13:29         ` Wolfgang Denk
2010-10-06 13:47           ` Albert ARIBAUD
2010-10-06 14:24             ` Prafulla Wadaskar
2010-10-06  9:38       ` [U-Boot] Mvbge driver broken on kirkwood platforms after ARM relocation Prafulla Wadaskar
2010-10-06 13:30         ` Wolfgang Denk
2010-10-06 13:54           ` Albert ARIBAUD
2010-10-06 13:56             ` Albert ARIBAUD
2010-10-06 14:14               ` Prafulla Wadaskar
2010-10-06 14:43                 ` Albert ARIBAUD [this message]
2010-10-06 14:22           ` Prafulla Wadaskar
2010-10-06 15:56             ` Albert ARIBAUD
2010-10-06 17:36               ` Albert ARIBAUD
2010-10-06 17:54                 ` Albert ARIBAUD
2010-10-07  4:37                   ` Prafulla Wadaskar
2010-10-07  9:57                   ` Prafulla Wadaskar

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=4CAC8B2B.9020708@free.fr \
    --to=albert.aribaud@free.fr \
    --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