]> 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)
commit9c8d916d9b118790a2083fc158e95fd53d18444f
tree78658f1cf02b8c511195ad9a6c927b71ee143625
parentf0acc9074d848c9b5df78680d7b66a2f40b6de53
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