From: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
To: linux-crypto@vger.kernel.org
Subject: Crypto API
Date: Wed, 13 Jan 2010 08:28:56 +0200 [thread overview]
Message-ID: <4B4D6828.9000506@nokia.com> (raw)
Hi,
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()
But of course it gives
BUG: sleeping function called from invalid context at kernel/sched.c:5786
What is the best way to handle such case?
Thanks,
Dmitry
next reply other threads:[~2010-01-13 6:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-13 6:28 Dmitry Kasatkin [this message]
2010-01-14 0:40 ` Crypto API Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B4D6828.9000506@nokia.com \
--to=dmitry.kasatkin@nokia.com \
--cc=linux-crypto@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox