aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorYong Wu <[email protected]>2023-04-11 17:31:38 +0800
committerJoerg Roedel <[email protected]>2023-04-13 11:59:26 +0200
commit3df9bdd4ae8e41b526906f2f6e9fa2470a9bbbe0 (patch)
tree5cd70148f950b78a53dd7ff40cdf4e92426e121c /lib/test_fortify/write_overflow-strncpy-src.c
parentf5d4233ad373a1b0ab7c5d10f9b6e79619ecf194 (diff)
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 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions