arm64: mvebu: Fix A8K memory mapping and add documentation
Subsystems (3)
PATCH 1/1 arm64: mvebu: Fix A8K memory mapping and add documentation
From: Konstantin Porotchkin <[email protected]>
Fix the MMU mapping for A8K device family:
- Separate CP110 master and slave memory regions
- Fix memory regions by including IO mapping for all 3 PCIe interfaces existing on each connected CP110 controller
This patch fixes the "Synchronous Abort" exception triggered by RW access to PCI0 or PCI1 memory regions.
Add A8K memory mapping documentation with all regions configured by Marvell ATF.
Signed-off-by Konstantin Porotchkin <[email protected]>
Reviewed-by Stefan Roese <[email protected]>
Cc Stefan Roese <[email protected]>
Cc Nadav Haklai <[email protected]>
Cc Neta Zur Hershkovits <[email protected]>
Cc Omri Itach <[email protected]>
Cc Igal Liberman <[email protected]>
Cc Haim Boot <[email protected]>
Cc Hanna Hawa <[email protected]>
--- arch/arm/mach-mvebu/armada8k/cpu.c | 17 +++++++++--- doc/mvebu/armada-8k-memory.txt | 56 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 4 deletions(-) create mode 100644 doc/mvebu/armada-8k-memory.txt
arch/arm/mach-mvebu/armada8k/cpu.c +13 -4
@@ -21,6 +21,7 @@ DECLARE_GLOBAL_DATA_PTR;#define RFU_GLOBAL_SW_RST (MVEBU_RFU_BASE + 0x84)#define RFU_SW_RESET_OFFSET 0 +/* For a detailed memory map, please see doc/mvebu/armada-8k-memory.txt */ static struct mm_region mvebu_mem_map[] = { {/* RAM */
@@ -55,10 +56,18 @@ static struct mm_region mvebu_mem_map[] = {PTE_BLOCK_NON_SHARE }, { -/* PCI regions */ - .phys = 0xf8000000UL, - .virt = 0xf8000000UL, - .size = 0x08000000UL, /* 128MiB PCI space (master & slave) */ +/* PCI CP0 regions */ + .phys = 0xf6000000UL, + .virt = 0xf6000000UL, + .size = 0x04000000UL, /* 64MiB CP110 master PCI space */ + .attrs =PTE_BLOCK_MEMTYPE (MT_DEVICE_NGNRNE ) | +PTE_BLOCK_NON_SHARE + }, + { +/* PCI CP1 regions */ + .phys = 0xfa000000UL, + .virt = 0xfa000000UL, + .size = 0x04000000UL, /* 64MiB CP110 slave PCI space */ .attrs =PTE_BLOCK_MEMTYPE (MT_DEVICE_NGNRNE ) |PTE_BLOCK_NON_SHARE },
doc/mvebu/armada-8k-memory.txt new file +56 -0
56 lines not on this page · raw message
Signature · 1 line
2.7.4