]> git.baikalelectronics.ru Git - kernel.git/commit
iommu: OMAP: device detach on domain destroy
authorOmar Ramirez Luna <omar.luna@linaro.org>
Wed, 18 Apr 2012 18:09:41 +0000 (13:09 -0500)
committerJoerg Roedel <joerg.roedel@amd.com>
Thu, 19 Apr 2012 13:07:23 +0000 (15:07 +0200)
commit82e524ec215031da3f613547f2024c4f35b8ef0c
treeffc0b3bf827fddac1482d0bc85848c2057160713
parent4b5193f9048fb608934391c566cd40fd66d53853
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: Joerg Roedel <joro@8bytes.org>
Reviewed-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Omar Ramirez Luna <omar.luna@linaro.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/omap-iommu.c