Re: Crypto API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dmitry Kasatkin <dmitry.kasatkin@xxxxxxxxx> 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~} <herbert@xxxxxxxxxxxxxxxxxxx>
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux