linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* provide DMA services in drivers/crypto
@ 2016-10-19 13:57 Tudor-Dan Ambarus
  2016-10-19 14:54 ` Vinod Koul
  0 siblings, 1 reply; 2+ messages in thread
From: Tudor-Dan Ambarus @ 2016-10-19 13:57 UTC (permalink / raw)
  To: herbert@gondor.apana.org.au
  Cc: vinod.koul@intel.com, dan.j.williams@intel.com,
	linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org

Hi, Herbert,

CAAM has the ability to provide DMA services. This is helpful for platforms that don't have a dedicated DMA hardware block.

In this particular example, caam being a crypto accelerator at its fundamentals, where is recommended to add a caam-dma engine implementation, in drivers/dma or in drivers/crypto? Are the any rules/guidelines?
I noticed that CCP already registered DMA services, the driver being held in drivers/crypto.

Thanks,
ta

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: provide DMA services in drivers/crypto
  2016-10-19 13:57 provide DMA services in drivers/crypto Tudor-Dan Ambarus
@ 2016-10-19 14:54 ` Vinod Koul
  0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2016-10-19 14:54 UTC (permalink / raw)
  To: Tudor-Dan Ambarus
  Cc: herbert@gondor.apana.org.au, dan.j.williams@intel.com,
	linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org

On Wed, Oct 19, 2016 at 01:57:45PM +0000, Tudor-Dan Ambarus wrote:

Please wrap your mails within 80 chars, I have reflown below for reabability.

> Hi, Herbert,
> 
> CAAM has the ability to provide DMA services. This is helpful for
> platforms that don't have a dedicated DMA hardware block.
> 
> In this particular example, caam being a crypto accelerator at its
> fundamentals, where is recommended to add a caam-dma engine
> implementation, in drivers/dma or in drivers/crypto? Are the any
> rules/guidelines?

If the dma controller is internal to crypto, then it might be okay to be
inside the crypto driver. But if it is shared or common controller then a
dmaengine implementation would make sense..

> I noticed that CCP already registered DMA services, the driver being held
> in drivers/crypto.

I think drivers/crypto/ccp/ccp-dmaengine.c is wrong example, it should have
been in dmaengine directory. Not sure why it was addded in crypto :(

Thanks
-- 
~Vinod

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-19 23:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-19 13:57 provide DMA services in drivers/crypto Tudor-Dan Ambarus
2016-10-19 14:54 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).