From: Joerg Roedel Date: Thu, 21 Jun 2012 12:52:40 +0000 (+0200) Subject: iommu/amd: Initialize dma_ops for hotplug and sriov devices X-Git-Tag: v3.5-rc7~43^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac1534a55d1e87d59a21c09c570605933b551480;p=pandora-kernel.git iommu/amd: Initialize dma_ops for hotplug and sriov devices When a device is added to the system at runtime the AMD IOMMU driver initializes the necessary data structures to handle translation for it. But it forgets to change the per-device dma_ops to point to the AMD IOMMU driver. So mapping actually never happens and all DMA accesses end in an IO_PAGE_FAULT. Fix this. Reported-by: Stefan Assmann Cc: stable@vger.kernel.org Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed