aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pci-host-common.c
diff options
context:
space:
mode:
authorJean-Philippe Brucker <[email protected]>2019-07-03 11:19:20 +0000
committerJoerg Roedel <[email protected]>2019-07-04 08:03:27 +0000
commit8dd8f005bdd45823fc153ef490239558caf6ff20 (patch)
tree3f17e360918065e360b58e9305d45d26992560c2 /drivers/pci/controller/pci-host-common.c
parentiommu/arm-smmu-v3: Fix compilation when CONFIG_CMA=n (diff)
downloadkernel-8dd8f005bdd45823fc153ef490239558caf6ff20.tar.gz
kernel-8dd8f005bdd45823fc153ef490239558caf6ff20.zip
iommu/arm-smmu-v3: Invalidate ATC when detaching a device
We make the invalid assumption in arm_smmu_detach_dev() that the ATC is clear after calling pci_disable_ats(). For one thing, only enabling the PCIe ATS capability constitutes an implicit invalidation event, so the comment was wrong. More importantly, the ATS capability isn't necessarily disabled by pci_disable_ats() in a PF, if the associated VFs have ATS enabled. Explicitly invalidate all ATC entries in arm_smmu_detach_dev(). The endpoint cannot form new ATC entries because STE.EATS is clear. Fixes: 9ce27afc0830 ("iommu/arm-smmu-v3: Add support for PCI ATS") Reported-by: Manoj Kumar <[email protected]> Reported-by: Robin Murphy <[email protected]> Signed-off-by: Jean-Philippe Brucker <[email protected]> Acked-by: Will Deacon <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-common.c')
0 files changed, 0 insertions, 0 deletions