u-boot/board
Marek Szyprowski 6b3d18c2cb rpi: limit size of the RAM to the multiple of the MMU_SECTION_SIZE
When RPi4 is booted from USB Mass Storage, the firmware reports 947MiB of
the ARM memory (948 in case of the standard SD-card boot). This value is
not MMU_SECTION_SIZE aligned, so the dram_bank_mmu_setup() skips mapping
of the last 1MiB. This later causes u-boot in ARM 32bit mode to freeze,
because it relocated itself into that unmapped memory and fails to
execute.

Fix this by limiting the size of the first bank to the multiple of
MMU_SECTION_SIZE.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
2021-02-18 11:56:25 +01:00
..
abilis/tb100 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
advantech common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
alliedtelesis common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
altera Merge branch '2021.04-rc' of https://github.com/lftan/u-boot 2021-01-15 07:55:11 -05:00
amarula/vyasa-rk3288
amazon/kc1 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
amlogic Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
AndesTech Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
Arcturus/ucp1020 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
aries/mcvevk
aristainetos common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
armadeus common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
armltd common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
aspeed configs: aspeed: Add defconfig for AST2600 EVB 2021-01-18 15:23:06 -05:00
astro/mcf5373l common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
atmark-techno/armadillo-800eva common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
atmel common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
avionic-design common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
bachmann/ot1200 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
barco common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
beacon Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
beckhoff/mx53cx9020 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
birdland/bav335x arm: Remove bav335x board 2020-07-09 20:58:05 +05:30
bitmain/antminer_s9 xilinx: Introduce board_late_init_xilinx() 2020-04-27 13:57:17 +02:00
bluewater common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
bosch common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
boundary/nitrogen6x common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
broadcom common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
bticino/mamoj common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
buffalo/lsxl common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
BuR common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
BuS/eb_cpu5282 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
cadence/xtfpga dm: Rename U_BOOT_DEVICE() to U_BOOT_DRVINFO() 2021-01-05 12:26:35 -07:00
calao/usb_a9263 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
CarMediaLab/flea3 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
cavium/thunderx common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ccv/xpress common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
cei/cei-tk1-som
chipspark/popmetal_rk3288
cirrus/edb93xx common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
cloudengines/pogo_e02 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
cobra5272 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
compal/paz00 common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
compulab common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
comtrend
congatec common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
coreboot common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
corscience/tricorder common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
cortina common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
creative/xfi3 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
cssi common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
CZ.NIC common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
d-link/dns325 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
davinci/da8xxevm common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
devboards/dbm-soc1
dfi x86: dfi: dfi-bt700: Remove dead code 2020-09-01 13:38:39 +08:00
dhelectronics common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ea/mx7ulp_com common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ebv/socrates
eets/pdu001 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
efi x86: efi: efi-x86_payload: Remove dead code 2020-09-01 13:38:39 +08:00
egnite/ethernut5 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
el/el6x common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
elgin/elgin_rv1108 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
embest/mx6boards common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
emulation common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
engicam common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
esd common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
firefly common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
freescale Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
friendlyarm common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
gardena common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
gateworks/gw_ventana common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
gdsys common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ge common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
geekbuying/geekbox
google Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
grinn common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
hardkernel/odroid_go2 rockchip: board: add Hardkernel Odroid Go2 board 2020-07-22 20:21:23 +08:00
highbank common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
hisilicon common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
huawei/hg556a
ids/ids8313 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
imgtec common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
intel Merge branch '2021.04-rc' of https://github.com/lftan/u-boot 2021-01-15 07:55:11 -05:00
inversepath/usbarmory common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
iomega/iconnect common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
is1
isee common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
k+p common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
keymile Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
kmc/kzm9g common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
kobol/helios4 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
kontron/sl28 Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
kosagi/novena common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
l+g/vinco common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
LaCie common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
laird common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
lego/ev3 Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
lg/sniper common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
liebherr common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
logicpd common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
Marvell Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
maxbcm common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mediatek common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
menlo/m53menlo common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
microchip common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mikrotik/crs3xx-98dx3236 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mini-box/picosam9g45 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc8308_p1m common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mqmaker/miqi_rk3288
mscc common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
myir/mys_6ulx common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
netgear common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
nokia/rx51 Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
novtech/meerkat96 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
nvidia dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() 2021-01-05 12:26:35 -07:00
olimex/mx23_olinuxino common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
opalkelly/zynq
phytec common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
phytium/durian common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
pine64 rockchip: Add initial support for the Pinebook Pro laptop from Pine64. 2020-05-31 22:22:07 +08:00
ppcag/bg0900 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
qca common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
qemu-mips common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
qualcomm common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
radxa
raidsonic/ib62x0 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
raspberrypi/rpi rpi: limit size of the RAM to the multiple of the MMU_SECTION_SIZE 2021-02-18 11:56:25 +01:00
renesas Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
rockchip common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ronetix common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
sagem/f@st1704
samsung common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
sandbox common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
sandisk/sansa_fuze_plus common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
sbc8349 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
sbc8548 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
sbc8641d common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
schulercontrol/sc_sps_1 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
Seagate common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
seco common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
seeed/linkit-smart-7688 common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sfr/nb4_ser
siemens common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
sifive/fu540 dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() 2021-01-05 12:26:35 -07:00
sipeed/maix riscv: Add support for SPI on Kendryte K210 2021-01-18 11:06:26 +08:00
sks-kinkel/sksimx6 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
socrates common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
softing common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
solidrun common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
somlabs/visionsom-6ull common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
spear treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
sr1500 common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
st common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ste/stemmy common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
sunxi common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
Synology common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
synopsys common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
sysam common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
syteco/zmx25 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
tbs/tbs2910 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
tcl/sl50 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
technexion common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
technologic common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
terasic
theadorable Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
theobroma-systems rockchip: puma: drop special handling of usb host regulator 2020-06-07 18:57:16 +08:00
ti common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
timll common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
topic/zynq board: topic-miami: Set FCLK1 to 150MHz 2020-06-24 13:11:08 +02:00
toradex common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
tplink/wdr4300 common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tqc common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
udoo common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
vamrs/rock960_rk3399 rockchip: Remove ARCH= references from documentation 2020-06-02 17:27:04 -04:00
variscite/dart_6ul common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
varisys common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ve8313 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
vocore/vocore2 mips: Add support for SoM "VoCore2". 2020-04-27 20:30:14 +02:00
vscom/baltos common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
wandboard common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
warp common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
warp7 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
work-microwave/work_92105 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
xen/xenguest_arm64 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
xes common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
xilinx common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
zyxel/nsa310s common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00