arch: mach-k3: Fix incorrect mapping of higher DDR addresses as device memory
authorSekhar Nori <nsekhar@ti.com>
Tue, 9 Jan 2024 08:45:51 +0000 (14:15 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 19 Jan 2024 01:24:12 +0000 (20:24 -0500)
commit22d238f25de92f0c606d55a66b85414b320f7d1c
treebfadd247a4c46a00fc51d4156fcb983542f1e787
parent2d30b293c8e105279fdab0a83029483dbd49b42e
arch: mach-k3: Fix incorrect mapping of higher DDR addresses as device memory

Entry for physical address 0x500000000 in memory map table for MMU
configuration is spilling over and inadvertently making DDR available at
higher address (above 4GB address space) get mapped as device memory
(nGnRnE).

Fix this by adjusting entry size. Tested on AM62A SK. Before this patch:

=> time crc32 0x881000000 0x20000000
crc32 for 881000000 ... 8a0ffffff ==> 7f34d7ca

time: 1 minutes, 14.716 seconds

After patch:

=> time crc32 0x881000000 0x20000000
crc32 for 881000000 ... 8a0ffffff ==> 7f34d7ca

time: 2.710 seconds

Acked-by: Andrew Davis <afd@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Reviewed-by: Nishanth Menon <nm@ti.com>
arch/arm/mach-k3/arm64-mmu.c