]> 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)
commitea1682f362f5323db9f3c2c9cae742c169735694
tree6285d2c90cca63a6a6b2d68a766ce6bb20510567
parent5367e65a538f2d59834d845f582bc1f1ae9599b8
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