]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/rockchip: Reconstruct to support multi slaves
authorZhengShunQian <zhengsq@rock-chips.com>
Tue, 19 Jan 2016 07:03:00 +0000 (15:03 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 29 Jan 2016 11:26:06 +0000 (12:26 +0100)
commit24a2ee2c209052c291caddf5828ce338ed8bcb46
tree6285d2c90cca63a6a6b2d68a766ce6bb20510567
parentd7e15052ecc9ac4f938d1d7432c1d120a2711a7e
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.

Signed-off-by: ZhengShunQian <zhengsq@rock-chips.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c