commit | 6bb7314bb10f83a6258989cf5b5e41e371eb4dea | [log] [tgz] |
---|---|---|
author | Cindy Liu <hcindyl@google.com> | Thu Oct 29 15:38:52 2020 -0700 |
committer | Cindy Liu <hcindyl@google.com> | Thu Oct 29 15:38:52 2020 -0700 |
tree | 72222501f2b2c9dd46c3db49f8e7c4a64c51153e | |
parent | 6d875d910d1453e03a51e046cc9af382f95f3984 [diff] |
Downgrade headless IOMMU error log In headless video playback/camera streaming, there's iommu error trying to access the sink mmap https://paste.googleplex.com/6177952128565248 https://paste.googleplex.com/5182584062476288 Downgrade those messages so the kernel log would not be swamped. Change-Id: I15b12aab21b398e5566f0d260cc2feedc76a3263
diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c index 3d1415c..fd4d34a 100644 --- a/drivers/iommu/mtk_iommu.c +++ b/drivers/iommu/mtk_iommu.c
@@ -272,7 +272,7 @@ if (report_iommu_fault(&dom->domain, data->dev, fault_iova, write ? IOMMU_FAULT_WRITE : IOMMU_FAULT_READ)) { - if (fault_larb == 0 && fault_port == 3 && fault_pa == 0) { + if ((fault_port == 3 || (fault_larb == 0 && fault_port == 7)) && fault_pa == 0) { dev_dbg_ratelimited( data->dev, "fault type=0x%x iova=0x%x pa=0x%x larb=%d port=%d layer=%d %s\n",