• FUJITA Tomonori's avatar
    IA64: fix VT-d dma_mapping_error · dfb805e8
    FUJITA Tomonori authored
    dma_mapping_error is used to see if dma_map_single and dma_map_page
    succeed. IA64 VT-d dma_mapping_error always says that dma_map_single
    is successful even though it could fail. Note that X86 VT-d works
    properly in this regard.
    
    This patch fixes IA64 VT-d dma_mapping_error by adding VT-d's own
    dma_mapping_error() that works for both X86_64 and IA64. VT-d uses
    zero as an error dma address so VT-d's dma_mapping_error returns 1 if
    a passed dma address is zero (as x86's VT-d dma_mapping_error does
    now).
    Signed-off-by: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    dfb805e8
intel-iommu.c 75.3 KB