public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3 v2] 83xx: Default to using DMA	to	initializeSDRAM
Date: Thu, 09 Jul 2009 08:51:37 -0400	[thread overview]
Message-ID: <4A55E7D9.6010800@ge.com> (raw)
In-Reply-To: <4A55E501.8010905@ge.com>

Jerry Van Baren wrote:
> Liu Dave-R63238 wrote:
>>> According to Ira, the DMA method was faster than the cpu method:
>>> "It makes the DMA initialization normal speed again. The DMA 
>>> in the for loop takes the longest (as expected).
>>>
>>> So yes, strangely it (enabling the icache) makes a HUGE 
>>> difference. The total time is <3 seconds now. It is now 
>>> faster than the previous CPU method."
>>>
>>> Logically the DMA method should be faster, and Ira's results 
>>> seem to reinforce this.  I don't have an 83xx board to test 
>>> on, so let me know if others have different results than Ira.
>> I did the DMA init test with the orignal DMA code. At that time
>> The DMA method is slower than CPU method. Strange why the
>> result is different.
> 
> Instruction cache enabled/disabled is the difference - it eliminates 
> instruction fetches from competing with the DMA engine on the SDRAM bus. 
>   See my recent message:
> <http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/63152/focus=63308>

Oops, that isn't going to be exactly correct since we aren't running out 
of RAM yet so instruction fetching isn't going to compete on the SDRAM 
bus directly.  I stand by the general theory, however, that it is bus 
contention of some sort - I would speculate the arbitration of the local 
bus to flash vs. the DMA engine to SDRAM.  Logically they should be 
independent, but they may not be due to internal interference (both 
using the same internal bus?) or simplifying assumptions in the 
arbitrator implementation.

[snip]

Best regards,
gvb

  reply	other threads:[~2009-07-09 12:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-09  0:11 [U-Boot] [PATCH 0/3 v2] DMA ECC update Peter Tyser
2009-07-09  0:11 ` [U-Boot] [PATCH 1/3 v2] 83xx: Default to using DMA to initialize SDRAM Peter Tyser
2009-07-09  0:24   ` [U-Boot] [PATCH 1/3 v2] 83xx: Default to using DMA to initializeSDRAM Liu Dave-R63238
2009-07-09  0:32     ` Peter Tyser
2009-07-09  0:43       ` Liu Dave-R63238
2009-07-09 12:39         ` Jerry Van Baren
2009-07-09 12:51           ` Jerry Van Baren [this message]
2009-07-09  0:58       ` Ira W. Snyder
2009-07-09 15:58         ` [U-Boot] [PATCH 1/3 v2] 83xx: Default to using DMA to initialize SDRAM Ira W. Snyder
2009-07-09 17:00           ` Jerry Van Baren
2009-07-14  9:22   ` Wolfgang Denk
2009-07-14 14:41     ` Kumar Gala
2009-07-14 14:42     ` Peter Tyser
2009-07-14 15:21       ` Wolfgang Denk
2009-07-14 17:32       ` Kim Phillips
2009-07-14 18:37         ` Peter Tyser
2009-07-09  0:11 ` [U-Boot] [PATCH 2/3 v2] 83xx: Add CONFIG_MEM_INIT_VALUE for boards with ECC Peter Tyser
2009-07-09  0:11 ` [U-Boot] [PATCH 3/3 v2] fsl_dma: Fix SDRAM initial value Peter Tyser

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=4A55E7D9.6010800@ge.com \
    --to=gerald.vanbaren@ge.com \
    --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