aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorArd Biesheuvel <[email protected]>2015-08-18 10:34:42 +0100
committerWill Deacon <[email protected]>2015-08-24 10:23:19 +0100
commit34ba2c4247e5c4b1542b1106e156af324660c4f0 (patch)
tree93a7a4fe3e637e9c481c9448e25427a72e62e67e /lib/mpi/mpiutil.c
parent8eafeb48022816513abc4f440bdad4c350fe81a3 (diff)
arm64: set MAX_MEMBLOCK_ADDR according to linear region size
The linear region size of a 39-bit VA kernel is only 256 GB, which may be insufficient to cover all of system RAM, even on platforms that have much less than 256 GB of memory but which is laid out very sparsely. So make sure we clip the memory we will not be able to map before installing it into the memblock memory table, by setting MAX_MEMBLOCK_ADDR accordingly. Reviewed-by: Catalin Marinas <[email protected]> Tested-by: Stuart Yoder <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions