]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Initialize dma_ops for hotplug and sriov devices
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 21 Jun 2012 12:52:40 +0000 (14:52 +0200)
committerJoerg Roedel <joerg.roedel@amd.com>
Mon, 25 Jun 2012 11:16:00 +0000 (13:16 +0200)
commit5efd92b8ec91a20587eb6ce57591f47fb030e44c
tree3aa5ff3307a98fde03f28aba24f2cb842d34cf9d
parent8996c01cc151421f823fb770be98d58b2a2567e8
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 <sassmann@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/amd_iommu.c