alistair23-linux/arch
Thomas Petazzoni 79e1c5e70b arch/sh: pcie-sh7786: adjust the memory mapping
The code setting up the PCI -> SuperHighway mapping doesn't take into
account the fact that the address stored in PCIELARx must be aligned
with the size stored in PCIELAMRx.

For example, when your physical memory starts at 0x0800_0000 (128 MB),
a size of 64 MB or 128 MB is fine. However, if you have 256 MB of
memory, it doesn't work because the base address is not aligned on the
size.

In such situation, we have to round down the base address to make sure
it is aligned on the size of the area. For for a 0x0800_0000 base
address with 256 MB of memory, we will round down to 0x0, and extend
the size of the mapping to 512 MB.

This allows the mapping to work on platforms that have 256 MB of
RAM. The current setup would only work with 128 MB of RAM or less.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Rich Felker <dalias@libc.org>
2018-04-12 19:47:58 -04:00
..
alpha locking/xchg/alpha: Fix xchg() and cmpxchg() memory ordering bugs 2018-02-23 08:38:16 +01:00
arc ARC fixes for 4.16-rc4 2018-03-01 14:32:23 -08:00
arm ARM: SoC fixes for 4.16 2018-03-28 13:52:13 -10:00
arm64 ARM: SoC fixes for 4.16 2018-03-28 13:52:13 -10:00
blackfin
c6x
cris
frv
h8300 h8300: remove extraneous __BIG_ENDIAN definition 2018-03-22 17:07:01 -07:00
hexagon
ia64 ia64/err-inject: fix spelling mistake: "capapbilities" -> "capabilities" 2018-03-05 14:44:53 -08:00
m32r
m68k
metag
microblaze microblaze: switch to NO_BOOTMEM 2018-03-16 12:51:27 +01:00
mips MIPS: ralink: Fix booting on MT7621 2018-03-22 00:06:30 +00:00
mn10300
nios2
openrisc
parisc parisc: Handle case where flush_cache_range is called with no context 2018-03-17 11:49:39 +01:00
powerpc KVM fixes for v4.16-rc8 2018-03-30 07:24:14 -10:00
riscv riscv/barrier: Define __smp_{mb,rmb,wmb} 2018-02-26 08:44:50 -08:00
s390 KVM fixes for v4.16-rc5 2018-03-09 16:59:19 -08:00
score
sh arch/sh: pcie-sh7786: adjust the memory mapping 2018-04-12 19:47:58 -04:00
sparc sparc64: Fix regression in pmdp_invalidate(). 2018-03-15 14:18:00 -07:00
tile
um
unicore32
x86 Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-03-31 07:59:00 -10:00
xtensa
.gitignore
Kconfig