1. 19 10月, 2013 1 次提交
  2. 15 10月, 2013 1 次提交
    • S
      arm: make SWIOTLB available · 06e6295b
      Stefano Stabellini 提交于
      IOMMU_HELPER is needed because SWIOTLB calls iommu_is_span_boundary,
      provided by lib/iommu_helper.c.
      Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Reviewed-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      CC: will.deacon@arm.com
      CC: linux@arm.linux.org.uk
      
      
      Changes in v8:
      - use __phys_to_pfn and __pfn_to_phys.
      
      Changes in v7:
      - dma_mark_clean: empty implementation;
      - in dma_capable use coherent_dma_mask if dma_mask hasn't been
        allocated.
      
      Changes in v6:
      - check for dev->dma_mask being NULL in dma_capable.
      
      Changes in v5:
      - implement dma_mark_clean using dmac_flush_range.
      
      Changes in v3:
      - dma_capable: do not treat dma_mask as a limit;
      - remove SWIOTLB dependency on NEED_SG_DMA_LENGTH.
      06e6295b
  3. 04 12月, 2012 1 次提交
    • M
      ARM: dma-mapping: support debug_dma_mapping_error · a0157573
      Ming Lei 提交于
      Without the patch, kind of below warning will be dumped if DMA-API
      debug is enabled:
      
      [   11.069763] ------------[ cut here ]------------
      [   11.074645] WARNING: at lib/dma-debug.c:948 check_unmap+0x770/0x860()
      [   11.081420] ehci-omap ehci-omap.0: DMA-API: device driver failed to
      check map error[device address=0x0000000
      0adb78e80] [size=8 bytes] [mapped as single]
      [   11.095611] Modules linked in:
      
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Marek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: NMing Lei <ming.lei@canonical.com>
      Signed-off-by: NJoerg Roedel <joro@8bytes.org>
      a0157573
  4. 22 11月, 2012 1 次提交
  5. 13 11月, 2012 1 次提交
  6. 26 10月, 2012 1 次提交
  7. 23 10月, 2012 1 次提交
    • M
      ARM: dma-mapping: support debug_dma_mapping_error · 871ae57a
      Ming Lei 提交于
      Without the patch, kind of below warning will be dumped if DMA-API
      debug is enabled:
      
      [   11.069763] ------------[ cut here ]------------
      [   11.074645] WARNING: at lib/dma-debug.c:948 check_unmap+0x770/0x860()
      [   11.081420] ehci-omap ehci-omap.0: DMA-API: device driver failed to
      check map error[device address=0x0000000
      0adb78e80] [size=8 bytes] [mapped as single]
      [   11.095611] Modules linked in:
      
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Marek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: NMing Lei <ming.lei@canonical.com>
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      871ae57a
  8. 02 10月, 2012 1 次提交
    • R
      ARM: add coherent dma ops · dd37e940
      Rob Herring 提交于
      arch_is_coherent is problematic as it is a global symbol. This
      doesn't work for multi-platform kernels or platforms which can support
      per device coherent DMA.
      
      This adds arm_coherent_dma_ops to be used for devices which connected
      coherently (i.e. to the ACP port on Cortex-A9 or A15). The arm_dma_ops
      are modified at boot when arch_is_coherent is true.
      Signed-off-by: NRob Herring <rob.herring@calxeda.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Marek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      dd37e940
  9. 29 8月, 2012 1 次提交
  10. 30 7月, 2012 3 次提交
  11. 21 5月, 2012 5 次提交
  12. 23 8月, 2011 1 次提交
  13. 22 8月, 2011 1 次提交
  14. 12 7月, 2011 1 次提交
  15. 08 7月, 2011 1 次提交
  16. 04 7月, 2011 2 次提交
  17. 07 1月, 2011 1 次提交
  18. 03 1月, 2011 1 次提交
  19. 08 9月, 2010 1 次提交
  20. 11 8月, 2010 2 次提交
  21. 05 8月, 2010 1 次提交
  22. 13 3月, 2010 1 次提交
  23. 15 2月, 2010 2 次提交
  24. 23 11月, 2009 3 次提交
  25. 16 3月, 2009 2 次提交
    • N
      [ARM] make page_to_dma() highmem aware · 58edb515
      Nicolas Pitre 提交于
      If a machine class has a custom __virt_to_bus() implementation then it
      must provide a __arch_page_to_dma() implementation as well which is
      _not_ based on page_address() to support highmem.
      
      This patch fixes existing __arch_page_to_dma() and provide a default
      implementation otherwise.  The default implementation for highmem is
      based on __pfn_to_bus() which is defined only when no custom
      __virt_to_bus() is provided by the machine class.
      
      That leaves only ebsa110 and footbridge which cannot support highmem
      until they provide their own __arch_page_to_dma() implementation.
      But highmem support on those legacy platforms with limited memory is
      certainly not a priority.
      Signed-off-by: NNicolas Pitre <nico@marvell.com>
      58edb515
    • N
      [ARM] introduce dma_cache_maint_page() · 43377453
      Nicolas Pitre 提交于
      This is a helper to be used by the DMA mapping API to handle cache
      maintenance for memory identified by a page structure instead of a
      virtual address.  Those pages may or may not be highmem pages, and
      when they're highmem pages, they may or may not be virtually mapped.
      When they're not mapped then there is no L1 cache to worry about. But
      even in that case the L2 cache must be processed since unmapped highmem
      pages can still be L2 cached.
      Signed-off-by: NNicolas Pitre <nico@marvell.com>
      43377453
  26. 13 12月, 2008 1 次提交
  27. 13 11月, 2008 1 次提交
  28. 30 9月, 2008 1 次提交