1. 02 2月, 2008 1 次提交
  2. 01 2月, 2008 37 次提交
  3. 31 1月, 2008 2 次提交
    • O
      POWERPC: Set dma_data correctly for direct_ops on pasemi · 24af8cb8
      Olof Johansson 提交于
      More late-caught fallout from the mainline merge.  Commit
      35e4a6e2 ("[POWERPC] Use
      archdata.dma_data in dma_direct_ops and add the offset") claimed
      
        "Now that all platforms using dma_direct_offset setup the
         archdata.dma_data correctly, ..."
      
      ..but nope -- the pasemi iommu setup code that disables translation on
      the DMA pci device didn't set dma_data correctly.
      
      This fixes it.
      Signed-off-by: NOlof Johansson <olof@lixom.net>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      24af8cb8
    • M
      [POWERPC] Cell IOMMU fixed mapping support · 99e13912
      Michael Ellerman 提交于
      This patch adds support for setting up a fixed IOMMU mapping on certain
      cell machines.  For 64-bit devices this avoids the performance overhead of
      mapping and unmapping pages at runtime.  32-bit devices are unable to use
      the fixed mapping.
      
      The fixed mapping is established at boot, and maps all of physical memory
      1:1 into device space at some offset.  On machines with < 30 GB of memory
      we setup the fixed mapping immediately above the normal IOMMU window.
      
      For example a machine with 4GB of memory would end up with the normal
      IOMMU window from 0-2GB and the fixed mapping window from 2GB to 6GB. In
      this case a 64-bit device wishing to DMA to 1GB would be told to DMA to
      3GB, plus any offset required by firmware.  The firmware offset is encoded
      in the "dma-ranges" property.
      
      On machines with 30GB or more of memory, we are unable to place the fixed
      mapping above the normal IOMMU window as we would run out of address space.
      Instead we move the normal IOMMU window to coincide with the hash page
      table, this region does not need to be part of the fixed mapping as no
      device should ever be DMA'ing to it.  We then setup the fixed mapping
      from 0 to 32GB.
      Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      99e13912