• Hans de Goede's avatar
    sunxi: mctl_mem_matches: Add missing memory barrier · bfb33f0b
    Hans de Goede authored
    We are running with the caches disabled when mctl_mem_matches gets called,
    but the cpu's write buffer is still there and can still get in the way,
    add a memory barrier to fix this.
    
    This avoids mctl_mem_matches always returning false in some cases, which
    was resulting in:
    
    U-Boot SPL 2015.07 (Apr 14 2016 - 18:47:26)
    DRAM: 1024 MiB
    
    U-Boot 2015.07 (Apr 14 2016 - 18:47:26 +0200) Allwinner Technology
    
    CPU:   Allwinner A23 (SUN8I)
    DRAM:  512 MiB
    
    Where 512 MiB is the right amount, but the DRAM controller would be
    initialized for 1024 MiB.
    Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
    Acked-by: default avatarIan Campbell <ijc@hellion.org.uk>
    bfb33f0b
Name
Last commit
Last update
..
arc Loading commit data...
arm Loading commit data...
avr32 Loading commit data...
blackfin Loading commit data...
m68k Loading commit data...
microblaze Loading commit data...
mips Loading commit data...
nds32 Loading commit data...
nios2 Loading commit data...
openrisc Loading commit data...
powerpc Loading commit data...
sandbox Loading commit data...
sh Loading commit data...
sparc Loading commit data...
x86 Loading commit data...
.gitignore Loading commit data...
Kconfig Loading commit data...