UPSTREAM: iommu/rockchip: Reconstruct to support multi slaves
authorZhengShunQian <zhengsq@rock-chips.com>
Tue, 19 Jan 2016 07:03:00 +0000 (15:03 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 18 Mar 2016 12:43:56 +0000 (20:43 +0800)
commitffc340d37dd1d7705330d863c42ba33cc60239f5
tree2ed3512fe04d1a56131e3211aa42ede593ddae69
parente11b4aa8cdcf11c21d194e8adb7dc0819ed26bad
UPSTREAM: iommu/rockchip: Reconstruct to support multi slaves

There are some IPs, such as video encoder/decoder, contains 2 slave iommus,
one for reading and the other for writing. They share the same irq and
clock with master.

This patch reconstructs to support this case by making them share the same
Page Directory, Page Tables and even the register operations.
That means every instruction to the reading MMU registers would be
duplicated to the writing MMU and vice versa.

Change-Id: I3fd473898274cffcfb46c907b34bd3a4adc29250
Signed-off-by: ZhengShunQian <zhengsq@rock-chips.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Simon <xxm@rock-chips.com>
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
(cherry picked from commit cd6438c5f8446691afa4829fe1a9d7b656204f11)
drivers/iommu/rockchip-iommu.c