]> git.baikalelectronics.ru Git - kernel.git/commit
of/fdt: split off FDT self reservation from memreserve processing
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 1 Jun 2015 11:40:31 +0000 (13:40 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 2 Jun 2015 15:31:25 +0000 (16:31 +0100)
commit9f358de440cf822b4f220e9666c07f6b9d8b2153
tree78658f1cf02b8c511195ad9a6c927b71ee143625
parentfc8d7ddc2763607ae9f26d3ebb83cf0a6ee7ec27
of/fdt: split off FDT self reservation from memreserve processing

This splits off the reservation of the memory occupied by the FDT
binary itself from the processing of the memory reservations it
contains. This is necessary because the physical address of the FDT,
which is needed to perform the reservation, may not be known to the
FDT driver core, i.e., it may be mapped outside the linear direct
mapping, in which case __pa() returns a bogus value.

Cc: Russell King <linux@arm.linux.org.uk>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm/mm/init.c
arch/arm64/mm/init.c
arch/powerpc/kernel/prom.c
drivers/of/fdt.c
include/linux/of_fdt.h