diff options
author | 2023-04-11 17:31:38 +0800 | |
---|---|---|
committer | 2023-04-13 11:59:26 +0200 | |
commit | 3df9bdd4ae8e41b526906f2f6e9fa2470a9bbbe0 (patch) | |
tree | 5cd70148f950b78a53dd7ff40cdf4e92426e121c /scripts/generate_rust_analyzer.py | |
parent | iommu/mediatek: mt8186: Add iova_region_larb_msk (diff) | |
download | wireguard-linux-3df9bdd4ae8e41b526906f2f6e9fa2470a9bbbe0.tar.xz wireguard-linux-3df9bdd4ae8e41b526906f2f6e9fa2470a9bbbe0.zip |
iommu/mediatek: Add a gap for the iova regions
As the removed property in the vcodec dt-binding, the property is:
dma-ranges = <0x1 0x0 0x0 0x40000000 0x0 0xfff00000>;
The length is 0xfff0_0000 rather than 0x1_0000_0000, this means it
requires 1M as a gap. This is because the end address for some vcodec
HW is (address + size). If the size is 4G, the end address may be
0x2_0000_0000, and the width for vcodec register only is 32, then the
HW may get the ZERO address.
Currently the consumer's dma-ranges property doesn't work, IOMMU
has to consider this case. Add a bigger gap(8M) for all the regions
to avoid it.
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230411093144.2690-9-yong.wu@mediatek.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions