Skip to content
Commit ac1534a5 authored by Joerg Roedel's avatar Joerg Roedel
Browse files

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: default avatarStefan Assmann <sassmann@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent f2f12b6f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment