[PATCH] iommu: OMAP: device detach on domain destroy
joerg.roedel at amd.com
Thu Apr 12 10:25:05 UTC 2012
On Fri, Mar 30, 2012 at 11:03:49AM -0500, Omar Ramirez Luna wrote:
> '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 at 8bytes.org>
> Reviewed-by: Ohad Ben-Cohen <ohad at wizery.com>
> Signed-off-by: Omar Ramirez Luna <omar.luna at linaro.org>
Doesn't apply against 3.4-rc2. Please rebase and send a new version.
AMD Operating System Research Center
Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach
General Managers: Alberto Bozzo
Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632
More information about the linaro-dev