video: rockchip: mpp: fix iommu fault irq triggered repeatedly

Add mask iommu irq in iommu fault handle func to prevent iommu trigger
pagefault repeatedly.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I11c9b918e3a9c3af576b7f82cbdc7dbeb960dbd8
This commit is contained in:
Yandong Lin 2023-10-10 10:07:45 +08:00
commit de1cbb0ebd

View file

@ -463,6 +463,12 @@ static int mpp_iommu_handle(struct iommu_domain *iommu,
else
mpp_task_dump_hw_reg(mpp);
/*
* Mask iommu irq, in order for iommu not repeatedly trigger pagefault.
* Until the pagefault task finish by hw timeout.
*/
rockchip_iommu_mask_irq(mpp->dev);
return 0;
}