kernel_optimize_test/drivers/of
Srinivas Kandagatla 9aacd602f0 of/fdt: fix memory range check
In cases where board has below memory DT node

memory{
	device_type = "memory";
	reg = <0x80000000 0x80000000>;
};

Check on the memory range in fdt.c will always fail because it is
comparing MAX_PHYS_ADDR with base + size, in fact it should compare
it with base + size - 1.

This issue was originally noticed on Qualcomm IFC6410 board.
Without this patch kernel shows up noticed unnecessary warnings

[    0.000000] Machine model: Qualcomm APQ8064/IFC6410
[    0.000000] Ignoring memory range 0xffffffff - 0x100000000
[    0.000000] cma: Reserved 64 MiB at ab800000

as a result the size get reduced to 0x7fffffff which looks wrong.

This patch fixes the check involved in generating this warning and
as a result it also fixes the wrong size calculation.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
[grant.likely: adjust new size calculation also]
Signed-off-by: Grant Likely <grant.likely@linaro.org>
2014-09-25 11:55:50 +01:00
..
testcase-data
address.c
base.c of: make sure of_alias is initialized before accessing it 2014-09-08 15:57:26 +01:00
device.c
dynamic.c of: Disabling OF functions that use sysfs if CONFIG_SYSFS disabled 2014-09-08 15:57:25 +01:00
fdt_address.c
fdt.c of/fdt: fix memory range check 2014-09-25 11:55:50 +01:00
irq.c of/irq: Fix lookup to use 'interrupts-extended' property first 2014-08-16 09:03:58 +01:00
Kconfig
Makefile
of_mdio.c
of_mtd.c
of_net.c
of_pci_irq.c
of_pci.c
of_private.h
of_reserved_mem.c
pdt.c
platform.c
selftest.c Enabling OF selftest to run without machine's devicetree 2014-08-16 09:03:56 +01:00