diff options
| author | Yong Wu <[email protected]> | 2023-04-11 09:31:38 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2023-04-13 09:59:26 +0000 |
| commit | 3df9bdd4ae8e41b526906f2f6e9fa2470a9bbbe0 (patch) | |
| tree | 5cd70148f950b78a53dd7ff40cdf4e92426e121c /tools/perf/scripts/python/sctop.py | |
| parent | iommu/mediatek: mt8186: Add iova_region_larb_msk (diff) | |
| download | kernel-3df9bdd4ae8e41b526906f2f6e9fa2470a9bbbe0.tar.gz kernel-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 <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions
