t132: Increase TrustZone Carveout Region size
Increase TZ carveout region size to 4MiB. TTB lives in the first 1MiB of the trust zone. Rest of the TZ memory can be used by el3 monitor. BUG=chrome-os-partner:31615 BRANCH=None TEST=Compiles successfully and boots to kernel Change-Id: I1f25b7b119037cba7055a1bd61997f020a0b1010 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://chromium-review.googlesource.com/214370 Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Commit-Queue: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
24ad4383a9
commit
de0f3f8016
3 changed files with 7 additions and 3 deletions
|
|
@ -143,7 +143,7 @@ config MTS_DIRECTORY
|
|||
|
||||
config TRUSTZONE_CARVEOUT_SIZE_MB
|
||||
hex "Size of Trust Zone region"
|
||||
default 0x1
|
||||
default 0x4
|
||||
help
|
||||
Size of Trust Zone area in MiB to reserve in memory map.
|
||||
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@ void tegra132_mmu_init(void)
|
|||
{
|
||||
uintptr_t tz_base_mib;
|
||||
size_t tz_size_mib;
|
||||
size_t ttb_size_mib;
|
||||
struct memranges *map = &t132_mmap_ranges;
|
||||
|
||||
tegra132_memrange_init(map);
|
||||
|
|
@ -92,7 +93,7 @@ void tegra132_mmu_init(void)
|
|||
/* Place page tables at the base of the trust zone region. */
|
||||
carveout_range(CARVEOUT_TZ, &tz_base_mib, &tz_size_mib);
|
||||
tz_base_mib *= MiB;
|
||||
tz_size_mib *= MiB;
|
||||
mmu_init(map, (void *)tz_base_mib, tz_size_mib);
|
||||
ttb_size_mib = TTB_SIZE * MiB;
|
||||
mmu_init(map, (void *)tz_base_mib, ttb_size_mib);
|
||||
mmu_enable(tz_base_mib);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,4 +22,7 @@
|
|||
|
||||
void tegra132_mmu_init(void);
|
||||
|
||||
/* Default ttb size of 1MiB */
|
||||
#define TTB_SIZE 0x1
|
||||
|
||||
#endif //__SOC_NVIDIA_TEGRA132_MMU_OPERATIONS_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue