Dmitry Kasatkin <dmitry.kasat...@nokia.com> wrote:
> 
> I develop some drivers for crypto HW and met some difficulties.
> Some algorithm functions are called behind crypto_kmap()
> 
> data = crypto_kmap(sg_page(sg), 0);
> 
> It will do inc_preempt_count();
> 
> I try to use DMA controller to perform memory transfers and try to use
> wait_for_completion()

crypto_kmap is for software crypto.  If you're doing DMA, you
shouldn't use it.

Please take a look at other crypto drivers under drivers/crypto
as to how DMA should be implemented.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herb...@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
  • Crypto API Dmitry Kasatkin
    • Re: Crypto API Herbert Xu

Reply via email to