]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/commit
ARM: zynq: Reserve correct amount of non-DMA RAM
authorKyle Roeschley <kyle.roeschley@ni.com>
Mon, 31 Oct 2016 16:26:17 +0000 (11:26 -0500)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 20 Jul 2017 13:41:30 +0000 (15:41 +0200)
commit7c415150cdd61191bad4f5aeba38c22d875500c1
tree24afb184e0aeab775931b1e0b575dc7f1f30f84d
parent1a85da4113425387660d7634eba91b6deef864d1
ARM: zynq: Reserve correct amount of non-DMA RAM

On Zynq, we haven't been reserving the correct amount of DMA-incapable
RAM to keep DMA away from it (per the Zynq TRM Section 4.1, it should be
the first 512k). In older kernels, this was masked by the
memblock_reserve call in arm_memblock_init(). Now, reserve the correct
amount excplicitly rather than relying on swapper_pg_dir, which is an
address and not a size anyway.

Fixes: 46f5b96 ("ARM: zynq: Reserve not DMAable space in front of the
kernel")

Signed-off-by: Kyle Roeschley <kyle.roeschley@ni.com>
Tested-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/mach-zynq/common.c