diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-01-09 19:59:04 +0300 |
---|---|---|
committer | Andrew Lunn <andrew@lunn.ch> | 2015-01-20 01:09:16 +0300 |
commit | 1737cac6936938a9bc52c03c4a3ff2032c702fa5 (patch) | |
tree | 7b9fe5e057ca940bab429cd17eaf9a1173494828 /include/dt-bindings | |
parent | 7fdf3d8a0316ce31f87513f903addcb8f3b0dfb2 (diff) | |
download | linux-1737cac6936938a9bc52c03c4a3ff2032c702fa5.tar.xz |
bus: mvebu-mbus: make sure SDRAM CS for DMA don't overlap the MBus bridge window
The mvebu-mbus driver reads the SDRAM window registers, and make the
information about the DRAM CS configuration available to device
drivers using the mv_mbus_dram_info() API. This information is used by
the DMA-capable device drivers to program their address decoding
windows.
Until now, we were basically providing the SDRAM window register
details as is. However, it turns out that the DMA capability of the
CESA cryptographic engine consists in doing DMA being the DRAM and the
crypto SRAM mapped as a MBus window. For this case, it is very
important that the SDRAM CS information does not overlap with the MBus
bridge window.
Therefore, this commit improves the mvebu-mbus driver to make sure we
adjust the SDRAM CS information so that it doesn't overlap with the
MBus bridge window. This problem was reported by Boris Brezillon,
while working on the mv_cesa driver for Armada 37x/38x/XP. We use the
memblock memory information to know where the usable RAM is located,
as this information is guaranteed to be correct on all SoC variants.
We could have used the MBus bridge window registers on Armada 370/XP,
but they are not really used on Armada 375/38x (Cortex-A9 based),
since the PL310 L2 filtering is used instead to discriminate between
RAM accesses and I/O accesses. Therefore, using the memblock
information is more generic and works accross the different platforms.
Reported-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
[Andrew Lunn <andrew@lunn.ch>: Fixed merge conflict]
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Diffstat (limited to 'include/dt-bindings')
0 files changed, 0 insertions, 0 deletions