From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/7] armv8:New MMU setup code allowing to set up 2-level page tables
Date: Thu, 2 Jul 2015 21:45:06 +0200 [thread overview]
Message-ID: <20150702214506.6b059a1f@lilith> (raw)
In-Reply-To: <1429226111-29823-2-git-send-email-s.temerkhanov@gmail.com>
Hello Sergey,
On Thu, 16 Apr 2015 16:15:05 -0700, Sergey Temerkhanov
<s.temerkhanov@gmail.com> wrote:
> This patch adds code which sets up 2-level page tables on ARM64 thus
> extending available VA space. CPUs implementing 64k translation
> granule are able to use direct PA-VA mapping of the whole 48 bit
> address space.
> It also adds the ability to reset the SCTRL register at the very beginning
> of execution to avoid interference from stale mappings set up by early
> firmware/loaders/etc.
>
> Signed-off-by: Sergey Temerkhanov <s.temerkhanov@gmail.com>
> Signed-off-by: Radha Mohan Chintakuntla <rchintakuntla@cavium.com>
> ---
> arch/arm/cpu/armv8/cache_v8.c | 95 ++++++++++++++++++++++++++++++++++++++
> arch/arm/cpu/armv8/start.S | 36 +++++++++++++++
> arch/arm/include/asm/armv8/mmu.h | 79 ++++++++++++++++++++++++++++---
> arch/arm/include/asm/global_data.h | 1 +
> arch/arm/include/asm/system.h | 6 +++
> arch/arm/lib/board.c | 6 ++-
> 6 files changed, 215 insertions(+), 8 deletions(-)
This is actually a v2 if the 3-patch series which you posted prevously,
right? If so, then next time please tag the series accordingly ("v2",
"V3" etc).
> diff --git a/arch/arm/cpu/armv8/cache_v8.c b/arch/arm/cpu/armv8/cache_v8.c
> index c5ec529..1264caa 100644
> --- a/arch/arm/cpu/armv8/cache_v8.c
> +++ b/arch/arm/cpu/armv8/cache_v8.c
> @@ -12,6 +12,8 @@
> DECLARE_GLOBAL_DATA_PTR;
>
> #ifndef CONFIG_SYS_DCACHE_OFF
> +
> +#ifndef CONFIG_SYS_FULL_VA
CONFIG_SYS_FULL_VA does not exist yet, so it is introduced in this patch.
Therefore it should be described somewhere, e.g. in doc/README.arm64,
so that readers of the code can refer to the description if they need
to.
> + /* Setup the PMD pointers */
> + for (l1_e = 0; l1_e < CONFIG_SYS_MEM_MAP_SIZE; l1_e++) {
> +/* Setup the page tables */
> + for (l1_e = 0; l1_e < PTL1_ENTRIES; l1_e++) {
Real nitpicking here, but why is the comment not aligned@the same
column as the code after it?
> .globl _start
> _start:
> +#ifdef CONFIG_SYS_RESET_SCTRL
> + bl reset_sctrl
> +#endif
> b reset
Er, no. The _start symbol branches to the reset label. If you really
need to call something early after start of execution, you do it a bit
later, but not here.
Amicalement,
--
Albert.
next prev parent reply other threads:[~2015-07-02 19:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-16 23:15 [U-Boot] [PATCH 0/7] Add Cavium ThunderX support Sergey Temerkhanov
2015-04-16 23:15 ` [U-Boot] [PATCH 1/7] armv8:New MMU setup code allowing to set up 2-level page tables Sergey Temerkhanov
2015-07-02 19:45 ` Albert ARIBAUD [this message]
2015-04-16 23:15 ` [U-Boot] [PATCH 2/7] armv8:Add SMC calls infrastructure Sergey Temerkhanov
2015-04-16 23:15 ` [U-Boot] [PATCH 3/7] armv8:Add psci.h from the Linux kernel Sergey Temerkhanov
2015-04-16 23:15 ` [U-Boot] [PATCH 4/7] arm: uart: Add ability to use pre-initialized UARTs Sergey Temerkhanov
2015-07-02 19:47 ` Albert ARIBAUD
2015-04-16 23:15 ` [U-Boot] [PATCH 5/7] armv8: cavium: Add ThunderX 88xx board definition Sergey Temerkhanov
2015-07-02 19:47 ` Albert ARIBAUD
2015-04-16 23:15 ` [U-Boot] [PATCH 6/7] armv8: cavium: Add an implementation of ATF calling functions Sergey Temerkhanov
2015-04-16 23:15 ` [U-Boot] [PATCH 7/7] armv8: cavium: Get DRAM size from ATF Sergey Temerkhanov
2015-06-08 17:20 ` [U-Boot] [PATCH 0/7] Add Cavium ThunderX support Jagan Teki
2015-06-08 17:37 ` Jagan Teki
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=20150702214506.6b059a1f@lilith \
--to=albert.u.boot@aribaud.net \
--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