u-boot-brain/arch
Stephen Warren 376cb1a453 ARM: tegra: add custom MMU setup on ARMv8
This sets up a fine-grained page table, which is a requirement for
noncached_init() to operate correctly.

MMU setup code currently exists in a number of places:
- A version in the core ARMv8 support code that sets up page tables that
use very large block sizes that CONFIG_SYS_NONCACHED_MEMORY doesn't
support.
- Enhanced versions for fsl-lsch3 and zynmq that set up finer grained
page tables.

Ideally, rather than duplicating the MMU setup code yet again this patch
would instead consolidate all the different routines into the core ARMv8
code so that it supported all use-cases. However, this will require
significant effort since there appear to be a number of discrepancies[1]
between different versions of the code, and between the defines/values by
some copies of the MMU setup code use and the architectural MMU
documentation. Some reverse engineering will be required to determine the
intent of the current code.

[1] For example, in the core ARMv8 MMU setup code, three defines named
TCR_EL[123]_IPS_BITS exist, but only one of them sets the IPS field and
the others set a different field (T1SZ) in the page tables. As far as I
can tell so far, there should be no need to set different values per
exception level nor to modify the T1SZ field at all, since TTBR1 shouldn't
be enabled anyway. Another example is inconsistent values for *_VA_BITS
between the current core ARMv8 MMU setup code and the various SoC-
specific MMU setup code. Another example is that asm/armv8/mmu.h's value
for SECTION_SHIFT doesn't match asm/system.h's MMU_SECTION_SHIFT;
research is needed to determine which code relies on which of those
values and why, and whether fixing the incorrect value will cause any
regression.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
2015-11-10 18:04:19 +01:00
..
arc arc: Use the generic bitops headers 2015-11-05 10:52:29 -05:00
arm ARM: tegra: add custom MMU setup on ARMv8 2015-11-10 18:04:19 +01:00
avr32 avr32: Use the generic bitops headers 2015-11-05 10:52:31 -05:00
blackfin blackfin: Use the generic bitops headers 2015-11-05 10:52:06 -05:00
m68k m68k: Use the generic bitops headers 2015-11-05 10:52:04 -05:00
microblaze microblaze: Use the generic bitops headers 2015-11-05 10:52:11 -05:00
mips Merge branch 'master' of git://git.denx.de/u-boot-mips 2015-11-06 09:17:17 -05:00
nds32 nds32: Use the generic bitops headers 2015-11-05 10:52:21 -05:00
nios2 Merge branch 'master' of git://git.denx.de/u-boot-nios 2015-11-06 09:21:33 -05:00
openrisc openrisc: Use the generic bitops headers 2015-11-05 10:52:19 -05:00
powerpc powerpc: Remove __ilog2_u64 and ffs4 from bitops 2015-11-05 16:47:05 -05:00
sandbox sandbox: Use the generic bitops headers 2015-11-05 10:52:14 -05:00
sh sh: Use the generic bitops headers 2015-11-05 10:52:09 -05:00
sparc sparc: Use the generic bitops headers 2015-11-05 10:52:16 -05:00
x86 x86: Use the generic bitops headers 2015-11-05 10:52:01 -05:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig arm, powerpc: select SYS_GENERIC_BOARD 2015-10-24 13:50:38 -04:00