iommu/ipmmu-vmsa: IMUCTRn.TTSEL needs a special usage on R-Car Gen3
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 9 Jul 2018 02:53:31 +0000 (11:53 +0900)
committerJoerg Roedel <jroedel@suse.de>
Fri, 20 Jul 2018 12:03:56 +0000 (14:03 +0200)
commit2ae86955703e9e6a119af4bbe27f6b6dd7a43131
tree7465628332bbc2757b1c7db7d54e12a5074bab32
parentbc24f62bf8763660110f915cead86dd13840ed26
iommu/ipmmu-vmsa: IMUCTRn.TTSEL needs a special usage on R-Car Gen3

The TTSEL bit of IMUCTRn register of R-Car Gen3 needs to be set
unused MMU context number even if uTLBs are disabled
(The MMUEN bit of IMUCTRn register = 0).
Since initial values of IMUCTRn.TTSEL on all IPMMU-domains are 0,
this patch adds a new feature "reserved_context" to reserve IPMMU
context number 0 as the unused MMU context.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/ipmmu-vmsa.c