projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8167b6
)
rk3368: iommu: workaround for switch between vpu and hevc
author
Simon
<xxm@rock-chips.com>
Thu, 2 Apr 2015 09:51:53 +0000
(17:51 +0800)
committer
Simon
<xxm@rock-chips.com>
Fri, 17 Apr 2015 03:11:12 +0000
(11:11 +0800)
vpu/hevc share the same ahb, when switch vpu and hevc,may cause
iommu error,to avoid this error,skip invalidate iommu tlb when iovmm_map
Signed-off-by: Simon <xxm@rock-chips.com>
drivers/iommu/rockchip-iommu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/rockchip-iommu.c
b/drivers/iommu/rockchip-iommu.c
index 8ed83e55f3f3a162a54057e6e9a644595ef04742..005e91c1271b9d7a3b4f985eaa696e9f2d004671 100644
(file)
--- a/
drivers/iommu/rockchip-iommu.c
+++ b/
drivers/iommu/rockchip-iommu.c
@@
-759,6
+759,9
@@
int rockchip_iommu_tlb_invalidate(struct device *dev)
unsigned long flags;
struct iommu_drvdata *data = dev_get_drvdata(dev->archdata.iommu);
+ if (strstr(data->dbgname, "vpu") || strstr(data->dbgname, "hevc"))
+ return 0;
+
spin_lock_irqsave(&data->data_lock, flags);
if (rockchip_is_iommu_active(data)) {