From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] atngw100: Use virtual address in CONFIG_ENV_ADDR
Date: Sat, 29 Aug 2009 13:39:02 +0200 [thread overview]
Message-ID: <200908291339.02983.sr@denx.de> (raw)
In-Reply-To: <C93C19B9-5220-4917-8D62-CC54A0795D0B@freescale.com>
On Friday 28 August 2009 21:58:15 Becky Bruce wrote:
> On Aug 28, 2009, at 8:49 AM, Haavard Skinnemoen wrote:
> > Kumar Gala <galak@kernel.crashing.org> wrote:
> >>> Reverting 09ce9921a7d8b1ce764656b14b42217bbf4faa38 would bring
> >>> things
> >>> back to the way they were, and fix both the saveenv problem and the
> >>> jffs2 problem.
> >>
> >> Such a revert would break other boards that now expect the new
> >> behavior (like all the 36-bit physical cfg for FSL boards)
> >
> > Right, I suspected that.
>
> FYI, before the patch, the CFI driver was sometimes doing the map, but
> IIRC it was also abusing the "physical" address, treating it as a
> virtual address without mapping it. The only way for that to work is
> when VA=PA (or, depending on what you were doing with the address, you
> just got lucky). The CFI driver was the outlier - all the other flash
> code was treating the start field as a VA already. So I don't think
> just reverting the patch is the answer.
I think too, that revering the patch in question is not the right "solution"
for this problem in the current stage. But I have to admit that I don't have
enough insight into your platform to come up with another good idea quickly.
> > So...which config symbols are supposed to be virtual now, and how are
> > you supposed to know how the virtual-to-physical mappings are set up
> > in
> > advance?
>
> Everything is treated as virtual unless it's being used for hardware
> setup. If you use something to do memory accesses, it's virtual. A
> lot of code had been just using the PA as a VA, because things were
> always mapped 1-1.
Correct. All those addresses to configure the CFI driver should be virtual
addresses. BTW: This is valid for other drivers as well (e.g. IDE, video).
> Can you point me at an example in your scenario of code that interacts
> with the flash?
Yes, please give us an example of your memory mapping (physical and virtual)
on your failing platform.
Cheers,
Stefan
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de
next prev parent reply other threads:[~2009-08-29 11:39 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-28 8:42 [U-Boot] [PATCH] atngw100: Use virtual address in CONFIG_ENV_ADDR Haavard Skinnemoen
2009-08-28 9:16 ` Mark Jackson
2009-08-28 9:34 ` Haavard Skinnemoen
2009-08-28 10:16 ` Mark Jackson
2009-08-28 10:27 ` Haavard Skinnemoen
2009-08-28 10:35 ` Mark Jackson
2009-08-28 11:58 ` Wolfgang Denk
2009-08-28 11:56 ` Wolfgang Denk
2009-08-28 12:14 ` Haavard Skinnemoen
2009-08-28 13:42 ` Kumar Gala
2009-08-28 13:49 ` Haavard Skinnemoen
2009-08-28 19:58 ` Becky Bruce
2009-08-29 11:39 ` Stefan Roese [this message]
2009-08-30 15:52 ` Haavard Skinnemoen
2009-08-30 15:36 ` Haavard Skinnemoen
2009-08-30 18:11 ` Wolfgang Denk
2009-08-30 20:42 ` Haavard Skinnemoen
2009-08-31 11:57 ` Wolfgang Denk
2009-08-31 13:53 ` Haavard Skinnemoen
2009-08-31 17:46 ` Wolfgang Denk
2009-09-01 8:57 ` Haavard Skinnemoen
2009-09-01 9:16 ` Stefan Roese
2009-09-01 10:18 ` Haavard Skinnemoen
2009-09-01 9:47 ` Wolfgang Denk
2009-09-01 10:38 ` Haavard Skinnemoen
2009-09-01 11:05 ` Wolfgang Denk
2009-09-01 11:42 ` Haavard Skinnemoen
2009-09-01 13:04 ` Wolfgang Denk
2009-09-01 13:23 ` Haavard Skinnemoen
2009-09-01 13:47 ` Wolfgang Denk
2009-09-01 13:52 ` Haavard Skinnemoen
2009-09-01 14:49 ` Thiago A. Corrêa
2009-09-01 15:20 ` Haavard Skinnemoen
2009-09-01 15:56 ` Mark Jackson
2009-09-01 17:50 ` [U-Boot] Virtual addresses, u-boot, and the MMU J. William Campbell
2009-09-01 19:21 ` Wolfgang Denk
2009-09-01 22:01 ` J. William Campbell
2009-09-02 7:59 ` Wolfgang Denk
2009-09-03 16:09 ` Becky Bruce
2009-09-03 17:25 ` J. William Campbell
2009-09-03 17:32 ` Andrew Dyer
2009-09-04 8:34 ` Mark Jackson
2009-09-04 8:58 ` Haavard Skinnemoen
2009-09-04 8:44 ` Haavard Skinnemoen
2009-08-31 20:05 ` [U-Boot] [PATCH] atngw100: Use virtual address in CONFIG_ENV_ADDR Becky Bruce
2009-09-01 9:15 ` Haavard Skinnemoen
2009-08-31 19:17 ` Becky Bruce
2009-09-01 10:15 ` Haavard Skinnemoen
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=200908291339.02983.sr@denx.de \
--to=sr@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.