1. 24 Mar, 2017 1 commit
    • Gary R Hook's avatar
      crypto: ccp - Make some CCP DMA channels private · efc989fc
      Gary R Hook authored
      
      
      The CCP registers its queues as channels capable of handling
      general DMA operations. The NTB driver will use DMA if
      directed, but as public channels can be reserved for use in
      asynchronous operations some channels should be held back
      as private. Since the public/private determination is
      handled at a device level, reserve the "other" (secondary)
      CCP channels as private.
      
      Add a module parameter that allows for override, to be
      applied to all channels on all devices.
      
      CC: <stable@vger.kernel.org> # 4.10.x-
      Signed-off-by: default avatarGary R Hook <gary.hook@amd.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      efc989fc
  2. 16 Mar, 2017 1 commit
    • Gary R Hook's avatar
      crypto: ccp - Assign DMA commands to the channel's CCP · 7c468447
      Gary R Hook authored
      
      
      The CCP driver generally uses a round-robin approach when
      assigning operations to available CCPs. For the DMA engine,
      however, the DMA mappings of the SGs are associated with a
      specific CCP. When an IOMMU is enabled, the IOMMU is
      programmed based on this specific device.
      
      If the DMA operations are not performed by that specific
      CCP then addressing errors and I/O page faults will occur.
      
      Update the CCP driver to allow a specific CCP device to be
      requested for an operation and use this in the DMA engine
      support.
      
      Cc: <stable@vger.kernel.org> # 4.9.x-
      Signed-off-by: default avatarGary R Hook <gary.hook@amd.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      7c468447
  3. 03 Feb, 2017 1 commit
  4. 22 Sep, 2016 2 commits
  5. 07 Sep, 2016 1 commit
  6. 20 Apr, 2016 1 commit
    • Gary R Hook's avatar
      crypto: ccp - Register the CCP as a DMA resource · 58ea8abf
      Gary R Hook authored
      
      
      The CCP has the ability to provide DMA services to the
      kernel using pass-through mode of the device. Register
      these services as general purpose DMA channels.
      
      Changes since v2:
      - Add a Signed-off-by
      
      Changes since v1:
      - Allocate memory for a string in ccp_dmaengine_register
      - Ensure register/unregister calls are properly ordered
      - Verified all changed files are listed in the diffstat
      - Undo some superfluous changes
      - Added a cc:
      Signed-off-by: default avatarGary R Hook <gary.hook@amd.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      58ea8abf