public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] CFI flash polling for AMD/SPANSION?
Date: Wed, 28 Nov 2007 00:03:48 +0100	[thread overview]
Message-ID: <20071127230348.12995247C1@gemini.denx.de> (raw)
In-Reply-To: Your message of "Tue, 27 Nov 2007 15:10:16 CST." <9CAC8A3B-89FA-44C3-B554-A53C79A0003D@kernel.crashing.org>

In message <9CAC8A3B-89FA-44C3-B554-A53C79A0003D@kernel.crashing.org> you wrote:
> 
> I'm told that higher frequencies we have issues using the toggle  
> method on 85xx/86xx parts from freescale.  But use DQ7 at those freq  

Given the fact that the CFI code has absolutely no knowledge about
which processor it is running on, this means one or both of two
things:

1) There are issues with certain versions of certain toolchains which
   happen to be used with the processors in question

2) The processors in question are more likely to have problems with
   unexpected out-of-order scheduling / instruction reordering etc.

Please note that the current CFI driver accesses the flash by plain
pointer references, in some cases even without using "volatile". This
is supposed to cause problems sooner or later. 

I think the CFI driver needs some basic  rework  to  get  ridof  such
pointer  accesses and use proper accessor functions/macros instead to
make sure we have all the memory barriers etc. we may need.

> seems to work reliable for the flash parts we have on some of the  
> boards.

If the DQ7 method works better, we could compare the code. Check  for
example  for  missing volatiles - but even better fix the code to use
correct accessors.

> It looks like it just uses DQ6/toggle if I'm reading the code correctly.

Note that Linux calls a (map)->write() function to access the flash.


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The high cost of living hasn't affected its popularity.

  reply	other threads:[~2007-11-27 23:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-27 15:51 [U-Boot-Users] CFI flash polling for AMD/SPANSION? Kumar Gala
2007-11-27 18:41 ` Stefan Roese
2007-11-27 21:10   ` Kumar Gala
2007-11-27 23:03     ` Wolfgang Denk [this message]
2007-11-27 23:20       ` Kumar Gala
2007-11-28 15:24       ` Haavard Skinnemoen
2007-11-28 15:35         ` Stefan Roese
2007-11-28 15:43           ` Haavard Skinnemoen
2007-12-08  7:32             ` Stefan Roese

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=20071127230348.12995247C1@gemini.denx.de \
    --to=wd@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