]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - drivers/iommu/arm-smmu.c
iommu/arm-smmu: Track context bank state
authorRobin Murphy <robin.murphy@arm.com>
Tue, 8 Aug 2017 13:56:14 +0000 (14:56 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 16 Aug 2017 16:27:28 +0000 (17:27 +0100)
commit90df373cc62e527b010025249d11d10d19b086bd
tree018b4525265a119952e6e912d91257ac79bd6288
parent7aa8619a66aea52b145e04cbab4f8d6a4e5f3f3b
iommu/arm-smmu: Track context bank state

Echoing what we do for Stream Map Entries, maintain a software shadow
state for context bank configuration. With this in place, we are mere
moments away from blissfully easy suspend/resume support.

Reviewed-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
[will: fix sparse warning by only clearing .cfg during domain destruction]
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c