提交 f7129a0e 编写于 作者: L Laurent Pinchart

iommu/omap: Fix 'no page for' debug message in flush_iotlb_page()

The flush_iotlb_page() function prints a debug message when no
corresponding page was found in the TLB. That condition is incorrectly
checked and always resolves to true, given that the for_each_iotlb_cr()
loop is never interrupted and always reaches obj->nr_tlb_entries.

Given that we can't have two TLB entries for the same VA, break from the
loop when a match is found.
Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: NSuman Anna <s-anna@ti.com>
上级 5acc97db
...@@ -394,6 +394,7 @@ static void flush_iotlb_page(struct omap_iommu *obj, u32 da) ...@@ -394,6 +394,7 @@ static void flush_iotlb_page(struct omap_iommu *obj, u32 da)
__func__, start, da, bytes); __func__, start, da, bytes);
iotlb_load_cr(obj, &cr); iotlb_load_cr(obj, &cr);
iommu_write_reg(obj, 1, MMU_FLUSH_ENTRY); iommu_write_reg(obj, 1, MMU_FLUSH_ENTRY);
break;
} }
} }
pm_runtime_put_sync(obj->dev); pm_runtime_put_sync(obj->dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册