iommu/omap: add logic to save/restore locked TLBs
authorSuman Anna <s-anna@ti.com>
Wed, 7 Aug 2019 08:26:48 +0000 (11:26 +0300)
committerJoerg Roedel <jroedel@suse.de>
Fri, 9 Aug 2019 15:37:09 +0000 (17:37 +0200)
commitc3b44a063d3b4d9b5afabaf5ab2e3fc11518dc84
tree296204d13222485fe52819ab85ce7ba4129c8200
parentdb8918f61d51b87aaf7554ab7647ccdb7dbd739f
iommu/omap: add logic to save/restore locked TLBs

The MMUs provide a mechanism to lock TLB entries to avoid
eviction and fetching of frequently used page table entries.
These TLBs lose context when the MMUs are turned OFF. Add the
logic to save and restore these locked TLBS during suspend
and resume respectively. There are no locked TLBs during
initial power ON, and they need not be saved during final
shutdown.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/omap-iommu.c
drivers/iommu/omap-iommu.h