01 Nov, 2011

1 commit


03 Sep, 2009

1 commit

  • arch/ia64/kernel/dma-mapping.c:14: warning: control reaches end of non-void function
    arch/ia64/kernel/dma-mapping.c:14: warning: no return statement in function returning non-void

    This warning was introduced by commit: 390bd132b2831a2ad0268e84bffbfc0680debfe5
    Add dma_debug_init() for ia64

    Signed-off-by: Tony Luck

    Luck, Tony
     

17 Jul, 2009

1 commit

  • The commit 9916219579d078c80377dd3988c2cc213536d868 was supposed to
    add CONFIG_DMA_API_DEBUG support to IA64 however I forgot to add
    dma_debug_init().

    Signed-off-by: fujita
    Acked-by: Fenghua Yu

    fujita
     

27 Jan, 2009

1 commit

  • This moves iommu_detected to arch/ia64/kernel/dma-mapping.c from
    arch/ia64/kernel/pci-swiotlb.c to fix the following error on on
    IA64_DIG_VTD:

    arch/ia64/kernel/built-in.o: In function `pci_iommu_init':
    pci-dma.c:(.init.text+0xa021): undefined reference to `iommu_detected'
    pci-dma.c:(.init.text+0xa030): undefined reference to `iommu_detected'
    drivers/built-in.o: In function `detect_intel_iommu':
    (.init.text+0x11c0): undefined reference to `iommu_detected'
    drivers/built-in.o: In function `detect_intel_iommu':
    (.init.text+0x11e1): undefined reference to `iommu_detected'

    iommu_detected is used to handle IOMMUs so I guess that
    arch/ia64/kernel/dma-mapping.c is ok (there might be a better place
    for it though).

    Signed-off-by: FUJITA Tomonori
    Signed-off-by: Ingo Molnar

    FUJITA Tomonori
     

06 Jan, 2009

3 commits

  • This converts X86 and IA64 to use include/linux/dma-mapping.h.

    It's a bit large but pretty boring. The major change for X86 is
    converting 'int dir' to 'enum dma_data_direction dir' in DMA mapping
    operations. The major changes for IA64 is using map_page and
    unmap_page instead of map_single and unmap_single.

    Signed-off-by: FUJITA Tomonori
    Acked-by: Tony Luck
    Signed-off-by: Ingo Molnar

    FUJITA Tomonori
     
  • This adds dma_get_ops hook to struct ia64_machine_vector. We use
    dma_get_ops() in arch/ia64/kernel/dma-mapping.c, which simply returns
    the global dma_ops. This is for removing hwsw_dma_ops.

    Signed-off-by: FUJITA Tomonori
    Acked-by: Tony Luck
    Signed-off-by: Ingo Molnar

    FUJITA Tomonori
     
  • This patch introduces a global pointer, dma_ops, which points to an
    appropriate dma_mapping_ops that the kernel should use. This is a
    common way to handle multiple dma_mapping_ops (X86, POWER, and SPARC).

    dma_ops is set in platform_dma_init. We also set it by hand where
    machvec_init is callev via subsys_initcall.

    - IA64_DIG_VTD uses vtd_dma_ops.
    - IA64_HP_ZX1 uses sba_dma_ops.
    - IA64_HP_ZX1_SWIOTLB uses hwsw_dma_ops.
    - IA64_SGI_SN2 uses sn_dma_ops.
    - The rest use swiotlb_dma_ops.

    Signed-off-by: FUJITA Tomonori
    Acked-by: Tony Luck
    Signed-off-by: Ingo Molnar

    FUJITA Tomonori