iommu/arm-smmu: Get associated RMR info and install bypass SMR
authorJon Nettleton <jon@solid-run.com>
Wed, 15 Jun 2022 10:10:44 +0000 (11:10 +0100)
committerJoerg Roedel <jroedel@suse.de>
Wed, 6 Jul 2022 10:51:11 +0000 (12:51 +0200)
commit0bec05574d13ed7e8643733fe5dccbd0c86604d2
tree13015892e2eb74ebc92d02dc9c59100115d6dcb6
parent9bdbdaa3c44ea97c8e97e51dd503a7061bd676a0
iommu/arm-smmu: Get associated RMR info and install bypass SMR

Check if there is any RMR info associated with the devices behind
the SMMU and if any, install bypass SMRs for them. This is to
keep any ongoing traffic associated with these devices alive
when we enable/reset SMMU during probe().

Signed-off-by: Jon Nettleton <jon@solid-run.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Tested-by: Steven Price <steven.price@arm.com>
Tested-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/20220615101044.1972-10-shameerali.kolothum.thodi@huawei.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/arm/arm-smmu/arm-smmu.c