From: Omar Ramirez Luna Date: Wed, 18 Apr 2012 18:09:41 +0000 (-0500) Subject: iommu: OMAP: device detach on domain destroy X-Git-Tag: v3.5-rc1~43^2^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=803b5277215c75a5cc3b3eb5d19015c7290601a5;p=pandora-kernel.git 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 Reviewed-by: Ohad Ben-Cohen Signed-off-by: Omar Ramirez Luna Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed