Patrick Rudolph uploaded patch set #3 to this change.

View Change

arch/arm64/armv8/mmu: Add support for 48bit VA

The VA space needs to be extended to support 48bit, as on Cavium SoCs
the MMIO starts at 1 << 47.

The following changes were done:
* Add a Kconfig to define the VA space on platform level and support
64KB granular size for VA > 39.
* Decide to use either 4KB granule or 64KB granule depending on
supported VA space.
* Add helper functions for different page level sizes
* Add asserts to make sure that the address is withing the VA
* Don't use BLOCK in level1 if not on 4KB granule

Tested on Cavium SoC.
Needs tests on other platforms.

Change-Id: I89e6a4809b6b725c3945bad7fce82b0dfee7c262
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
---
M src/arch/arm64/armv8/Kconfig
M src/arch/arm64/armv8/mmu.c
M src/arch/arm64/include/armv8/arch/mmu.h
3 files changed, 120 insertions(+), 34 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/70/24970/3

To view, visit change 24970. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I89e6a4809b6b725c3945bad7fce82b0dfee7c262
Gerrit-Change-Number: 24970
Gerrit-PatchSet: 3
Gerrit-Owner: Patrick Rudolph <patrick.rudolph@9elements.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>