diff options
author | Yong Wu <[email protected]> | 2023-08-19 16:14:43 +0800 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2023-09-25 11:34:02 +0200 |
commit | b07eba71a512eb196cbcc29765c29c8c29b11b59 (patch) | |
tree | f100263ac5a6fc4c4e91f856635d1c838050e079 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 6465e260f48790807eef06b583b38ca9789b6072 (diff) |
iommu/mediatek: Fix share pgtable for iova over 4GB
In mt8192/mt8186, there is only one MM IOMMU that supports 16GB iova
space, which is shared by display, vcodec and camera. These two SoC use
one pgtable and have not the flag SHARE_PGTABLE, we should also keep
share pgtable for this case.
In mtk_iommu_domain_finalise, MM IOMMU always share pgtable, thus remove
the flag SHARE_PGTABLE checking. Infra IOMMU always uses independent
pgtable.
Fixes: cf69ef46dbd9 ("iommu/mediatek: Fix two IOMMU share pagetable issue")
Reported-by: Laura Nao <[email protected]>
Closes: https://lore.kernel.org/linux-iommu/[email protected]/
Signed-off-by: Yong Wu <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Tested-by: Laura Nao <[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