U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC PACH v2 1/1] Add vexpress_aemv8a_aarch32 variant
Date: Mon, 5 Dec 2016 12:13:04 -0500	[thread overview]
Message-ID: <20161205171304.GQ4248@bill-the-cat> (raw)
In-Reply-To: <1480954305-11770-1-git-send-email-ryan.harkin@linaro.org>

On Mon, Dec 05, 2016 at 04:11:45PM +0000, Ryan Harkin wrote:

> The ARM AEMv8 FVP model can be run in Aarch64 or Aarch32 mode. Aarch32
> support is enable per-CPU when launching the model, eg:
> 
> -C cluster0.cpu0.CONFIG64=0
> 
> This patch adds a new defconfig and some variant specific selections in
> vexpress_armv8a.h.
> 
> This patch is co-authored with Soby Mathew <Soby.Mathew@arm.com>.
> 
> Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
[snip]
> ---
> 
> Changes since v1:
> This single patch replaces my earlier RFC series of two patches, where
> the first modified generic code and the other added a new variant.
> 
> After Tom's suggestion that I review the Raspberry PI code, my original
> [RFC PATCH 1/2] has been dropped completely.
> 
> To address the generic problems from the first patch:
> - move CONFIG_REMAKE_ELF to CONFIG_ARM64 only builds in vexpress_aemv8a.h
> - define CONFIG_SKIP_LOWLEVEL_INIT for non-ARM64 builds (ie. for CPU_V7)
> - the ARMv8 MMU code in vexpress64.h becomes conditiononal on CONFIG_ARM64
> 
> I'm not sure if the last change is the correct approach, but it works. I
> suspect that at the very least, a rework of the vexpress code would split
> this MMU code into an ARM64 specific .c file.

Assuming your plan is to follow this up with a series to unify and
correct board/armltd/vexpress* then yes, I think this is a logical step
forward.  And some level of these CONFIG options should be moved to
Kconfig as part of that unification.

[snip]
> +config TARGET_VEXPRESS_AEMV8_AARCH32
> +	bool "Support Versatile Express ARMv8a 32-bit FVP BASE model booting from DRAM"
> +	select CPU_V7
> +	help
> +	  This target is derived from TARGET_VEXPRESS64_BASE_FVP and over-rides
> +	  the default config to allow the user to load the images directly into
> +	  DRAM using model parameters rather than by using semi-hosting to load
> +	  the files from the host filesystem.
> +
>  config TARGET_VEXPRESS64_BASE_FVP_DRAM
>  	bool "Support Versatile Express ARMv8a FVP BASE model booting from DRAM"

I know neither are "nice" names but why not
TARGET_VEXPRESS64_AEMV8_AARCH32_FVP_DRAM ?  Or is this just something
else that I shouldn't worry about until we're unifying the various
options here?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161205/f79c136e/attachment.sig>

  reply	other threads:[~2016-12-05 17:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-05 16:11 [U-Boot] [RFC PACH v2 1/1] Add vexpress_aemv8a_aarch32 variant Ryan Harkin
2016-12-05 17:13 ` Tom Rini [this message]
2016-12-05 18:01   ` Ryan Harkin
2016-12-05 19:00     ` 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=20161205171304.GQ4248@bill-the-cat \
    --to=trini@konsulko.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