diff options
author | Yong Wu <yong.wu@mediatek.com> | 2023-04-11 12:31:38 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2023-04-13 12:59:26 +0300 |
commit | 3df9bdd4ae8e41b526906f2f6e9fa2470a9bbbe0 (patch) | |
tree | 5cd70148f950b78a53dd7ff40cdf4e92426e121c /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | f5d4233ad373a1b0ab7c5d10f9b6e79619ecf194 (diff) | |
download | linux-3df9bdd4ae8e41b526906f2f6e9fa2470a9bbbe0.tar.xz |
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 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions