public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Aaron Williams <awilliams@marvell.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support
Date: Thu, 31 Oct 2019 17:59:44 +0000	[thread overview]
Message-ID: <2710076.TiSPtmOvtb@flash> (raw)
In-Reply-To: <20191031103610.B4D7C240060@gemini.denx.de>

On Thursday, October 31, 2019 3:36:10 AM PDT Wolfgang Denk wrote:
> Dear Aaron,
> 
> In message <1932577.QJWW3v3lL8@flash> you wrote:
> > We do this relocation as well, however the way we do it is by changing a
> > couple of TLB entries. This lets U-Boot begin execution from any memory
> > location, be it flash, L2 cache or RAM. It also lets us statically link
> > U-Boot to run at a fixed address, in our case 0xC0000000. The relocation
> > happens
> It seems you have missed the primary purpose of relocation.  The
> interesting thing is not the start address, but the end address of
> U-Boot in memory, as we alsways try to place the U-Boot code and data
> at the very end of the available memory (and yes, this includes
> systems which can cam with different memory sizes). Additionally, we
> want to be able to reserve additional memry at the end of RAM, above
> U-Boot, so it can even be kept across warm boots.  Features like
> protected RAM (PRAM), shared log buffers, shared video memory etc.
> come in to mind here.
This is exactly what we do. We use a high virtual address and always move it 
to the end of physical memory.

> 
> > This might be something to consider in the future on some platforms where
> > "relocation" could be performed by just adjusting the TLB or page tables.
> > MIPS makes this particularly easy.
> 
> This cannot be done, not without castrating U-Boot from a number of
> features that require allocation at the end of the available RAM,
> see above.
> 
> > That's fine. The code is actually quite small. It has some custom APIs
> > unique to our needs. We have need to call into the phy code from these
> > applications. I don't know if this could work with the general API or
> > not. One reason we did
> What exactly do you need this for?  Why don't you just link your
> code with the rest of U-Boot?
> 
We need it to obtain and modify the phy parameters. This is a custom 25G 
gearbox that needs a lot of hand holding. This may end up being a low priority 
(not the gearbox, but the API). It's only a few hundred lines of code (the 
API).

> 
> Best regards,
> 
> Wolfgang Denk

-Aaron

  reply	other threads:[~2019-10-31 17:59 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-23  3:50 [U-Boot] Cavium/Marvell Octeon Support Aaron Williams
2019-10-24  6:44 ` Chris Packham
2019-10-25 15:13 ` Daniel Schwierzeck
2019-10-26 22:15   ` Tom Rini
2019-10-27  3:08     ` [U-Boot] [EXT] " Aaron Williams
2019-10-27  2:34   ` Aaron Williams
2019-10-29 13:12     ` Wolfgang Denk
2019-10-30 16:20     ` Daniel Schwierzeck
2019-10-30 17:21       ` Wolfgang Denk
2019-10-30 21:23       ` Aaron Williams
2019-10-31 10:36         ` Wolfgang Denk
2019-10-31 17:59           ` Aaron Williams [this message]
2019-11-04 15:44             ` Wolfgang Denk
2019-11-04 16:23               ` Tom Rini
2019-11-05  2:08                 ` Aaron Williams
2019-11-05  8:37                   ` Wolfgang Denk
2019-11-05 10:22                     ` Aaron Williams
2019-11-05 11:36                       ` Wolfgang Denk
2019-11-05 23:09                         ` Aaron Williams
2019-11-06 15:06                           ` Wolfgang Denk
2019-11-06 22:18                             ` Aaron Williams
2019-11-07  0:21                               ` Tom Rini
2019-11-05 14:15                   ` Tom Rini
2019-11-05  1:57               ` Aaron Williams
2019-11-05  8:33                 ` Wolfgang Denk
2019-11-05 14:16                   ` Tom Rini
2019-10-30 22:05 ` [U-Boot] " Tom Rini
2019-10-30 23:36   ` [U-Boot] [EXT] " Aaron Williams
2019-10-31 10:40     ` Wolfgang Denk
2019-10-31 18:01       ` Aaron Williams
2019-11-04 17:22         ` Tom Rini
2019-11-05  2:13           ` Aaron Williams
2019-11-05 14:09             ` Tom Rini
2019-10-31 13:26     ` Tom Rini
2019-10-31 18:04       ` Aaron Williams
  -- strict thread matches above, loose matches on Subject: below --
2019-11-06  0:03 Aaron Williams
2019-11-07  0:34 ` Tom Rini

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=2710076.TiSPtmOvtb@flash \
    --to=awilliams@marvell.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