mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-12 07:57:21 +00:00
97a72bc286
On Gen5, when the FPGA is loaded and there was some prior interaction between the HPS and the FPGA via bridges (e.g. Linux was running and using some of the IPs in the FPGA) followed by warm reset, it has been observed that there might be outstanding unfinished transactions. This leads to an obscure misbehavior of the bridge. When the bridge is enabled again in U-Boot and there are outstanding transactions, a read from within the bridge address range would return a result of the previous read instead. Example: => bridge enable ; md 0xff200000 1 ff200000: 1234abcd => bridge enable ; md 0xff200010 1 ff200010: 5678dcba <------- this is in fact a value which is stored in a memory at 0xff200000 => bridge enable ; md 0xff200000 1 ff200000: 90effe09 <------- this is in fact a value which is stored in a memory at 0xff200010 and so it continues. Issuing a write does lock the system up completely. This patch opens the FPGA bridges in 'bridge enable' command, the tears them down again, and then opens them again. This allows these outstanding transactions to complete and makes this misbehavior go away. However, it is not entirely clear whether this is the correct solution. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Chin Liang See <chin.liang.see@intel.com> Cc: Dalon Westergreen <dwesterg@gmail.com> Cc: Dinh Nguyen <dinguyen@kernel.org> Cc: Ley Foon Tan <ley.foon.tan@intel.com> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Cc: Tien Fong Chee <tien.fong.chee@intel.com> Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com> |
||
---|---|---|
.. | ||
include/mach | ||
board.c | ||
clock_manager.c | ||
clock_manager_arria10.c | ||
clock_manager_gen5.c | ||
clock_manager_s10.c | ||
fpga_manager.c | ||
freeze_controller.c | ||
Kconfig | ||
mailbox_s10.c | ||
Makefile | ||
misc.c | ||
misc_arria10.c | ||
misc_gen5.c | ||
misc_s10.c | ||
mmu-arm64_s10.c | ||
pinmux_arria10.c | ||
qts-filter.sh | ||
reset_manager_arria10.c | ||
reset_manager_gen5.c | ||
reset_manager_s10.c | ||
scan_manager.c | ||
spl_a10.c | ||
spl_gen5.c | ||
spl_s10.c | ||
system_manager_gen5.c | ||
system_manager_s10.c | ||
timer.c | ||
timer_s10.c | ||
wrap_iocsr_config.c | ||
wrap_pinmux_config.c | ||
wrap_pinmux_config_s10.c | ||
wrap_pll_config.c | ||
wrap_pll_config_s10.c | ||
wrap_sdram_config.c |