CHROMIUM: iommu/rockchip: Fix TLB flush of secondary IOMMUs
authorTomasz Figa <tfiga@chromium.org>
Tue, 16 Aug 2016 03:41:16 +0000 (12:41 +0900)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 30 Nov 2016 06:09:04 +0000 (14:09 +0800)
commite1b2457124c65cc66b132a3727dfebc53e359924
tree5d4ce0c7869d6788658ffc3c0fab52051613fd6e
parentda6e598940eeb0841baa414061d27cc6a744615e
CHROMIUM: iommu/rockchip: Fix TLB flush of secondary IOMMUs

Due to the bug in current code, only first IOMMU has the TLB lines
flushed in rk_iommu_zap_lines. This patch fixes the inner loop to
execute for all IOMMUs and properly flush the TLB.

BUG=chrome-os-partner:55135
TEST=compile

Change-Id: Ica2d4b0cc3d3cbc88c70ad541dc00883f1b4e90c
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/371098
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Randy Li <randy.li@rock-chips.com>
drivers/iommu/rockchip-iommu.c