]> git.baikalelectronics.ru Git - uboot.git/commit
ARM: rmobile: Generate fitting mem_map on Gen3
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Wed, 31 Oct 2018 14:06:50 +0000 (15:06 +0100)
committerMarek Vasut <marex@denx.de>
Fri, 2 Nov 2018 14:57:13 +0000 (15:57 +0100)
commit0769e05c3c6b2621340d4cc3cfba7ef9384c2bd0
tree9be74259d29df83bd05b2a3a06353633eeb441cc
parentb1afa3fd6f41f308af6063c5621337f51ee1d91a
ARM: rmobile: Generate fitting mem_map on Gen3

Patch "ARM: rmobile: Mark 4-64GiB as DRAM on Gen3" marked the entire
64bit DRAM space as cachable. On CortexA57, this might result in odd
side effects, where the CPU tries to prefetch from those areas and if
there is no DRAM backing them, CPU bus hang can happen.

This patch fixes it by generating the mem_map structure based on the
actual memory layout obtained from the DT, thus not marking areas
without any DRAM behind them as cachable.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Fixes: 2f8336bb8cf3b ("ARM: rmobile: Mark 4-64GiB as DRAM on Gen3")
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/arm/mach-rmobile/cpu_info.c
arch/arm/mach-rmobile/memmap-gen3.c