diff options
author | Suman Anna <s-anna@ti.com> | 2019-08-07 11:26:48 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2019-08-09 18:37:09 +0300 |
commit | c3b44a063d3b4d9b5afabaf5ab2e3fc11518dc84 (patch) | |
tree | 296204d13222485fe52819ab85ce7ba4129c8200 /drivers/iommu/omap-iommu.h | |
parent | db8918f61d51b87aaf7554ab7647ccdb7dbd739f (diff) | |
download | linux-c3b44a063d3b4d9b5afabaf5ab2e3fc11518dc84.tar.xz |
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>
Diffstat (limited to 'drivers/iommu/omap-iommu.h')
-rw-r--r-- | drivers/iommu/omap-iommu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iommu/omap-iommu.h b/drivers/iommu/omap-iommu.h index aac1ca65ef9d..1d15aa857634 100644 --- a/drivers/iommu/omap-iommu.h +++ b/drivers/iommu/omap-iommu.h @@ -73,6 +73,9 @@ struct omap_iommu { void *ctx; /* iommu context: registres saved area */ + struct cr_regs *cr_ctx; + u32 num_cr_ctx; + int has_bus_err_back; u32 id; |