Skip to content
Commit 803b5277 authored by Omar Ramirez Luna's avatar Omar Ramirez Luna Committed by Joerg Roedel
Browse files

iommu: OMAP: device detach on domain destroy



'domain_destroy with devices attached' case isn't yet handled, instead
code assumes that the device was already detached.

If the domain is destroyed the hardware still has access to invalid
pointers to its page table and internal iommu object. In order to
detach the users we need to track devices using the iommu, current
use cases only have one user of iommu per instance. When required
this can evolve to a list with the devices using the iommu_dev.

Reported-by: default avatarJoerg Roedel <joro@8bytes.org>
Reviewed-by: default avatarOhad Ben-Cohen <ohad@wizery.com>
Signed-off-by: default avatarOmar Ramirez Luna <omar.luna@linaro.org>
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 00341028
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment