Linux cryptographic layer development
 help / color / mirror / Atom feed
From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
To: Jordan Crouse <jordan.crouse@amd.com>
Cc: linux-crypto@vger.kernel.org, info-linux@ldcmail.amd.com, akpm@osdl.org
Subject: Re: crypto: Add support for the Geode AES engine
Date: Fri, 29 Sep 2006 12:53:51 +0400	[thread overview]
Message-ID: <20060929085351.GA18626@2ka.mipt.ru> (raw)
In-Reply-To: <20060928163115.GL25387@cosmic.amd.com>

On Thu, Sep 28, 2006 at 10:31:15AM -0600, Jordan Crouse (jordan.crouse@amd.com) wrote:
> > As far as I can see, register access is not protected, how can your
> > driver handle the case when dm-crypt and IPsec simultaneously try to
> > encrypt/decrypt some data, it can happen even around 
> > preemt_disable/enable calls and actually crypto processing can happen 
> > in interrupt context too (although it is not the best thing to do).
> 
> I had the mutex in there, but I took it out based on our previous
> conversations, which probably was a little rash.  If CRYPTO_TFM_REQ_MAY_SLEEP
> is still a valid flag to check, I could use that along with a spin lock of
> some sort.   I'll think about this a bit more.

If it is set, then you can safely sleep there, but if it is not, it does
not always mean that sleeping is forbidden.

-- 
	Evgeniy Polyakov

      reply	other threads:[~2006-09-29  8:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-27 19:31 [RFC] crypto: Add support for the Geode AES engine Jordan Crouse
2006-09-28 10:23 ` Evgeniy Polyakov
2006-09-28 21:47   ` crypto: Add support for the Geode AES engine (v2) Jordan Crouse
2006-09-28 22:03     ` crypto: Add support for the Geode AES engine (v3) Jordan Crouse
2006-09-28 22:06     ` crypto: Add support for the Geode AES engine (v2) Andrew Morton
     [not found]     ` <LYRIS-4270-86789-2006.09.28-16.10.32--jordan.crouse#amd.com@whitestar.amd.com>
2006-09-28 23:17       ` crypto: Add support for the Geode AES engine (v4) Jordan Crouse
2006-09-28 23:54         ` Andrew Morton
2006-09-29  0:16           ` Jordan Crouse
2006-10-04  8:52         ` Herbert Xu
     [not found] ` <LYRIS-4270-86779-2006.09.28-04.27.47--jordan.crouse#amd.com@whitestar.amd.com>
2006-09-28 16:31   ` crypto: Add support for the Geode AES engine Jordan Crouse
2006-09-29  8:53     ` Evgeniy Polyakov [this message]

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=20060929085351.GA18626@2ka.mipt.ru \
    --to=johnpol@2ka.mipt.ru \
    --cc=akpm@osdl.org \
    --cc=info-linux@ldcmail.amd.com \
    --cc=jordan.crouse@amd.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