arm64/efi: efistub: don't abort if base of DRAM is occupied
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 30 Jul 2014 10:59:04 +0000 (11:59 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 8 Sep 2014 13:39:18 +0000 (14:39 +0100)
commit58015ec6b8e13c980c20d9fff3f986838c004348
treeeb51ff76d4989002b805512558bc09133bc8d807
parentc16173fa568582113145daee70fc317b10bc51e0
arm64/efi: efistub: don't abort if base of DRAM is occupied

If we cannot relocate the kernel Image to its preferred offset of base of DRAM
plus TEXT_OFFSET, instead relocate it to the lowest available 2 MB boundary plus
TEXT_OFFSET. We may lose a bit of memory at the low end, but we can still
proceed normally otherwise.

Acked-by: Mark Salter <msalter@redhat.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Leif Lindholm <leif.lindholm@linaro.org>
Tested-by: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/efi-stub.c