summaryrefslogtreecommitdiff
path: root/virt/kvm/arm/vgic/vgic-irqfd.c
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2017-01-25 18:31:31 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-12 06:41:47 +0100
commita8123045c94638114a0b1ab19fd218dd3a5cd0b5 (patch)
tree5eeaddaa28f27a046aa9f587719f63d489dce091 /virt/kvm/arm/vgic/vgic-irqfd.c
parentac4c8fcf5ebceb0a2b6342707e4835a13f5bcf22 (diff)
arm64: dma-mapping: Fix dma_mapping_error() when bypassing SWIOTLB
commit adbe7e26f4257f72817495b9bce114284060b0d7 upstream. When bypassing SWIOTLB on small-memory systems, we need to avoid calling into swiotlb_dma_mapping_error() in exactly the same way as we avoid swiotlb_dma_supported(), because the former also relies on SWIOTLB state being initialised. Under the assumptions for which we skip SWIOTLB, dma_map_{single,page}() will only ever return the DMA-offset-adjusted physical address of the page passed in, thus we can report success unconditionally. Fixes: b67a8b29df7e ("arm64: mm: only initialize swiotlb when necessary") CC: Jisheng Zhang <jszhang@marvell.com> Reported-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'virt/kvm/arm/vgic/vgic-irqfd.c')
0 files changed, 0 insertions, 0 deletions